source: trunk/dports/net/gsutil/Portfile

Last change on this file was 102763, checked in by ryandesign@…, 4 years ago

gsutil, py27-gslib: use googlecode fetchgroup; supported_archs noarch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 102763 2013-02-08 03:07:27Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                gsutil
6version             20110908
7set year            [string range ${version} 0 3]
8set month           [string range ${version} 4 5]
9set day             [string range ${version} 6 7]
10categories          net
11platforms           darwin
12license             Apache-2
13maintainers         nomaintainer
14supported_archs     noarch
15
16description         command line utility for interacting with cloud storage services
17long_description \
18  gsutil allows you to store, share and manage data hosted at cloud-based \
19  storage providers. It supports a URI syntax for naming data, as well as \
20  URI wildcards. At present gsutil works with Google Storage for Developers \
21  and Amazon's Simple Storage Service (S3). gsutil is implemented in Python, \
22  atop the popular boto open source library.
23
24homepage            http://code.google.com/p/${name}/
25master_sites        googlecode
26distname            ${name}_${month}-${day}-${year}
27worksrcdir          ${name}
28
29depends_lib         port:py27-gslib
30
31checksums           md5     65577aea58479c4eea190dd93b72c42b \
32                    sha1    58bb5e5b4443576c548bb795f5aa30c3d12ea8c5 \
33                    rmd160  b08b6f303d43eb23bc3be165cdfc68c30ae8d82e
34
35patchfiles          gsutil.patch
36
37build {}
38destroot {
39    move ${worksrcpath}/gsutil ${destroot}${prefix}/bin/gsutil
40
41    set docdir ${destroot}${prefix}/share/doc/${name}
42    xinstall -d ${docdir}
43    xinstall -m 644 -W ${worksrcpath} README ${docdir}
44    move ${worksrcpath}/cloudauth ${worksrcpath}/cloudreader ${docdir}
45}
46
47variant python27 description {Use Python 2.7} {
48    depends_lib         port:py27-gslib port:python27
49    configure {
50        set python.bin  ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
51        reinplace "s|#!/usr/bin/env python|#!${python.bin}|" ${worksrcpath}/gsutil
52    }
53}
54default_variants    +python27
Note: See TracBrowser for help on using the repository browser.