From 9afaaa3c25fc14afede2c818e78bcf7bcaac7ff3 Mon Sep 17 00:00:00 2001 From: George Hartzell Date: Fri, 4 Dec 2020 00:59:59 -0800 Subject: bowtie2: fix installation prefix (#20205) The bowtie2 Makefile uses `prefix`, not `PREFIX`, for versions before v2.4. Credit to @tkameyama Co-authored-by: george.hartzell --- var/spack/repos/builtin/packages/bowtie2/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/bowtie2/package.py b/var/spack/repos/builtin/packages/bowtie2/package.py index 0eab7a3068..f0e7ceea7e 100644 --- a/var/spack/repos/builtin/packages/bowtie2/package.py +++ b/var/spack/repos/builtin/packages/bowtie2/package.py @@ -66,4 +66,7 @@ class Bowtie2(MakefilePackage): @property def install_targets(self): - return ['PREFIX={0}'.format(self.prefix), 'install'] + if self.spec.satisfies('@:2.3.9'): + return ['prefix={0}'.format(self.prefix), 'install'] + else: + return ['PREFIX={0}'.format(self.prefix), 'install'] -- cgit v1.2.3-70-g09d2