diff options
| author | Adam Vandenberg | 2014-02-27 20:47:43 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-04 18:20:21 -0800 |
| commit | f8d17f19923b651fea05b0171a41e796d854b9d7 (patch) | |
| tree | 5201ac089715cd1ce6e0f52a8cf2dad77c7f7f86 /Library | |
| parent | 8ced0b75456ea95546cb03d4b65a809b51b6f569 (diff) | |
| download | homebrew-f8d17f19923b651fea05b0171a41e796d854b9d7.tar.bz2 | |
wxpython: style cleanup
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/wxpython.rb | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/Library/Formula/wxpython.rb b/Library/Formula/wxpython.rb index 1b3a116f5..44f0b67ee 100644 --- a/Library/Formula/wxpython.rb +++ b/Library/Formula/wxpython.rb @@ -14,46 +14,43 @@ class FrameworkPython < Requirement end class Wxpython < Formula - homepage 'http://www.wxwidgets.org' - url 'http://downloads.sourceforge.net/project/wxpython/wxPython/3.0.0.0/wxPython-src-3.0.0.0.tar.bz2' - sha1 '48451763275cfe4e5bbec49ccd75bc9652cba719' + homepage "http://www.wxwidgets.org" + url "http://downloads.sourceforge.net/project/wxpython/wxPython/3.0.0.0/wxPython-src-3.0.0.0.tar.bz2" + sha1 "48451763275cfe4e5bbec49ccd75bc9652cba719" depends_on :python depends_on FrameworkPython - depends_on 'wxmac' + depends_on "wxmac" def install - ENV['WXWIN'] = buildpath + ENV["WXWIN"] = buildpath args = [ + "WXPORT=osx_cocoa", # Reference our wx-config - "WX_CONFIG=#{Formula.factory('wxmac').opt_prefix}/bin/wx-config", + "WX_CONFIG=#{Formula["wxmac"].opt_prefix}/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. + # only available on a multiversion build. "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 - - test do - system "python", "-c", "import wx" - end -end
\ No newline at end of file +end |
