summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2020-12-04 00:59:59 -0800
committerGitHub <noreply@github.com>2020-12-04 09:59:59 +0100
commit9afaaa3c25fc14afede2c818e78bcf7bcaac7ff3 (patch)
tree7ed601e846f90a26cfb2fe9f85f153c35265d033
parentbadf3368ad863fd0b7b81a45e14d8302490a4e29 (diff)
downloadspack-9afaaa3c25fc14afede2c818e78bcf7bcaac7ff3.tar.gz
spack-9afaaa3c25fc14afede2c818e78bcf7bcaac7ff3.tar.bz2
spack-9afaaa3c25fc14afede2c818e78bcf7bcaac7ff3.tar.xz
spack-9afaaa3c25fc14afede2c818e78bcf7bcaac7ff3.zip
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 <george.hartzell@sana.com>
-rw-r--r--var/spack/repos/builtin/packages/bowtie2/package.py5
1 files changed, 4 insertions, 1 deletions
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']