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

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

py-gdata: license Apache-2

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