+ Provide ~perl and ~shared variants.

This commit is contained in:
Kelly (KT) Thompson 2016-03-16 18:55:14 -06:00
parent 63f9f4291a
commit f07d4c9439

View file

@ -7,6 +7,9 @@ class Graphviz(Package):
version('2.38.0', '5b6a829b2ac94efcd5fa3c223ed6d3ae')
variant('perl', default=True, description='Disable if you have problems with the optional script language bindings')
variant('shared', default=True, description='Building static is required on AIX')
parallel = False
depends_on("swig")
@ -14,8 +17,12 @@ class Graphviz(Package):
depends_on("ghostscript")
def install(self, spec, prefix):
configure("--prefix=%s" %prefix)
options = ['--prefix=%s' % prefix]
if '~perl' in spec:
options.append('--disable-perl')
if '~shared' in spec:
options.append('--enable-shared=no')
configure(*options)
make()
make("install")