grass 6.4.4
Ensure PYTHONPATH is set when building with wxpython support Closes Homebrew/homebrew#31344. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
8b1e21a491
commit
6b728f3b02
1 changed files with 8 additions and 2 deletions
|
@ -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}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue