Ticket #15896: Portfile

File Portfile, 1.6 KB (added by aecollins1@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4PortGroup           python25 1.0
5
6name                py25-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:py25-setuptools \
26                    port:py25-elementtree \
27                    port:py25-socket-ssl
28
29post-destroot {
30   
31    eval reinplace \
32        "s|/home/jhartmann/gdata-python-client2/src|${prefix}/lib/python2.5/site-packages|g" \
33        [glob ${worksrcpath}/pydocs/*.html]
34   
35    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
36    eval file copy [glob ${worksrcpath}/pydocs/*.html] \
37        ${destroot}${prefix}/share/doc/${name}
38       
39    eval reinplace "s|#!/usr/bin/python|#!${prefix}/bin/python2.5|g" \
40        [glob ${worksrcpath}/samples/*/*.py]
41    file copy ${worksrcpath}/samples \
42        ${destroot}${prefix}/share/doc/${name}/
43}
44