Abyss: added variant maxk (#9280)
This commit is contained in:
parent
8f29fbb605
commit
c46a7a61f0
@ -36,6 +36,10 @@ class Abyss(AutotoolsPackage):
|
|||||||
version('2.0.2', '1623f55ad7f4586e80f6e74b1f27c798')
|
version('2.0.2', '1623f55ad7f4586e80f6e74b1f27c798')
|
||||||
version('1.5.2', '10d6d72d1a915e618d41a5cbbcf2364c')
|
version('1.5.2', '10d6d72d1a915e618d41a5cbbcf2364c')
|
||||||
|
|
||||||
|
variant('maxk', values=int, default=0,
|
||||||
|
description='''set the maximum k-mer length.
|
||||||
|
This value must be a multiple of 32''')
|
||||||
|
|
||||||
depends_on('autoconf', type='build')
|
depends_on('autoconf', type='build')
|
||||||
depends_on('automake', type='build')
|
depends_on('automake', type='build')
|
||||||
|
|
||||||
@ -52,9 +56,12 @@ class Abyss(AutotoolsPackage):
|
|||||||
conflicts('^spectrum-mpi')
|
conflicts('^spectrum-mpi')
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
|
maxk = int(self.spec.variants['maxk'].value)
|
||||||
args = ['--with-boost=%s' % self.spec['boost'].prefix,
|
args = ['--with-boost=%s' % self.spec['boost'].prefix,
|
||||||
'--with-sqlite=%s' % self.spec['sqlite'].prefix,
|
'--with-sqlite=%s' % self.spec['sqlite'].prefix,
|
||||||
'--with-mpi=%s' % self.spec['mpi'].prefix]
|
'--with-mpi=%s' % self.spec['mpi'].prefix]
|
||||||
|
if maxk:
|
||||||
|
args.append('--enable-maxk=%s' % maxk)
|
||||||
if self.spec['mpi'].name == 'mpich':
|
if self.spec['mpi'].name == 'mpich':
|
||||||
args.append('--enable-mpich')
|
args.append('--enable-mpich')
|
||||||
return args
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user