diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/graphviz.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/graphviz.rb b/Library/Formula/graphviz.rb index fb8b5f2e0..eabb17f14 100644 --- a/Library/Formula/graphviz.rb +++ b/Library/Formula/graphviz.rb @@ -26,6 +26,7 @@ class Graphviz < Formula 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 "librsvg" => :optional depends_on "freetype" => :optional @@ -55,6 +56,12 @@ class Graphviz < Formula args << "--without-x" if build.without? "x" args << "--without-rsvg" if build.without? "librsvg" + if build.with? "bindings" + # http://www.graphviz.org/mantisbt/view.php?id=2486 + inreplace "configure", 'PYTHON_LIBS="-lpython$PYTHON_VERSION_SHORT"', + 'PYTHON_LIBS="-L$PYTHON_PREFIX/lib -lpython$PYTHON_VERSION_SHORT"' + end + system "./configure", *args system "make install" |
