From d1a3adfcf09fb489acce9d29b2f9494df5f5d848 Mon Sep 17 00:00:00 2001
From: "Kelly (KT) Thompson" <kgt@lanl.gov>
Date: Wed, 30 Mar 2016 14:25:44 -0600
Subject: [PATCH] + Make --disable-perl the default configure option.

---
 var/spack/repos/builtin/packages/graphviz/package.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/var/spack/repos/builtin/packages/graphviz/package.py b/var/spack/repos/builtin/packages/graphviz/package.py
index 84bd696af2..a45cd8743e 100644
--- a/var/spack/repos/builtin/packages/graphviz/package.py
+++ b/var/spack/repos/builtin/packages/graphviz/package.py
@@ -7,7 +7,11 @@ class Graphviz(Package):
 
     version('2.38.0', '5b6a829b2ac94efcd5fa3c223ed6d3ae')
 
-    variant('perl', default=True, description='Disable if you have problems with the optional script language bindings')
+    # 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='Disable if you have problems with the optional script language bindings')
 
     parallel = False
 
@@ -17,7 +21,7 @@ class Graphviz(Package):
 
     def install(self, spec, prefix):
         options = ['--prefix=%s' % prefix]
-        if '~perl' in spec:
+        if not '+perl' in spec:
             options.append('--disable-perl')
 
         configure(*options)
-- 
GitLab