aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-06-27 16:50:01 -0500
committerMisty De Meo2013-06-27 16:50:01 -0500
commit1dbae66b883de8f31c06aa5f1bbbc700beab9daa (patch)
tree58899256d6f7d2efd24fc6643abd073a8d00fb02 /Library/Formula/python.rb
parent3022e78622b1b209917b0808aaa6726540e82365 (diff)
downloadhomebrew-1dbae66b883de8f31c06aa5f1bbbc700beab9daa.tar.bz2
python: clean up LINKFORSHARED inreplace
Fixes #20860.
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index 6a4525abc..3ef9a11fb 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -159,9 +159,10 @@ class Python < Formula
# Fixes setting Python build flags for certain software
# See: https://github.com/mxcl/homebrew/pull/20182
# http://bugs.python.org/issue3588
- inreplace "#{prefix}/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile",
- "LINKFORSHARED= -u _PyMac_Error $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)",
- "LINKFORSHARED= -u _PyMac_Error $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)"
+ inreplace "#{prefix}/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile" do |s|
+ s.change_make_var! "LINKFORSHARED",
+ "-u _PyMac_Error $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)"
+ end
end
def distutils_fix_superenv(args)