Ticket #20329: Portfile

File Portfile, 1.5 KB (added by singingwolfboy@…, 15 years ago)
Line 
1# $Id: Portfile 51955 2009-06-07 10:04:10Z arthurk@macports.org $
2
3PortSystem          1.0
4PortGroup           python26 1.0
5
6name                py26-gdata
7version             2.0.0
8categories-append   devel
9maintainers         nomaintainer
10description         Google Data API Python Client Library
11long_description \
12    The Google Data Python Client Library provides a library that makes it \
13    easy to access data through the Google Data APIs. Many Google services \
14    (such as Google Calendar and Documents) support the Google Data API \
15    protocol.
16platforms           darwin
17homepage            http://code.google.com/p/gdata-python-client/
18master_sites        http://gdata-python-client.googlecode.com/files/
19distname            gdata-${version}
20
21checksums           md5 09de4e7a958cc2584e159b07185bdd31 \
22                    sha1 22b62dd95ab181eb87caef240d867e4bf721a4ab \
23                    rmd160 f3e0b6294ce74608b2e36b3ebf456eb20c1c1524
24
25depends_lib         port:py26-setuptools
26
27post-destroot {
28
29    eval reinplace \
30        "s|/usr/local/svn/gdata-python-client/src|${prefix}/lib/python2.6/site-packages|g" \
31        [glob ${worksrcpath}/pydocs/*.html]
32
33    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
34    eval file copy [glob ${worksrcpath}/pydocs/*.html] \
35        ${destroot}${prefix}/share/doc/${name}
36
37    eval reinplace "s|#!/usr/bin/python|#!${prefix}/bin/python2.6|g" \
38        [glob ${worksrcpath}/samples/*/*.py]
39    file copy ${worksrcpath}/samples \
40        ${destroot}${prefix}/share/doc/${name}/
41       
42}