source: trunk/dports/python/py-gdata/Portfile @ 97571

Last change on this file since 97571 was 97571, checked in by ryandesign@…, 8 years ago

py-gdata: noarch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 97571 2012-09-09 11:04:48Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           python 1.0
5
6name                py-gdata
7version             2.0.17
8categories-append   devel
9maintainers         aecollins1
10supported_archs     noarch
11
12description         Google Data API Python Client Library
13long_description \
14    The Google Data Python Client Library provides a library that makes it \
15    easy to access data through the Google Data APIs. Many Google services \
16    (such as Google Calendar and Documents) support the Google Data API \
17    protocol.
18platforms           darwin
19homepage            http://code.google.com/p/gdata-python-client/
20master_sites        http://gdata-python-client.googlecode.com/files/
21distname            gdata-${version}
22
23checksums           md5     8c3600cf02c6c228e28e366b2e5d5c32 \
24                    sha1    d2d9f60699611f95dd8c328691a2555e76191c0c \
25                    rmd160  de5f151e7f2beed098d03e2b60c9a3621f3ec93d
26
27python.versions     24 25 26 27
28python.default_version 27
29
30if {${subport} != ${name}} {
31
32    if {${python.version} == 24} {
33        depends_lib-append  port:py${python.version}-elementtree
34    }
35    depends_build-append    port:py${python.version}-distribute
36
37    post-destroot {
38        eval reinplace \
39            "s|/home/afshar/working/gdata-python-client/src|${python.prefix}/lib/python${python.branch}/site-packages|g" \
40            [glob ${worksrcpath}/pydocs/*.html]
41
42        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
43        eval file copy [glob ${worksrcpath}/pydocs/*.html] \
44            ${destroot}${prefix}/share/doc/${subport}
45
46        eval reinplace "s|#!/usr/bin/python|#!${prefix}/bin/python${python.branch}|g" \
47            [glob ${worksrcpath}/samples/*/*.py]
48        file copy ${worksrcpath}/samples \
49            ${destroot}${prefix}/share/doc/${subport}/
50    }
51
52} 
53
54livecheck.type      googlecode
55livecheck.regex     gdata-(\[0-9\.-\]+).tar.gz
56   
57
Note: See TracBrowser for help on using the repository browser.