diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2017-09-12 01:20:49 +0200 |
---|---|---|
committer | scheibelp <scheibel1@llnl.gov> | 2017-09-11 16:20:49 -0700 |
commit | 32117c22deb97c0be06ef073c432e45569b138c3 (patch) | |
tree | 8e359659cac3965b7bfc0bcde94ad680e1c150a4 /var/spack/repos/builtin.mock/packages/a/package.py | |
parent | f502de47252ec8388339e2e72321779c57581d9a (diff) | |
download | spack-32117c22deb97c0be06ef073c432e45569b138c3.tar.gz spack-32117c22deb97c0be06ef073c432e45569b138c3.tar.bz2 spack-32117c22deb97c0be06ef073c432e45569b138c3.tar.xz spack-32117c22deb97c0be06ef073c432e45569b138c3.zip |
'with_or_without' accepts bool variants
Fixes #4112
This commit extends the support of the AutotoolsPackage methods
`with_or_without` and `enable_or_disable` to bool-valued variants. It
also defines for those functions a convenience short-cut if the
activation parameter is the prefix of a spec (like in
`--with-{pkg}={prefix}`).
This commit also includes:
* Updates to viennarna and adios accordingly: they have been modified to
use `enable_or_disable` and `with_or_without`
* Improved docstrings in `autotools.py`. Raise `KeyError` if name is
not a variant.
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/a/package.py')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/a/package.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/a/package.py b/var/spack/repos/builtin.mock/packages/a/package.py index dc078d2434..463ad10055 100644 --- a/var/spack/repos/builtin.mock/packages/a/package.py +++ b/var/spack/repos/builtin.mock/packages/a/package.py @@ -50,6 +50,8 @@ class A(AutotoolsPackage): multi=False ) + variant('bvv', default=True, description='The good old BV variant') + depends_on('b', when='foobar=bar') def with_or_without_fee(self, activated): |