graphviz: general cleanup.
This commit is contained in:
parent
a31c5e3491
commit
e4cb7c5589
1 changed files with 17 additions and 17 deletions
|
@ -1,9 +1,9 @@
|
|||
require 'formula'
|
||||
require "formula"
|
||||
|
||||
class Graphviz < Formula
|
||||
homepage 'http://graphviz.org/'
|
||||
url 'http://graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.38.0.tar.gz'
|
||||
sha1 '053c771278909160916ca5464a0a98ebf034c6ef'
|
||||
homepage "http://graphviz.org/"
|
||||
url "http://graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.38.0.tar.gz"
|
||||
sha1 "053c771278909160916ca5464a0a98ebf034c6ef"
|
||||
|
||||
bottle do
|
||||
sha1 "112471c5d0e25a953ae64c09db48f434e744f558" => :mavericks
|
||||
|
@ -15,19 +15,19 @@ class Graphviz < Formula
|
|||
env :std
|
||||
|
||||
option :universal
|
||||
option 'with-bindings', 'Build Perl/Python/Ruby/etc. bindings'
|
||||
option 'with-pangocairo', 'Build with Pango/Cairo for alternate PDF output'
|
||||
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)'
|
||||
option "with-bindings", "Build Perl/Python/Ruby/etc. bindings"
|
||||
option "with-pangocairo", "Build with Pango/Cairo for alternate PDF output"
|
||||
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.with? "pangocairo"
|
||||
depends_on 'swig' if build.with? "bindings"
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "pango" if build.with? "pangocairo"
|
||||
depends_on "swig" if build.with? "bindings"
|
||||
depends_on :python if build.with? "bindings"
|
||||
depends_on 'gts' => :optional
|
||||
depends_on "gts" => :optional
|
||||
depends_on "librsvg" => :optional
|
||||
depends_on "freetype" => :optional
|
||||
depends_on :x11 if build.with? "x"
|
||||
|
@ -49,7 +49,7 @@ class Graphviz < Formula
|
|||
"--prefix=#{prefix}",
|
||||
"--without-qt",
|
||||
"--with-quartz"]
|
||||
args << "--with-gts" if build.with? 'gts'
|
||||
args << "--with-gts" if build.with? "gts"
|
||||
args << "--disable-swig" if build.without? "bindings"
|
||||
args << "--without-pangocairo" if build.without? "pangocairo"
|
||||
args << "--without-freetype2" if build.without? "freetype"
|
||||
|
@ -63,7 +63,7 @@ class Graphviz < Formula
|
|||
end
|
||||
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
system "make", "install"
|
||||
|
||||
if build.with? "app"
|
||||
cd "macosx" do
|
||||
|
@ -72,11 +72,11 @@ class Graphviz < Formula
|
|||
prefix.install "macosx/build/Release/Graphviz.app"
|
||||
end
|
||||
|
||||
(bin+'gvmap.sh').unlink
|
||||
(bin+"gvmap.sh").unlink
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/'sample.dot').write <<-EOS.undent
|
||||
(testpath/"sample.dot").write <<-EOS.undent
|
||||
digraph G {
|
||||
a -> b
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue