diff options
author | healther <healther@users.noreply.github.com> | 2017-03-03 15:06:25 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-03-03 08:06:25 -0600 |
commit | def42f156d8bd914fa4e291ecc5e89cbc4f71aea (patch) | |
tree | 6fdb062133e3b2d4c732bad754bd3226fbd22cf8 | |
parent | 9df2649d029e666f732be1edaa79047e58aeb8cd (diff) | |
download | spack-def42f156d8bd914fa4e291ecc5e89cbc4f71aea.tar.gz spack-def42f156d8bd914fa4e291ecc5e89cbc4f71aea.tar.bz2 spack-def42f156d8bd914fa4e291ecc5e89cbc4f71aea.tar.xz spack-def42f156d8bd914fa4e291ecc5e89cbc4f71aea.zip |
add flex variant to cscope (#3252)
* add flex variant to cscope
* fixed dependency
* fixed typo
-rw-r--r-- | var/spack/repos/builtin/packages/cscope/package.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/cscope/package.py b/var/spack/repos/builtin/packages/cscope/package.py index 73017ffc57..1e39216367 100644 --- a/var/spack/repos/builtin/packages/cscope/package.py +++ b/var/spack/repos/builtin/packages/cscope/package.py @@ -33,5 +33,12 @@ class Cscope(AutotoolsPackage): version('15.8b', '8f9409a238ee313a96f9f87fe0f3b176') - # Can be configured to use flex (not necessary) - # ./configure --with-flex + variant('flex', default=False, description="Builds with flex") + + depends_on('flex', when='+flex') + + def configure_args(self): + args = [] + if '+flex' in self.spec: + args.append('--with-flex') + return args |