From 4d87f9453737860fcea7b8a3a7053e800ee6d668 Mon Sep 17 00:00:00 2001 From: Johnathan Conley Date: Mon, 4 Aug 2014 17:41:20 -0500 Subject: grass 6.4.4 Ensure PYTHONPATH is set when building with wxpython support Closes #31344. Signed-off-by: Jack Nagel --- Library/Formula/grass.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/grass.rb b/Library/Formula/grass.rb index dba5c04aa..246e2bded 100644 --- a/Library/Formula/grass.rb +++ b/Library/Formula/grass.rb @@ -4,8 +4,8 @@ class Grass < Formula homepage 'http://grass.osgeo.org/' stable do - url "http://grass.osgeo.org/grass64/source/grass-6.4.3.tar.gz" - sha1 "925da985f3291c41c7a0411eaee596763f7ff26e" + url "http://grass.osgeo.org/grass64/source/grass-6.4.4.tar.gz" + sha1 "0e4dac9fb3320a26e4f640f641485fde0323dd46" # Patches that files are not installed outside of the prefix. patch :DATA @@ -86,6 +86,12 @@ class Grass < Formula args << "--with-wxwidgets=#{Formula["wxmac"].opt_bin}/wx-config" end + if build.with? "wxpython" + python_site_packages = HOMEBREW_PREFIX/"lib/python2.7/site-packages" + default_wx_path = File.read(python_site_packages/"wx.pth").strip + ENV.prepend_path "PYTHONPATH", python_site_packages/default_wx_path + end + args << "--enable-64bit" if MacOS.prefer_64_bit? args << "--with-macos-archs=#{MacOS.preferred_arch}" -- cgit v1.2.3