Revision
89397
Author
jmr@macports.org
Date
2012-01-27 23:52:32 -0800 (Fri, 27 Jan 2012)

Log Message

unify py*-pip

Modified Paths

Removed Paths

Diff

Modified: trunk/dports/python/py-pip/Portfile (89396 => 89397)


--- trunk/dports/python/py-pip/Portfile	2012-01-28 06:52:03 UTC (rev 89396)
+++ trunk/dports/python/py-pip/Portfile	2012-01-28 07:52:32 UTC (rev 89397)
@@ -2,7 +2,7 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python24 1.0
+PortGroup           python 1.0
 
 name                py-pip
 version             1.0.2
@@ -23,16 +23,22 @@
                     sha1  bb137ac723389651e6cf56c0c95af0a6547443b6 \
                     rmd160  2a398d35c63f62194528aa16ce989ce532f6b895
 
-depends_lib-append  port:py24-distribute
+python.versions     24 25 26 27
 
-post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 -W ${worksrcpath}/docs index.txt news.txt \
-        requirement-format.txt configuration.txt \
-        ${destroot}${prefix}/share/doc/${name}
-    delete ${destroot}${prefix}/bin/pip
+if {$subport != $name} {
+    depends_lib     port:py${python.version}-distribute
+
+    python.link_binaries_suffix
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath}/docs index.txt news.txt \
+            requirement-format.txt configuration.txt \
+            ${destroot}${prefix}/share/doc/${subport}
+        delete ${destroot}${prefix}/bin/pip
+    }
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       http://pypi.python.org/pypi/pip
+    livecheck.regex     pip (\[0-9\]+\.\[0-9.\]+)
 }
-
-livecheck.type      regex
-livecheck.url       http://pypi.python.org/pypi/pip
-livecheck.regex     pip (0\.\[0-9\]+\.\[0-9\]+)