graphviz: define librsvg as optional

Closes Homebrew/homebrew#26594.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Larry Shaffer 2014-02-10 16:33:40 -07:00 committed by Mike McQuaid
parent 88b891720a
commit fe7c96bcae

View file

@ -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"