source: trunk/dports/net/gsutil/Portfile @ 99643

Last change on this file since 99643 was 99643, checked in by singingwolfboy@…, 5 years ago

Dropped maintainership on all my ports

I'm moving to homebrew, and I haven't actually touched most of these in ages, anyway

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