[100680] trunk/dports/python

jmr at macports.org jmr at macports.org
Thu Dec 20 01:54:39 PST 2012


Revision: 100680
          https://trac.macports.org/changeset/100680
Author:   jmr at macports.org
Date:     2012-12-20 01:54:39 -0800 (Thu, 20 Dec 2012)
Log Message:
-----------
py*-yolk: unify, license, noarch

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

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

Modified: trunk/dports/python/py-yolk/Portfile
===================================================================
--- trunk/dports/python/py-yolk/Portfile	2012-12-20 03:05:48 UTC (rev 100679)
+++ trunk/dports/python/py-yolk/Portfile	2012-12-20 09:54:39 UTC (rev 100680)
@@ -2,12 +2,14 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python24 1.0
+PortGroup           python 1.0
 
 name                py-yolk
 version             0.4.1
 categories-append   devel
+license             GPL-2
 platforms           darwin
+supported_archs     noarch
 maintainers         nomaintainer
 homepage            http://tools.assembla.com/yolk
 description         Command-line tool querying PyPI and Python \
@@ -22,15 +24,20 @@
                     sha1    004e7bf297ac9a752d4d41c3f7eeea7adaa7a675 \
                     rmd160  5a672ab6ba8f121787c008b2e1e5d2b4fd8270d0
 
-post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-    foreach f [glob -directory ${worksrcpath}/docs *] {
-        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
+python.versions     24 25 26 27
+
+if {$subport != $name} {
+    depends_build       port:py${python.version}-distribute
+
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+        foreach f [glob -directory ${worksrcpath}/docs *] {
+            copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]
+        }
     }
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       http://pypi.python.org/pypi/yolk
+    livecheck.regex     virtualenv (1\.\[0-9\]+\.\[0-9\]+)
 }
-
-depends_build       port:py24-distribute
-
-livecheck.type      regex
-livecheck.url       http://pypi.python.org/pypi/yolk
-livecheck.regex     virtualenv (1\.\[0-9\]+\.\[0-9\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121220/8a4ad9d4/attachment.html>


More information about the macports-changes mailing list