Ticket #15897: Portfile

File Portfile, 1.5 KB (added by aecollins1@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4PortGroup           python24 1.0
5
6name                py-gdata
7version             1.1.1
8categories-append   devel
9maintainers         gmail.com:aecollins1
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.py-${version}
20
21checksums           md5 8addbac38dabdc7e00701d7b60685d4d \
22                    sha1 aa0120a6f5a724461d885f6ebce29245f9b2e65e \
23                    rmd160 1cb3920d72948e84cdb753dd3f37dc7e03d56717
24
25depends_lib         port:py-setuptools \
26                    port:py-elementtree
27
28post-destroot {
29   
30    eval reinplace \
31        "s|/home/jhartmann/gdata-python-client2/src|${prefix}/lib/python2.4/site-packages|g" \
32        [glob ${worksrcpath}/pydocs/*.html]
33   
34    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
35    eval file copy [glob ${worksrcpath}/pydocs/*.html] \
36        ${destroot}${prefix}/share/doc/${name}
37       
38    eval reinplace "s|#!/usr/bin/python|#!${prefix}/bin/python2.4|g" \
39        [glob ${worksrcpath}/samples/*/*.py]
40       
41    file copy ${worksrcpath}/samples \
42        ${destroot}${prefix}/share/doc/${name}/
43}
44