diff options
author | Toyohisa Kameyama <kameyama@riken.jp> | 2019-10-03 02:55:05 +0900 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-10-02 12:55:05 -0500 |
commit | da18ac3a0f5e75ab4d844a533d3d6f918b24b2a4 (patch) | |
tree | 41b3d9ac7471f140f475a6697b84989cd68887ec /var | |
parent | b85ff04681ea1864ed5a66bcbe5e242ba54ecf6e (diff) | |
download | spack-da18ac3a0f5e75ab4d844a533d3d6f918b24b2a4.tar.gz spack-da18ac3a0f5e75ab4d844a533d3d6f918b24b2a4.tar.bz2 spack-da18ac3a0f5e75ab4d844a533d3d6f918b24b2a4.tar.xz spack-da18ac3a0f5e75ab4d844a533d3d6f918b24b2a4.zip |
cdhit: add zlib dependency. (#13015)
* cdhit: add zlib dependency.
* Add zlib variant.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cdhit/package.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/cdhit/package.py b/var/spack/repos/builtin/packages/cdhit/package.py index f2c1d78b6f..0f5172bfc1 100644 --- a/var/spack/repos/builtin/packages/cdhit/package.py +++ b/var/spack/repos/builtin/packages/cdhit/package.py @@ -17,15 +17,19 @@ class Cdhit(MakefilePackage): version('4.6.8', 'bdd73ec0cceab6653aab7b31b57c5a8b') variant('openmp', default=True, description='Compile with multi-threading support') + variant('zlib', default=True, description='Compile with zlib') depends_on('perl', type=('build', 'run')) + depends_on('zlib', when='+zlib', type='link') def build(self, spec, prefix): mkdirp(prefix.bin) + make_args = [] if '~openmp' in spec: - make('openmp=no') - else: - make() + make_args.append('openmp=no') + if '~zlib' in spec: + make_args.append('zlib=no') + make(*make_args) def setup_environment(self, spack_env, run_env): spack_env.set('PREFIX', prefix.bin) |