From 15b3e67ea0e87d1bfd7a680728310129ffb3c463 Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Thu, 27 Sep 2012 09:03:29 -0700 Subject: 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 --- Library/Formula/py2cairo.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Library') 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" -- cgit v1.2.3