diff options
| author | Misty De Meo | 2013-12-31 01:00:47 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-04 18:20:21 -0800 |
| commit | 07e42b750405a06440fc07d77f2f5dcf5cffd6a3 (patch) | |
| tree | cc94b5e479d24b49de59a523dcc279bd7cf0e732 /Library | |
| parent | b572b8205aeb5c9475ff1f476fd15cd5e76833fd (diff) | |
| download | homebrew-07e42b750405a06440fc07d77f2f5dcf5cffd6a3.tar.bz2 | |
Remove wxPython from wxMac
Closes #25651.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/wxmac.rb | 65 |
1 files changed, 2 insertions, 63 deletions
diff --git a/Library/Formula/wxmac.rb b/Library/Formula/wxmac.rb index 50ad1c558..d2a439c9b 100644 --- a/Library/Formula/wxmac.rb +++ b/Library/Formula/wxmac.rb @@ -1,60 +1,15 @@ require 'formula' -class FrameworkPython < Requirement - fatal true - - satisfy do - q = `python -c "import distutils.sysconfig as c; print(c.get_config_var('PYTHONFRAMEWORK'))"` - not q.chomp.empty? - end - - def message - "Python needs to be built as a framework." - end -end - class Wxmac < Formula homepage 'http://www.wxwidgets.org' - url 'https://downloads.sourceforge.net/project/wxpython/wxPython/3.0.0.0/wxPython-src-3.0.0.0.tar.bz2' - sha1 '48451763275cfe4e5bbec49ccd75bc9652cba719' - - depends_on :python => :recommended - depends_on FrameworkPython if build.with? "python" + url 'http://downloads.sourceforge.net/project/wxwindows/3.0.0/wxWidgets-3.0.0.tar.bz2' + sha1 '756a9c54d1f411e262f03bacb78ccef085a9880a' def patches # Upstream patch for starting non-bundled apps like gnuplot (see http://trac.wxwidgets.org/ticket/15613) {:p2 => 'http://trac.wxwidgets.org/changeset/75142/wxWidgets/trunk/src/osx/cocoa/utils.mm?format=diff&new=75142'} end - def install_wx_python - args = [ - # Reference our wx-config - "WX_CONFIG=#{bin}/wx-config", - # At this time Wxmac is installed Unicode only - "UNICODE=1", - # Some scripts (e.g. matplotlib) expect to `import wxversion`, which is - # only available on a multiversion build. Besides that `import wx` still works. - "INSTALL_MULTIVERSION=1", - # OpenGL and stuff - "BUILD_GLCANVAS=1", - "BUILD_GIZMOS=1", - "BUILD_STC=1" - ] - cd "wxPython" do - ENV.append_to_cflags "-arch #{MacOS.preferred_arch}" - - system "python", "setup.py", - "build_ext", - "WXPORT=osx_cocoa", - *args - system "python", "setup.py", - "install", - "--prefix=#{prefix}", - "WXPORT=osx_cocoa", - *args - end - end - def install # need to set with-macosx-version-min to avoid configure defaulting to 10.5 # need to enable universal binary build in order to build all x86_64 @@ -98,21 +53,5 @@ class Wxmac < Formula system "./configure", *args system "make install" - - if build.with? "python" - ENV['WXWIN'] = Dir.getwd - # We have already downloaded wxPython in a bundle with wxWidgets - install_wx_python - end - end - - def caveats - s = '' - fp = FrameworkPython.new - unless build.without? 'python' or fp.satisfied? - s += fp.message - end - - return s end end |
