[99776] trunk/dports/python

jwa at macports.org jwa at macports.org
Sat Nov 17 04:31:37 PST 2012


Revision: 99776
          https://trac.macports.org/changeset/99776
Author:   jwa at macports.org
Date:     2012-11-17 04:31:37 -0800 (Sat, 17 Nov 2012)
Log Message:
-----------
py-wxpython30: new port, making wxpython depend on the next stable release by version number according to the same logic as the corresponding wxWidgets

Modified Paths:
--------------
    trunk/dports/python/py-wxpython30/Portfile

Added Paths:
-----------
    trunk/dports/python/py-wxpython30/

Modified: trunk/dports/python/py-wxpython30/Portfile
===================================================================
--- trunk/dports/python/py27-wxpython-devel/Portfile	2012-11-08 09:35:21 UTC (rev 99513)
+++ trunk/dports/python/py-wxpython30/Portfile	2012-11-17 12:31:37 UTC (rev 99776)
@@ -1,9 +1,9 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup	python27 1.0
+PortGroup	python 1.0
 
-name		py27-wxpython-devel
+name		py-wxpython30
 version		2.9.4.0
 
 categories	python graphics
@@ -22,12 +22,15 @@
 
 homepage	http://www.wxpython.org/
 master_sites	sourceforge:wxpython
+
+python.versions 27
+
 distname	wxPython-src-${version}
 use_bzip2	yes
 checksums           rmd160  35e823d9161dc99083f3025383567000680e012f \
                     sha256  78c35c19e85a17cb9c730b86b49d6a479198d76d19e0b13e86db0b55707004be
 
-depends_lib	port:wxWidgets-devel
+depends_lib	port:wxWidgets30
 
 worksrcdir	${distname}/wxPython
 
@@ -39,17 +42,23 @@
 
 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
+if {$subport != $name} {
+    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
+    }
 }
 
-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
+if {$subport == $name} {
+    livecheck.type	regex
+    livecheck.url	${homepage}
+    livecheck.regex	wxPython(?: | \\(classic\\) )(2\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)
+} else {
+    livecheck.type      none
 }
-
-livecheck.type	regex
-livecheck.url	${homepage}
-livecheck.regex	wxPython(?: | \\(classic\\) )(2\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121117/f0c3e47c/attachment.html>


More information about the macports-changes mailing list