From 99decba5fe5cd5e1980e054209ddce32ffb3d173 Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Fri, 3 Aug 2012 18:14:13 -0700 Subject: graphviz: add universal option Graphviz can build universally if it is built with a universal pcre, swig, and gettext. Add a `--universal` option. Change to using sha1. Leave the `fails_with` build version alone because Graphviz builds on Mountain Lion with clang-4.0. Tested on ML with clang and llvm from XCode-4.4. Fixes #13827 Closes #13927. Signed-off-by: Adam Vandenberg --- Library/Formula/graphviz.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/graphviz.rb b/Library/Formula/graphviz.rb index 1d50d1810..a92d438bc 100644 --- a/Library/Formula/graphviz.rb +++ b/Library/Formula/graphviz.rb @@ -7,7 +7,7 @@ end class Graphviz < Formula homepage 'http://graphviz.org/' url 'http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz' - md5 '8d26c1171f30ca3b1dc1b429f7937e58' + sha1 '4725d88a13e071ee22e632de551d4a55ca08ee7d' depends_on 'pkg-config' => :build depends_on 'pango' if ARGV.include? '--with-pangocairo' @@ -19,8 +19,11 @@ class Graphviz < Formula end 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)"]] + [ + ["--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'] + ] end def patches @@ -29,6 +32,7 @@ class Graphviz < Formula end def install + ENV.universal_binary if ARGV.build_universal? args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", -- cgit v1.2.3