[87175] trunk/dports/python

aecollins1 at macports.org aecollins1 at macports.org
Sat Nov 12 17:54:51 PST 2011


Revision: 87175
          http://trac.macports.org/changeset/87175
Author:   aecollins1 at macports.org
Date:     2011-11-12 17:54:46 -0800 (Sat, 12 Nov 2011)
Log Message:
-----------
py-gdata: Change py-distribute to build dependency; use subports for py{24,25,26,27}-gdata; version bump to 2.0.15.

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

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

Modified: trunk/dports/python/py-gdata/Portfile
===================================================================
--- trunk/dports/python/py-gdata/Portfile	2011-11-13 00:14:20 UTC (rev 87174)
+++ trunk/dports/python/py-gdata/Portfile	2011-11-13 01:54:46 UTC (rev 87175)
@@ -1,10 +1,10 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python24 1.0
+PortGroup           python 1.0
 
 name                py-gdata
-version             2.0.14
+version             2.0.15
 categories-append   devel
 maintainers         aecollins1
 description         Google Data API Python Client Library
@@ -18,28 +18,38 @@
 master_sites        http://gdata-python-client.googlecode.com/files/
 distname            gdata-${version}
 
-checksums           md5     29cf394b4f75aa4fae8c1b59079f2a02 \
-                    sha1    5eed0e01ab931e3f706ec544fc8f06ecac384e91 \
-                    rmd160  9a0f2b7ba5bfc0cd813ac7ef54068acfae0992b6
+checksums           md5     a0cb04be31c836cf654c3b17d3e3f8ae \
+                    sha1    e38df5320277af8f89f00bc3c17ae29d02883a7f \
+                    rmd160  f6c79cb5bb6a665ee1e10efdbb7a123cf1e57df4
 
-depends_lib         port:py24-distribute \
-                    port:py-elementtree
-                    
-livecheck.type      googlecode
+python.versions     24 25 26 27
+python.default_version 27
 
-post-destroot {
+if {${subport} != ${name}} {
 
-    eval reinplace \
-        "s|/usr/local/svn/gdata-python-client/src|${prefix}/lib/python${python.branch}/site-packages|g" \
-        [glob ${worksrcpath}/pydocs/*.html]
+    if {${python.version} == 24} {
+        depends_lib-append  port:py${python.version}-elementtree
+    }
+    depends_build-append    port:py${python.version}-distribute 
 
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-    eval file copy [glob ${worksrcpath}/pydocs/*.html] \
-        ${destroot}${prefix}/share/doc/${name}
+    post-destroot {
+        eval reinplace \
+            "s|/home/afshar/working/gdata-python-client/src|${python.prefix}/lib/python${python.branch}/site-packages|g" \
+            [glob ${worksrcpath}/pydocs/*.html]
 
-    eval reinplace "s|#!/usr/bin/python|#!${prefix}/bin/python${python.branch}|g" \
-        [glob ${worksrcpath}/samples/*/*.py]
-    file copy ${worksrcpath}/samples \
-        ${destroot}${prefix}/share/doc/${name}/
-        
-}
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+        eval file copy [glob ${worksrcpath}/pydocs/*.html] \
+            ${destroot}${prefix}/share/doc/${subport}
+
+        eval reinplace "s|#!/usr/bin/python|#!${prefix}/bin/python${python.branch}|g" \
+            [glob ${worksrcpath}/samples/*/*.py]
+        file copy ${worksrcpath}/samples \
+            ${destroot}${prefix}/share/doc/${subport}/
+    }
+
+} 
+
+livecheck.type      googlecode
+livecheck.regex     gdata-(\[0-9\.-\]+).tar.gz
+    
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111112/3d72df65/attachment.html>


More information about the macports-changes mailing list