Help cscope find ncursesw library (#3785)

* Help cscope find ncursesw library

* Overwrite CURSES_LIBS at build time
This commit is contained in:
Adam J. Stewart 2017-04-11 14:09:29 -05:00 committed by GitHub
parent cea4352555
commit ed86dc2db6

View file

@ -33,12 +33,10 @@ class Cscope(AutotoolsPackage):
version('15.8b', '8f9409a238ee313a96f9f87fe0f3b176') 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): build_targets = ['CURSES_LIBS=-lncursesw']
args = []
if '+flex' in self.spec:
args.append('--with-flex')
return args