diff options
| author | Tim D. Smith | 2014-09-09 14:26:14 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-09-10 07:47:10 +0100 |
| commit | c4515d973d0db5539424f68f6775a66dd167bbb0 (patch) | |
| tree | abb969f8b88f9f449a1f541738a2da47367931fc /Library | |
| parent | ead278844b18908b74fa86cf17e4a07efc231ac4 (diff) | |
| download | homebrew-c4515d973d0db5539424f68f6775a66dd167bbb0.tar.bz2 | |
graphviz: add $PYTHON_PREFIX/lib to linker search path
Make sure the active python framework's
lib directory is in the linker search path.
Fixes #32180.
Closes #32194.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -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" |
