aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2014-09-09 14:26:14 -0700
committerMike McQuaid2014-09-10 07:47:10 +0100
commitc4515d973d0db5539424f68f6775a66dd167bbb0 (patch)
treeabb969f8b88f9f449a1f541738a2da47367931fc /Library
parentead278844b18908b74fa86cf17e4a07efc231ac4 (diff)
downloadhomebrew-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.rb7
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"