aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorLarry Shaffer2014-02-10 16:33:40 -0700
committerMike McQuaid2014-02-11 08:17:41 +0000
commit150c9edd8fc8f8ce443cc5bb9fac7d943250fef7 (patch)
treea2d4e736f6f90f4188793ac99c2ef0f951663be7 /Library/Formula
parente8e033eef645ca1918854e71b0dccfcee4689098 (diff)
downloadhomebrew-150c9edd8fc8f8ce443cc5bb9fac7d943250fef7.tar.bz2
graphviz: define librsvg as optional
Closes #26594. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/graphviz.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/graphviz.rb b/Library/Formula/graphviz.rb
index 550c63587..32639cac2 100644
--- a/Library/Formula/graphviz.rb
+++ b/Library/Formula/graphviz.rb
@@ -27,6 +27,7 @@ class Graphviz < Formula
depends_on 'pango' if build.include? 'with-pangocairo'
depends_on 'swig' if build.include? 'with-bindings'
depends_on 'gts' => :optional
+ depends_on "librsvg" => :optional
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'
@@ -53,6 +54,7 @@ class Graphviz < Formula
args << "--without-pangocairo" unless build.include? 'with-pangocairo'
args << "--without-freetype2" unless build.include? 'with-freetype' or MacOS::X11.installed?
args << "--without-x" unless build.include? 'with-x' or MacOS::X11.installed?
+ args << "--without-rsvg" if build.without? "librsvg"
system "./configure", *args
system "make install"