26 lines
722 B
Python
26 lines
722 B
Python
from spack import *
|
|
|
|
class Graphviz(Package):
|
|
"""Graph Visualization Software"""
|
|
homepage = "http://www.graphviz.org"
|
|
url = "http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.38.0.tar.gz"
|
|
|
|
version('2.38.0', '5b6a829b2ac94efcd5fa3c223ed6d3ae')
|
|
|
|
variant('perl', default=True, description='Disable if you have problems with the optional script language bindings')
|
|
|
|
parallel = False
|
|
|
|
depends_on("swig")
|
|
depends_on("python")
|
|
depends_on("ghostscript")
|
|
|
|
def install(self, spec, prefix):
|
|
options = ['--prefix=%s' % prefix]
|
|
if '~perl' in spec:
|
|
options.append('--disable-perl')
|
|
|
|
configure(*options)
|
|
make()
|
|
make("install")
|