[88299] trunk/dports/python/py25-wxpython

jwa at macports.org jwa at macports.org
Tue Dec 27 07:59:11 PST 2011


Revision: 88299
          http://trac.macports.org/changeset/88299
Author:   jwa at macports.org
Date:     2011-12-27 07:59:08 -0800 (Tue, 27 Dec 2011)
Log Message:
-----------
version bump to 2.8.12.1, changing to python25 group

Modified Paths:
--------------
    trunk/dports/python/py25-wxpython/Portfile

Added Paths:
-----------
    trunk/dports/python/py25-wxpython/files/
    trunk/dports/python/py25-wxpython/files/patch-config.py.diff

Modified: trunk/dports/python/py25-wxpython/Portfile
===================================================================
--- trunk/dports/python/py25-wxpython/Portfile	2011-12-27 15:41:28 UTC (rev 88298)
+++ trunk/dports/python/py25-wxpython/Portfile	2011-12-27 15:59:08 UTC (rev 88299)
@@ -1,9 +1,10 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup	python25 1.0
 
 name		py25-wxpython
-version		2.8.9.1
+version		2.8.12.1
 epoch     1
 categories	python graphics
 platforms	darwin
@@ -21,14 +22,14 @@
 master_sites	sourceforge:wxpython
 distname	wxPython-src-${version}
 use_bzip2	yes
-checksums           md5     4ad9a64e05529097618c7e48fbb10a84 \
-                    sha1    7359af790d58082330c867f5c10f51b6382d9a35 \
-                    rmd160  2b193c867a028985f8ead4084a9c1f024a1d37c6
 
+checksums           md5     8c06c5941477beee213b4f2fa78be620 \
+                    sha1    05688dc03d61631750f5904273122bb40a2115f5 \
+                    rmd160  94eae06087bdd930e21bf90cc6672f93a1f5a17a
+
 #patchfiles		patch-config.py
 
-depends_lib	port:python25 \
-    port:wxWidgets
+depends_lib-append	port:wxWidgets
 
 # wxWidgets is 32-bit only
 supported_archs	i386 ppc
@@ -37,16 +38,17 @@
 
 extract.post_args	"| tar -xf - ${worksrcdir} ${distname}/docs"
 
-use_configure	no
+universal_variant	no
+configure.build_arch	i386
 
 build.env	UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx/config:$env(PATH)"
-build.cmd	${prefix}/bin/python2.5 setup.py
-build.target	build
 
 destroot.env	UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx/config:$env(PATH)"
-destroot.cmd	${build.cmd}
-destroot.destdir	--prefix=${prefix} --root=${destroot}
 
+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}
@@ -56,4 +58,4 @@
 
 livecheck.type	regex
 livecheck.url	${homepage}
-livecheck.regex	wxPython (2\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+)
+livecheck.regex	wxPython (2\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)

Added: trunk/dports/python/py25-wxpython/files/patch-config.py.diff
===================================================================
--- trunk/dports/python/py25-wxpython/files/patch-config.py.diff	                        (rev 0)
+++ trunk/dports/python/py25-wxpython/files/patch-config.py.diff	2011-12-27 15:59:08 UTC (rev 88299)
@@ -0,0 +1,27 @@
+--- config.py	2011-12-04 12:28:13.000000000 +0200
++++ config.py	2011-12-04 12:36:13.000000000 +0200
+@@ -1031,19 +1031,11 @@
+         GENDIR = 'mac'
+         libs = ['stdc++']
+         NO_SCRIPTS = 1
+-        if not ARCH == "":
+-            cflags.append("-arch")
+-            cflags.append(ARCH)
+-            lflags.append("-arch")
+-            lflags.append(ARCH)
+-            #if ARCH == "ppc":
+-            #    cflags.append("-isysroot")
+-            #    cflags.append("/Developer/SDKs/MacOSX10.3.9.sdk")
+-
+-        if not os.environ.get('CC') or not os.environ.get('CXX'):
+-            os.environ["CXX"] = "g++-4.0"
+-            os.environ["CC"]  = "gcc-4.0"
+-            os.environ["CPP"] = "cpp-4.0"
++        os.environ["CXX"] = "llvm-g++-4.2"
++        os.environ["CC"]  = "llvm-gcc-4.2"
++        os.environ["CPP"] = "llvm-cpp-4.2"
++        cflags.append("-isysroot")
++        cflags.append("/Developer/SDKs/MacOSX10.6.sdk")
+ 
+     else:
+         # Set flags for other Unix type platforms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111227/2e744cb7/attachment.html>


More information about the macports-changes mailing list