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

Last change on this file was 151734, checked in by ryandesign@…, 15 months ago

py-gdata: use googlecode fetchgroup

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