[82224] trunk/dports/python

snc at macports.org snc at macports.org
Wed Aug 10 12:02:12 PDT 2011


Revision: 82224
          http://trac.macports.org/changeset/82224
Author:   snc at macports.org
Date:     2011-08-10 12:02:11 -0700 (Wed, 10 Aug 2011)
Log Message:
-----------
py-pyxg: unify

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

Removed Paths:
-------------
    trunk/dports/python/py25-pyxg/
    trunk/dports/python/py26-pyxg/
    trunk/dports/python/py27-pyxg/

Modified: trunk/dports/python/py-pyxg/Portfile
===================================================================
--- trunk/dports/python/py-pyxg/Portfile	2011-08-10 18:31:00 UTC (rev 82223)
+++ trunk/dports/python/py-pyxg/Portfile	2011-08-10 19:02:11 UTC (rev 82224)
@@ -2,10 +2,12 @@
 # $Id$
 
 PortSystem      1.0
-PortGroup       python24 1.0
+PortGroup           python 1.0
 
 name            py-pyxg
 version         0.3.0
+python.versions 24 25 26 27
+python.default_version  27
 categories      python devel
 platforms       darwin
 maintainers     snc openmaintainer
@@ -22,10 +24,28 @@
 checksums           rmd160  6220811d77fe26e683e72720e4e487916df731fa \
                 sha256  6a551af355939d102fba1fd22e1cd4a7f12ba3387b612008565f36fdaa772fc4
 
-depends_lib     port:py-bdist_mpkg \
-                port:py-pyobjc
-
 supported_archs noarch
 
+
+if {$subport != $name} {
+    if {${python.version} == 24} {
+        depends_lib-append  port:py-bdist_mpkg \
+                            port:py-pyobjc
+        if {${os.major} > 8} {
+            notes-append "#29462: py-pyobjc2: unrecognized command line option '-Wno-long-double'"
+            depends_lib-delete  port:py-pyobjc
+            depends_lib-append  port:py-pyobjc2
+        }
+    }
+
+    if {${python.version} == 25} {
+        depends_lib-append  port:py${python.version}-bdist_mpkg
+    }
+
+    if {${python.version} == 25 || ${python.version} == 26 || ${python.version} == 27} {
+        depends_lib-append  port:py${python.version}-pyobjc-cocoa
+    }
+}
+
 livecheck.url   http://github.com/pyxg/pyxg/downloads
 livecheck.regex "PyXG-(\\d+\\.\\d+(\\.\\d+)?)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110810/b34fc875/attachment.html>


More information about the macports-changes mailing list