aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authornibbles 2bits2012-09-27 09:03:29 -0700
committerAdam Vandenberg2012-09-27 09:21:34 -0700
commit15b3e67ea0e87d1bfd7a680728310129ffb3c463 (patch)
tree74ed2c3d9cd4261d0948f1cf543ce6bddddc3eff /Library/Formula
parent35a12ed0803b756c7a907016124e8b2a3e117625 (diff)
downloadhomebrew-15b3e67ea0e87d1bfd7a680728310129ffb3c463.tar.bz2
py2cairo: add `env :std`
py2cairo needs the PATH environment variable to locate `python-config` and by extension the Python the user wants to use. - Add `env :std` for now until a system-wide solution is used. Fixes #14781 Closes #15159. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/py2cairo.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Formula/py2cairo.rb b/Library/Formula/py2cairo.rb
index e5583d32c..3ad133444 100644
--- a/Library/Formula/py2cairo.rb
+++ b/Library/Formula/py2cairo.rb
@@ -5,6 +5,8 @@ class Py2cairo < Formula
url 'http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2'
sha1 '2efa8dfafbd6b8e492adaab07231556fec52d6eb'
+ env :std
+
depends_on 'cairo'
depends_on :x11
@@ -25,11 +27,10 @@ class Py2cairo < Formula
end
end
- # waf miscompiles py2cairo on Lion, linking the wrong Python Library when
- # HB Python is installed. So add a LINKFLAG that sets the path to the real
- # python Library as determined by `python-prefix`, where it gets used at
- # link time and fixes the problem where you can't import cairo into Python.
+ # waf miscompiles py2cairo on >= lion with HB python, linking the wrong
+ # Python Library. So add a LINKFLAG that sets the path.
# https://github.com/mxcl/homebrew/issues/12893
+ # https://github.com/mxcl/homebrew/issues/14781
# https://bugs.freedesktop.org/show_bug.cgi?id=51544
ENV['LINKFLAGS'] = "-L#{%x(python-config --prefix).chomp}/lib"
system "./waf", "configure", "--prefix=#{prefix}", "--nopyc", "--nopyo"