bowtie2: add constraints for the simde dependency (#24226)
This commit is contained in:
parent
c8f58c5f1d
commit
7831d6be75
@ -25,7 +25,8 @@ class Bowtie2(MakefilePackage):
|
|||||||
depends_on('perl', type='run')
|
depends_on('perl', type='run')
|
||||||
depends_on('python', type='run')
|
depends_on('python', type='run')
|
||||||
depends_on('zlib', when='@2.3.1:')
|
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.2.5.patch', when='@2.2.5', level=0)
|
||||||
patch('bowtie2-2.3.1.patch', when='@2.3.1', level=0)
|
patch('bowtie2-2.3.1.patch', when='@2.3.1', level=0)
|
||||||
@ -52,11 +53,13 @@ def edit(self, spec, prefix):
|
|||||||
files = ['bowtie2-build', 'bowtie2-inspect']
|
files = ['bowtie2-build', 'bowtie2-inspect']
|
||||||
filter_file(match, substitute, *files, **kwargs)
|
filter_file(match, substitute, *files, **kwargs)
|
||||||
|
|
||||||
match = '-Ithird_party/simde'
|
if (self.spec.satisfies('@2.4.0:2.4.2 target=aarch64:') or
|
||||||
simdepath = spec['simde'].prefix.include
|
self.spec.satisfies('@2.4.0:2.4.2 target=ppc64le:')):
|
||||||
substitute = "-I{simdepath}".format(simdepath=simdepath)
|
match = '-Ithird_party/simde'
|
||||||
files = ['Makefile']
|
simdepath = spec['simde'].prefix.include
|
||||||
filter_file(match, substitute, *files, **kwargs)
|
substitute = "-I{simdepath}".format(simdepath=simdepath)
|
||||||
|
files = ['Makefile']
|
||||||
|
filter_file(match, substitute, *files, **kwargs)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def build_targets(self):
|
def build_targets(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user