[126646] trunk/dports/python/py-argparse/Portfile

larryv at macports.org larryv at macports.org
Sun Oct 12 21:48:02 PDT 2014


Revision: 126646
          https://trac.macports.org/changeset/126646
Author:   larryv at macports.org
Date:     2014-10-12 21:48:02 -0700 (Sun, 12 Oct 2014)
Log Message:
-----------
py{24,25,31}-argparse: Replace with python{27,34}

The argparse module was added to CPython 2.7.

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

Modified: trunk/dports/python/py-argparse/Portfile
===================================================================
--- trunk/dports/python/py-argparse/Portfile	2014-10-13 04:48:00 UTC (rev 126645)
+++ trunk/dports/python/py-argparse/Portfile	2014-10-13 04:48:02 UTC (rev 126646)
@@ -27,7 +27,15 @@
 python.versions     24 25 26 31
 
 if {${name} ne ${subport}} {
-    depends_build-append    port:py${python.version}-setuptools
+    if {${subport} ne "py26-argparse"} {
+        version     1.2.1
+        revision    1
+        depends_lib
+        replaced_by [expr {$subport eq "py31-argparse" ? "python34" : "python27"}]
+        PortGroup   obsolete 1.0
+    } else {
+        depends_build-append    port:py${python.version}-setuptools
+    }
 }
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141012/d9a1f1cc/attachment.html>


More information about the macports-changes mailing list