summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-05-15 18:36:45 +0200
committerDenis Davydov <davydden@gmail.com>2016-05-15 19:43:01 +0200
commit459c647bc97617f2334334c2c59e979f5b15fbef (patch)
treeaf824bf855d9d6658d2a30baa0436188ae20288e
parenta045154b5eda7c4d44d3e3b24fe4369c38b1aed4 (diff)
downloadspack-459c647bc97617f2334334c2c59e979f5b15fbef.tar.gz
spack-459c647bc97617f2334334c2c59e979f5b15fbef.tar.bz2
spack-459c647bc97617f2334334c2c59e979f5b15fbef.tar.xz
spack-459c647bc97617f2334334c2c59e979f5b15fbef.zip
doxygen: add graphviz variant; enable flex and bison on OSX and they build fine
-rw-r--r--var/spack/repos/builtin/packages/doxygen/package.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/doxygen/package.py b/var/spack/repos/builtin/packages/doxygen/package.py
index b8f15dee14..d6b72af2f9 100644
--- a/var/spack/repos/builtin/packages/doxygen/package.py
+++ b/var/spack/repos/builtin/packages/doxygen/package.py
@@ -22,10 +22,6 @@
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
-
-# Author: Justin Too <justin@doubleotoo.com>
-# Date: September 11, 2015
-
from spack import *
import sys
@@ -43,10 +39,15 @@ class Doxygen(Package):
version('1.8.11', 'f4697a444feaed739cfa2f0644abc19b')
version('1.8.10', '79767ccd986f12a0f949015efb5f058f')
+ # graphviz appears to be a run-time optional dependency
+ variant('graphviz', default=True, description='Build with dot command support from Graphviz.')
+
depends_on("cmake@2.8.12:")
- # flex does not build on OSX, but it's provided there anyway
- depends_on("flex", sys.platform != 'darwin')
- depends_on("bison", sys.platform != 'darwin')
+ depends_on("flex")
+ depends_on("bison")
+
+ #optional dependencies
+ depends_on("graphviz", when="+graphviz")
def install(self, spec, prefix):
cmake('.', *std_cmake_args)