Created
September 8, 2011 03:03
-
-
Save mjcarroll/1202508 to your computer and use it in GitHub Desktop.
Fix for graphviz/lion/homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Library/Formula/graphviz.rb b/Library/Formula/graphviz.rb | |
index 5a8557b..adf2033 100644 | |
--- a/Library/Formula/graphviz.rb | |
+++ b/Library/Formula/graphviz.rb | |
@@ -12,6 +12,12 @@ class Graphviz < Formula | |
depends_on 'cairo' if MacOS.leopard? | |
end | |
+ if MacOS.lion? | |
+ depends_on 'gd' | |
+ end | |
+ | |
+ | |
+ | |
def options | |
[["--with-pdf", "Build with Pango/Cairo to support native PDF output"]] | |
end | |
diff --git a/Library/Formula/pango.rb b/Library/Formula/pango.rb | |
index 40fd2e2..d25ef03 100644 | |
--- a/Library/Formula/pango.rb | |
+++ b/Library/Formula/pango.rb | |
@@ -15,6 +15,10 @@ class Pango < Formula | |
depends_on 'cairo' # Leopard doesn't come with Cairo. | |
end | |
+ if MacOS.lion? | |
+ depends_on 'cairo' | |
+ end | |
+ | |
def install | |
system "./configure", "--prefix=#{prefix}", "--with-x" | |
system "make install" | |
diff --git a/Library/Formula/pixman.rb b/Library/Formula/pixman.rb | |
index e284e56..499ca2d 100644 | |
--- a/Library/Formula/pixman.rb | |
+++ b/Library/Formula/pixman.rb | |
@@ -8,6 +8,7 @@ class Pixman < Formula | |
depends_on 'pkg-config' => :build | |
def install | |
+ ENV.gcc_4_2 | |
system "./configure", "--disable-dependency-tracking", | |
"--prefix=#{prefix}", | |
"--enable-gtk=no" # Don't need to build tests |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment