diff options
-rw-r--r-- | var/spack/repos/builtin/packages/abyss/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/abyss/package.py b/var/spack/repos/builtin/packages/abyss/package.py index cbf15ef039..f6fac09463 100644 --- a/var/spack/repos/builtin/packages/abyss/package.py +++ b/var/spack/repos/builtin/packages/abyss/package.py @@ -36,6 +36,10 @@ class Abyss(AutotoolsPackage): version('2.0.2', '1623f55ad7f4586e80f6e74b1f27c798') 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('automake', type='build') @@ -52,9 +56,12 @@ class Abyss(AutotoolsPackage): conflicts('^spectrum-mpi') def configure_args(self): + maxk = int(self.spec.variants['maxk'].value) args = ['--with-boost=%s' % self.spec['boost'].prefix, '--with-sqlite=%s' % self.spec['sqlite'].prefix, '--with-mpi=%s' % self.spec['mpi'].prefix] + if maxk: + args.append('--enable-maxk=%s' % maxk) if self.spec['mpi'].name == 'mpich': args.append('--enable-mpich') return args |