diff options
author | snehring <snehring@users.noreply.github.com> | 2021-06-17 02:52:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 01:52:27 -0600 |
commit | 7831d6be756af34cc5f0e638be6ac398bf77605a (patch) | |
tree | 4546012cbbf845d98e924813f073b4b1d2da6194 | |
parent | c8f58c5f1d660bfdb5f4f50d1d2a9f294435ee4d (diff) | |
download | spack-7831d6be756af34cc5f0e638be6ac398bf77605a.tar.gz spack-7831d6be756af34cc5f0e638be6ac398bf77605a.tar.bz2 spack-7831d6be756af34cc5f0e638be6ac398bf77605a.tar.xz spack-7831d6be756af34cc5f0e638be6ac398bf77605a.zip |
bowtie2: add constraints for the simde dependency (#24226)
-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): |