1 | # $Id: Portfile 51955 2009-06-07 10:04:10Z arthurk@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python26 1.0 |
---|
5 | |
---|
6 | name py26-gdata |
---|
7 | version 2.0.0 |
---|
8 | categories-append devel |
---|
9 | maintainers nomaintainer |
---|
10 | description Google Data API Python Client Library |
---|
11 | long_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. |
---|
16 | platforms darwin |
---|
17 | homepage http://code.google.com/p/gdata-python-client/ |
---|
18 | master_sites http://gdata-python-client.googlecode.com/files/ |
---|
19 | distname gdata-${version} |
---|
20 | |
---|
21 | checksums md5 09de4e7a958cc2584e159b07185bdd31 \ |
---|
22 | sha1 22b62dd95ab181eb87caef240d867e4bf721a4ab \ |
---|
23 | rmd160 f3e0b6294ce74608b2e36b3ebf456eb20c1c1524 |
---|
24 | |
---|
25 | depends_lib port:py26-setuptools |
---|
26 | |
---|
27 | post-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 | } |
---|