aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJanne Peltola2012-11-13 11:03:03 +0200
committerAdam Vandenberg2012-11-26 10:21:06 -0800
commitdef3a7025f3de17489f3e80c0d8c319671b7b2bb (patch)
tree067fbfd39beecc8ed81d5b367e40f33ab9d9b722 /Library/Formula
parent18febada30b70a348676e501b246f472896fc092 (diff)
downloadhomebrew-def3a7025f3de17489f3e80c0d8c319671b7b2bb.tar.bz2
graphviz: optional GTS dependency
Closes #16015. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/graphviz.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/graphviz.rb b/Library/Formula/graphviz.rb
index b6c72dfd4..9c7aa081c 100644
--- a/Library/Formula/graphviz.rb
+++ b/Library/Formula/graphviz.rb
@@ -13,12 +13,14 @@ class Graphviz < Formula
option 'with-freetype', 'Build with FreeType support'
option 'with-x', 'Build with X11 support'
option 'with-app', 'Build GraphViz.app (requires full XCode install)'
+ option 'with-gts', 'Build with GNU GTS support (required by prism)'
depends_on :libpng
depends_on 'pkg-config' => :build
depends_on 'pango' if build.include? 'with-pangocairo'
depends_on 'swig' if build.include? 'with-bindings'
+ depends_on 'gts' if build.include? 'with-gts'
depends_on :freetype if build.include? 'with-freetype' or MacOS::X11.installed?
depends_on :x11 if build.include? 'with-x' or MacOS::X11.installed?
depends_on :xcode if build.include? 'with-app'
@@ -40,6 +42,7 @@ class Graphviz < Formula
"--prefix=#{prefix}",
"--without-qt",
"--with-quartz"]
+ args << "--with-gts" if build.include? 'with-gts'
args << "--disable-swig" unless build.include? 'with-bindings'
args << "--without-pangocairo" unless build.include? 'with-pangocairo'
args << "--without-freetype2" unless build.include? 'with-freetype' or MacOS::X11.installed?