[82440] trunk/dports/python

ram at macports.org ram at macports.org
Sat Aug 13 15:40:22 PDT 2011


Revision: 82440
          http://trac.macports.org/changeset/82440
Author:   ram at macports.org
Date:     2011-08-13 15:40:22 -0700 (Sat, 13 Aug 2011)
Log Message:
-----------
python/py*-dateutil: unify

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

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

Modified: trunk/dports/python/py-dateutil/Portfile
===================================================================
--- trunk/dports/python/py-dateutil/Portfile	2011-08-13 22:39:20 UTC (rev 82439)
+++ trunk/dports/python/py-dateutil/Portfile	2011-08-13 22:40:22 UTC (rev 82440)
@@ -1,7 +1,7 @@
 # $Id$
 
 PortSystem        1.0
-PortGroup         python24 1.0
+PortGroup         python 1.0
 
 name              py-dateutil
 set my_name       python-dateutil
@@ -22,8 +22,15 @@
                   sha1 f489e1a70e415731d401422f711670288571040b \
                   rmd160 5f7c80ec9bf68f1708213596a994130964e91e52
 
-depends_run       port:py-tz \
+python.versions   24 25 26 27
+
+if {${subport} == "py24-dateutil"} {
+    depends_run   port:py-tz \
                   port:py-distribute
+} elseif {${subport} != ${name}} {
+    depends_run   port:py${python.version}-tz \
+                  port:py${python.version}-distribute
+}
 
 test.run          yes
 test.cmd          ${python.bin} test.py
@@ -31,9 +38,11 @@
 test.env          PYTHONPATH=${worksrcpath}/build/lib
 
 post-destroot {
-  set docdir ${prefix}/share/doc/${name}-${version}
+  if {${name} != ${subport}} {
+  set docdir ${prefix}/share/doc/${subport}
   xinstall -d ${destroot}${docdir}
   xinstall -m 0644 -W ${worksrcpath} LICENSE README NEWS ${destroot}${docdir}
+  }
 }
 
 livecheck.type    regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110813/d3017dbd/attachment.html>


More information about the macports-changes mailing list