add flex variant to cscope (#3252)

* add flex variant to cscope

* fixed dependency

* fixed typo
This commit is contained in:
healther 2017-03-03 15:06:25 +01:00 committed by Adam J. Stewart
parent 9df2649d02
commit def42f156d

View file

@ -33,5 +33,12 @@ class Cscope(AutotoolsPackage):
version('15.8b', '8f9409a238ee313a96f9f87fe0f3b176') version('15.8b', '8f9409a238ee313a96f9f87fe0f3b176')
# Can be configured to use flex (not necessary) variant('flex', default=False, description="Builds with flex")
# ./configure --with-flex
depends_on('flex', when='+flex')
def configure_args(self):
args = []
if '+flex' in self.spec:
args.append('--with-flex')
return args