aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/grass.rb
diff options
context:
space:
mode:
authorJohnathan Conley2014-08-04 17:41:20 -0500
committerJack Nagel2014-09-07 22:58:58 -0500
commit4d87f9453737860fcea7b8a3a7053e800ee6d668 (patch)
tree297bf6f6b00bfc17636877afcb545e32809f25c5 /Library/Formula/grass.rb
parenta4f8aeb32e5b4a3e327cce03bcf9ac514e0206fd (diff)
downloadhomebrew-4d87f9453737860fcea7b8a3a7053e800ee6d668.tar.bz2
grass 6.4.4
Ensure PYTHONPATH is set when building with wxpython support Closes #31344. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/grass.rb')
-rw-r--r--Library/Formula/grass.rb10
1 files changed, 8 insertions, 2 deletions
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}"