Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
graphviz: update inreplace
Browse files Browse the repository at this point in the history
Closes #44647.

Closes #50450.

Signed-off-by: Dominyk Tiller <[email protected]>
  • Loading branch information
DomT4 committed Mar 26, 2016
1 parent 381fbdd commit ef97050
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Library/Formula/graphviz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ def install
args << "--without-x" if build.without? "x11"
args << "--without-rsvg" if build.without? "librsvg"

if build.with? "bindings"
if build.stable? && build.with?("bindings")
# http://www.graphviz.org/mantisbt/view.php?id=2486
# Fixed in HEAD to use "undefined dynamic_lookup".
inreplace "configure", 'PYTHON_LIBS="-lpython$PYTHON_VERSION_SHORT"',
'PYTHON_LIBS="-L$PYTHON_PREFIX/lib -lpython$PYTHON_VERSION_SHORT"'
'PYTHON_LIBS="-undefined dynamic_lookup"'
end

if build.head?
Expand All @@ -94,7 +95,7 @@ def install
prefix.install "macosx/build/Release/Graphviz.app"
end

(bin+"gvmap.sh").unlink
(bin/"gvmap.sh").unlink
end

test do
Expand Down

0 comments on commit ef97050

Please sign in to comment.