aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/graphviz.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-09 22:03:53 -0700
committerAdam Vandenberg2012-08-09 22:09:29 -0700
commitac18935be50d603a64363ba9104b91c643992dce (patch)
tree66ac004d1c0d95a66d983ba0165da7ce4ba0d408 /Library/Formula/graphviz.rb
parent0372c6ddb9e0acbcb3d2552b8098dcb6066b797b (diff)
downloadhomebrew-ac18935be50d603a64363ba9104b91c643992dce.tar.bz2
graphviz: partially use options dsl
Diffstat (limited to 'Library/Formula/graphviz.rb')
-rw-r--r--Library/Formula/graphviz.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/graphviz.rb b/Library/Formula/graphviz.rb
index 303fdb1fb..4b6bec554 100644
--- a/Library/Formula/graphviz.rb
+++ b/Library/Formula/graphviz.rb
@@ -9,6 +9,8 @@ class Graphviz < Formula
url 'http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz'
sha1 '4725d88a13e071ee22e632de551d4a55ca08ee7d'
+ option :universal
+
depends_on :libpng
depends_on 'pkg-config' => :build
@@ -22,8 +24,7 @@ class Graphviz < Formula
def options
[
["--with-pangocairo", "Build with Pango/Cairo for alternate PDF output"],
- ["--with[out]-bindings", "Build Perl/Python/Ruby/etc. bindings (default on Lion; may not work on earlier systems)"],
- ['--universal', 'Build Graphviz with universal binaries and libraries']
+ ["--with[out]-bindings", "Build Perl/Python/Ruby/etc. bindings (default on Lion; may not work on earlier systems)"]
]
end
@@ -33,7 +34,7 @@ class Graphviz < Formula
end
def install
- ENV.universal_binary if ARGV.build_universal?
+ ENV.universal_binary if build.universal?
args = ["--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",