[87939] trunk/dports/python

jwa at macports.org jwa at macports.org
Tue Dec 13 09:49:00 PST 2011


Revision: 87939
          http://trac.macports.org/changeset/87939
Author:   jwa at macports.org
Date:     2011-12-13 09:48:58 -0800 (Tue, 13 Dec 2011)
Log Message:
-----------
py27-wxpython-devel: new port, uses development branch, 2.9.2, of wxWidgets, port at 2.9.2.1 using Cocoa, not the latest version that breaks compatibility

Added Paths:
-----------
    trunk/dports/python/py27-wxpython-devel/
    trunk/dports/python/py27-wxpython-devel/Portfile
    trunk/dports/python/py27-wxpython-devel/files/
    trunk/dports/python/py27-wxpython-devel/files/patch-config.py.diff

Added: trunk/dports/python/py27-wxpython-devel/Portfile
===================================================================
--- trunk/dports/python/py27-wxpython-devel/Portfile	                        (rev 0)
+++ trunk/dports/python/py27-wxpython-devel/Portfile	2011-12-13 17:48:58 UTC (rev 87939)
@@ -0,0 +1,54 @@
+# $Id: Portfile 73275 2010-11-08 21:04:38Z mww at macports.org $
+
+PortSystem 1.0
+PortGroup	python27 1.0
+
+name		py27-wxpython
+version		2.9.2.1
+
+categories	python graphics
+platforms	darwin
+maintainers	jwa
+description	Python interface to the wxWindows cross platform GUI
+long_description	wxPython is a GUI toolkit for the Python programming \
+    language. It allows Python programmers to create \
+    programs with a robust, highly functional graphical \
+    user interface, simply and easily. It is implemented \
+    as a Python extension module (native code) that wraps \
+    the popular wxWindows cross platform GUI library, \
+    which is written in C++.
+
+homepage	http://www.wxpython.org/
+master_sites	sourceforge:wxpython
+distname	wxPython-src-${version}
+use_bzip2	yes
+checksums           md5     1cb1e0757cda9afe2da35d5ee0003262 \
+                    sha1    00bba6ba2bd983c0b905e06415ae61e626099299 \
+                    rmd160  62e0dcd39aa83aa89fb33bb5eed8f39d03be1935
+
+depends_lib	port:wxWidgets-devel
+
+worksrcdir	${distname}/wxPython
+
+extract.post_args	"| tar -xf - ${worksrcdir} ${distname}/docs"
+
+universal_variant	no
+
+build.env	UNICODE="1" WXPORT="osx_cocoa" PATH="${prefix}/lib/wx/config:$env(PATH)"
+
+destroot.env	UNICODE="1" WXPORT="osx_cocoa" PATH="${prefix}/lib/wx/config:$env(PATH)"
+
+if {${os.platform} == "darwin" && ${os.major} >= 10} {
+    patchfiles		patch-config.py.diff
+}
+
+post-destroot {
+    xinstall -d -m 755 ${destroot}${prefix}/share/doc/
+    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
+    file copy ${worksrcpath}/samples \
+	${destroot}${prefix}/share/doc/${name}/examples
+}
+
+livecheck.type	regex
+livecheck.url	${homepage}
+livecheck.regex	wxPython (2\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)

Added: trunk/dports/python/py27-wxpython-devel/files/patch-config.py.diff
===================================================================
--- trunk/dports/python/py27-wxpython-devel/files/patch-config.py.diff	                        (rev 0)
+++ trunk/dports/python/py27-wxpython-devel/files/patch-config.py.diff	2011-12-13 17:48:58 UTC (rev 87939)
@@ -0,0 +1,11 @@
+--- config.py	2011-12-13 13:45:14.000000000 +0200
++++ config.py	2011-12-13 13:46:54.000000000 +0200
+@@ -247,7 +247,7 @@
+ 
+ # change the PORT default for wxMac
+ if sys.platform[:6] == "darwin":
+-    WXPORT = 'osx_carbon'
++    WXPORT = 'osx_cocoa'
+ 
+ # and do the same for wxMSW, just for consistency
+ if os.name == 'nt':
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111213/68eba138/attachment.html>


More information about the macports-changes mailing list