Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

wxpython 2.9.1.1

Patching is necessary for 64-bit cocoa builds.
http://trac.wxwidgets.org/ticket/13030

Including some fixes used in issue 5840
Homebrew#5772
commit c4d9e732069dae6c8fdf48314ae078b7e911a911 1 parent 4e94c41
@johnchristopherjones authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 Library/Formula/wxpython.rb
View
27 Library/Formula/wxpython.rb
@@ -0,0 +1,27 @@
+require 'formula'
+
+class Wxpython < Formula
+ url 'http://downloads.sourceforge.net/wxpython/wxPython-src-2.9.1.1.tar.bz2'
+ homepage 'http://www.wxpython.org/'
+ md5 'f7ef8d0f68b514e17da40f957f48ca4e'
+
+ def patches
+ # see here: http://trac.wxwidgets.org/ticket/13030
+ { :p3 => "http://trac.wxwidgets.org/changeset/67170?format=diff&new=67170" }
+ end
+
+ def install
+ # Arch change from winpdb commit at https://github.com/mxcl/homebrew/pull/5772
+ # Find the arch for the Python we are building against.
+ # We remove 'ppc' support, so we can pass Intel-optimized CFLAGS.
+ archs = archs_for_command("python")
+ archs.remove_ppc!
+ ENV['ARCHFLAGS'] = archs.as_arch_flags
+
+ cd "wxPython"
+ system "python", "build-wxpython.py",
+ "--osx_cocoa", "--mac_framework", "--prefix=#{prefix}", "--install"
+ end
+end
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.