glpk : added support for gmp

This commit is contained in:
alalazo 2016-01-06 10:05:48 +01:00
parent 24ba60168d
commit 7670dc7efc

View file

@ -37,7 +37,17 @@ class Glpk(Package):
version('4.57', '237531a54f73155842f8defe51aedb0f')
variant('gmp', default=False, description='Activates support for GMP library')
depends_on('gmp', when='+gmp')
def install(self, spec, prefix):
configure('--prefix=%s' % prefix)
options = ['--prefix=%s' % prefix]
if '+gmp' in spec:
options.append('--with-gmp')
configure(*options)
make()
make("install")