[125383] trunk/dports/python

jmr at macports.org jmr at macports.org
Mon Sep 15 18:49:15 PDT 2014


Revision: 125383
          https://trac.macports.org/changeset/125383
Author:   jmr at macports.org
Date:     2014-09-15 18:49:14 -0700 (Mon, 15 Sep 2014)
Log Message:
-----------
py26-PyRSS2Gen: use unified python portgroup

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

Added Paths:
-----------
    trunk/dports/python/py-PyRSS2Gen/

Removed Paths:
-------------
    trunk/dports/python/py26-PyRSS2Gen/

Modified: trunk/dports/python/py-PyRSS2Gen/Portfile
===================================================================
--- trunk/dports/python/py26-PyRSS2Gen/Portfile	2014-09-15 12:59:18 UTC (rev 125376)
+++ trunk/dports/python/py-PyRSS2Gen/Portfile	2014-09-16 01:49:14 UTC (rev 125383)
@@ -2,9 +2,9 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
+PortGroup           python 1.0
 
-name                py26-PyRSS2Gen
+name                py-PyRSS2Gen
 version             1.0.0
 revision            1
 platforms           darwin
@@ -25,12 +25,17 @@
                     sha1    fcea9beb59ca022ed89b254b2362ae5af386f01a \
                     rmd160  8fe60587c15760dc229c0acc765626a0e1c412d7
 
-post-destroot {
-    set docdir ${prefix}/share/doc/${name}
-    xinstall -d ${destroot}${docdir}
-    xinstall -m 644 -W ${worksrcpath} LICENSE README ${destroot}${docdir}
+python.versions     26
+
+if {$subport ne $name} {
+    post-destroot {
+        set docdir ${prefix}/share/doc/${subport}
+        xinstall -d ${destroot}${docdir}
+        xinstall -m 644 -W ${worksrcpath} LICENSE README ${destroot}${docdir}
+    }
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       ${homepage}
+    livecheck.regex     {PyRSS2Gen-(\d+(?:\.\d+)*)}
 }
-
-livecheck.type      regex
-livecheck.url       ${homepage}
-livecheck.regex     {PyRSS2Gen-(\d+(?:\.\d+)*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140915/db463b17/attachment.html>


More information about the macports-changes mailing list