diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-04-11 14:09:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-11 14:09:29 -0500 |
commit | ed86dc2db66c5a967c2c4de743f8aa10a60f4570 (patch) | |
tree | 1de78b271de56fc803c767d760472a398f41aeb8 /var | |
parent | cea43525554832de4ad25a130f3c4eb8df10ecab (diff) | |
download | spack-ed86dc2db66c5a967c2c4de743f8aa10a60f4570.tar.gz spack-ed86dc2db66c5a967c2c4de743f8aa10a60f4570.tar.bz2 spack-ed86dc2db66c5a967c2c4de743f8aa10a60f4570.tar.xz spack-ed86dc2db66c5a967c2c4de743f8aa10a60f4570.zip |
Help cscope find ncursesw library (#3785)
* Help cscope find ncursesw library
* Overwrite CURSES_LIBS at build time
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cscope/package.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/cscope/package.py b/var/spack/repos/builtin/packages/cscope/package.py index 1e39216367..8f7ebd5cd7 100644 --- a/var/spack/repos/builtin/packages/cscope/package.py +++ b/var/spack/repos/builtin/packages/cscope/package.py @@ -33,12 +33,10 @@ class Cscope(AutotoolsPackage): version('15.8b', '8f9409a238ee313a96f9f87fe0f3b176') - variant('flex', default=False, description="Builds with flex") + depends_on('ncurses') - depends_on('flex', when='+flex') + depends_on('flex', type='build') + depends_on('bison', type='build') + depends_on('pkg-config', type='build') - def configure_args(self): - args = [] - if '+flex' in self.spec: - args.append('--with-flex') - return args + build_targets = ['CURSES_LIBS=-lncursesw'] |