diff options
author | alcharal <alcharal@grid.auth.gr> | 2018-10-03 03:27:25 +0300 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2018-10-02 17:27:25 -0700 |
commit | c46a7a61f0c71874b8b3df87125ffcdbb2d70762 (patch) | |
tree | 63b018ea9cec08347a9196fb88db36b56ab4d56d | |
parent | 8f29fbb6056d8ae520c8107c61f54f4070f7163c (diff) | |
download | spack-c46a7a61f0c71874b8b3df87125ffcdbb2d70762.tar.gz spack-c46a7a61f0c71874b8b3df87125ffcdbb2d70762.tar.bz2 spack-c46a7a61f0c71874b8b3df87125ffcdbb2d70762.tar.xz spack-c46a7a61f0c71874b8b3df87125ffcdbb2d70762.zip |
Abyss: added variant maxk (#9280)
-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 |