diff options
-rw-r--r-- | var/spack/repos/builtin/packages/bowtie2/package.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/bowtie2/package.py b/var/spack/repos/builtin/packages/bowtie2/package.py index df24b34ff1..ba7b404d3a 100644 --- a/var/spack/repos/builtin/packages/bowtie2/package.py +++ b/var/spack/repos/builtin/packages/bowtie2/package.py @@ -25,7 +25,8 @@ class Bowtie2(MakefilePackage): depends_on('perl', type='run') depends_on('python', type='run') depends_on('zlib', when='@2.3.1:') - depends_on('simde', type='link') + depends_on('simde', when='@2.4.0: target=aarch64:', type='link') + depends_on('simde', when='@2.4.0: target=ppc64le:', type='link') patch('bowtie2-2.2.5.patch', when='@2.2.5', level=0) patch('bowtie2-2.3.1.patch', when='@2.3.1', level=0) @@ -52,11 +53,13 @@ class Bowtie2(MakefilePackage): files = ['bowtie2-build', 'bowtie2-inspect'] filter_file(match, substitute, *files, **kwargs) - match = '-Ithird_party/simde' - simdepath = spec['simde'].prefix.include - substitute = "-I{simdepath}".format(simdepath=simdepath) - files = ['Makefile'] - filter_file(match, substitute, *files, **kwargs) + if (self.spec.satisfies('@2.4.0:2.4.2 target=aarch64:') or + self.spec.satisfies('@2.4.0:2.4.2 target=ppc64le:')): + match = '-Ithird_party/simde' + simdepath = spec['simde'].prefix.include + substitute = "-I{simdepath}".format(simdepath=simdepath) + files = ['Makefile'] + filter_file(match, substitute, *files, **kwargs) @property def build_targets(self): |