[125353] trunk/dports/python

jmr at macports.org jmr at macports.org
Sun Sep 14 10:23:13 PDT 2014


Revision: 125353
          https://trac.macports.org/changeset/125353
Author:   jmr at macports.org
Date:     2014-09-14 10:23:13 -0700 (Sun, 14 Sep 2014)
Log Message:
-----------
py26-pygooglechart: use unified python portgroup, correct license

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

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

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

Modified: trunk/dports/python/py-pygooglechart/Portfile
===================================================================
--- trunk/dports/python/py26-pygooglechart/Portfile	2014-09-14 16:23:49 UTC (rev 125350)
+++ trunk/dports/python/py-pygooglechart/Portfile	2014-09-14 17:23:13 UTC (rev 125353)
@@ -1,12 +1,12 @@
 # $Id$
 
 PortSystem      1.0
-PortGroup       python26 1.0
+PortGroup       python 1.0
 
-name            py26-pygooglechart
+name            py-pygooglechart
 version         0.2.1
 revision        1
-license         GPL-3
+license         GPL-3+
 maintainers     nomaintainer
 platforms       darwin
 supported_archs noarch
@@ -20,21 +20,26 @@
     devel
 
 homepage        http://pygooglechart.slowchop.com/
-master_sites    ${homepage}files/download/
+master_sites    ${homepage}files/download/ http://distfiles.macports.org/python/
 distname        pygooglechart-${version}
 
 checksums       md5     ec6e1ddd678485c7971c8c0b5dd3cec6 \
                 sha1    a227fa9673280ac260da7d9f0d47168072149722 \
                 rmd160  6e8c5076b1659da5bbdc13f6415a9d39c9e3f42b
 
-depends_build   port:py26-setuptools
+python.versions 26
 
-post-destroot {
-    set docdir ${prefix}/share/doc/${name}
-    xinstall -d ${destroot}${docdir}
-    xinstall -m 644 -W ${worksrcpath} COPYING ${destroot}${docdir}
+if {$subport ne $name} {
+    depends_build   port:py${python.version}-setuptools
+
+    post-destroot {
+        set docdir ${prefix}/share/doc/${subport}
+        xinstall -d ${destroot}${docdir}
+        xinstall -m 644 -W ${worksrcpath} COPYING ${destroot}${docdir}
+    }
+    livecheck.type    none
+} else {
+    livecheck.type    regex
+    livecheck.url     ${homepage}
+    livecheck.regex   {pygooglechart-(\d+(?:\.\d+)*)}
 }
-
-livecheck.type    regex
-livecheck.url     ${homepage}
-livecheck.regex   {pygooglechart-(\d+(?:\.\d+)*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140914/2a20a415/attachment.html>


More information about the macports-changes mailing list