[100134] trunk/dports/python

jmr at macports.org jmr at macports.org
Thu Nov 29 16:50:17 PST 2012


Revision: 100134
          https://trac.macports.org/changeset/100134
Author:   jmr at macports.org
Date:     2012-11-29 16:50:17 -0800 (Thu, 29 Nov 2012)
Log Message:
-----------
py*-dateutil: unify

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

Removed Paths:
-------------
    trunk/dports/python/py31-dateutil/
    trunk/dports/python/py32-dateutil/

Modified: trunk/dports/python/py-dateutil/Portfile
===================================================================
--- trunk/dports/python/py-dateutil/Portfile	2012-11-30 00:38:39 UTC (rev 100133)
+++ trunk/dports/python/py-dateutil/Portfile	2012-11-30 00:50:17 UTC (rev 100134)
@@ -6,9 +6,8 @@
 
 name              py-dateutil
 set my_name       python-dateutil
-version           1.5
+version           2.0
 revision          1
-categories        python
 platforms         darwin
 supported_archs   noarch
 maintainers       dh ram openmaintainer
@@ -21,13 +20,20 @@
 master_sites      http://labix.org/download/python-dateutil
 distname          ${my_name}-${version}
 
-checksums         md5 35f3732db3f2cc4afdc68a8533b60a52 \
-                  sha1 f489e1a70e415731d401422f711670288571040b \
-                  rmd160 5f7c80ec9bf68f1708213596a994130964e91e52
+checksums         md5 22297f7e891bcd79a80d9446d8b20542 \
+                  sha1 946337a273866cc4f51d32c86cdbc4209ab84a43 \
+                  rmd160 a7ae3c4948c69471c95466236a388d63fcdac120
 
-python.versions   24 25 26 27
+python.versions   24 25 26 27 31 32
 
 if {${subport} != ${name}} {
+    if {${python.version} < 30} {
+        version 1.5
+        checksums md5 35f3732db3f2cc4afdc68a8533b60a52 \
+                  sha1 f489e1a70e415731d401422f711670288571040b \
+                  rmd160 5f7c80ec9bf68f1708213596a994130964e91e52
+        distname  ${my_name}-${version}
+    }
     depends_run   path:${python.pkgd}/pytz:py${python.version}-tz \
                   port:py${python.version}-distribute
 
@@ -37,16 +43,17 @@
     test.env          PYTHONPATH=${worksrcpath}/build/lib
 
     post-destroot {
-      if {${name} != ${subport}} {
       set docdir ${prefix}/share/doc/${subport}
       xinstall -d ${destroot}${docdir}
       xinstall -m 0644 -W ${worksrcpath} LICENSE README NEWS ${destroot}${docdir}
-      }
     }
 }
 
 if {${name} == ${subport}} {
     livecheck.type    regex
+    livecheck.regex   /${my_name}-(\\d+(?:\\.\\d+)*)
+} elseif {${subport} == "py27-dateutil"} {
+    livecheck.type    regex
     livecheck.regex   /${my_name}-(1.(\\d+)*)
 } else {
     livecheck.type    none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121129/c7f80c24/attachment.html>


More information about the macports-changes mailing list