[89192] trunk/dports/python

ram at macports.org ram at macports.org
Fri Jan 20 11:20:27 PST 2012


Revision: 89192
          http://trac.macports.org/changeset/89192
Author:   ram at macports.org
Date:     2012-01-20 11:20:26 -0800 (Fri, 20 Jan 2012)
Log Message:
-----------
python/py*-enum: unify

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

Removed Paths:
-------------
    trunk/dports/python/py26-enum/

Modified: trunk/dports/python/py-enum/Portfile
===================================================================
--- trunk/dports/python/py-enum/Portfile	2012-01-20 19:20:20 UTC (rev 89191)
+++ trunk/dports/python/py-enum/Portfile	2012-01-20 19:20:26 UTC (rev 89192)
@@ -1,7 +1,7 @@
 # $Id$
 
 PortSystem        1.0
-PortGroup         python24 1.0
+PortGroup         python 1.0
 
 name              py-enum
 version           0.4.4
@@ -21,8 +21,16 @@
                   sha1 8243fccd32da4ca7913b65162f94ebaecef61fd7 \
                   rmd160 65adadea6ae724de26ced714d1f3a09fa4ef29d7
 
-depends_build     port:py24-distribute
+python.versions   24 25 26 27
 
-livecheck.type    regex
-livecheck.url     ${homepage}
-livecheck.regex   {enum (\d+(?:\.\d+)*)}
+if {${subport} != ${name}} {
+  depends_build   port:py${python.version}-distribute
+}
+
+if {${name} == ${subport}} {
+  livecheck.type  regex
+  livecheck.url   ${homepage}
+  livecheck.regex {enum (\d+(?:\.\d+)*)}
+} else {
+  livecheck.type  none
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120120/ee49437c/attachment.html>


More information about the macports-changes mailing list