summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-03-30 14:51:15 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-03-30 14:51:15 -0700
commitb4580eb04ccafe4d565e44736cf3562921e8c204 (patch)
treebd6aff1e5cd6a01c555e9b1e0295592f8340e6ed
parent279291221c75fd4980643670f5555cd1db241f33 (diff)
parent4ab362ae17da96db2a5fb7bacb3035824817c15d (diff)
downloadspack-b4580eb04ccafe4d565e44736cf3562921e8c204.tar.gz
spack-b4580eb04ccafe4d565e44736cf3562921e8c204.tar.bz2
spack-b4580eb04ccafe4d565e44736cf3562921e8c204.tar.xz
spack-b4580eb04ccafe4d565e44736cf3562921e8c204.zip
Merge pull request #604 from KineticTheory/pkg-graphviz
Pkg graphviz
-rw-r--r--var/spack/repos/builtin/packages/graphviz/package.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/graphviz/package.py b/var/spack/repos/builtin/packages/graphviz/package.py
index 7af7da1881..ecf92620d4 100644
--- a/var/spack/repos/builtin/packages/graphviz/package.py
+++ b/var/spack/repos/builtin/packages/graphviz/package.py
@@ -7,6 +7,12 @@ class Graphviz(Package):
version('2.38.0', '5b6a829b2ac94efcd5fa3c223ed6d3ae')
+ # By default disable optional Perl language support to prevent build issues
+ # related to missing Perl packages. If spack begins support for Perl in the
+ # future, this package can be updated to depend_on('perl') and the
+ # ncecessary devel packages.
+ variant('perl', default=False, description='Enable if you need the optional Perl language bindings.')
+
parallel = False
depends_on("swig")
@@ -14,8 +20,10 @@ class Graphviz(Package):
depends_on("ghostscript")
def install(self, spec, prefix):
- configure("--prefix=%s" %prefix)
+ options = ['--prefix=%s' % prefix]
+ if not '+perl' in spec:
+ options.append('--disable-perl')
+ configure(*options)
make()
make("install")
-