# $Id: Portfile 88422 2012-01-02 01:18:04Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                py27-gslib
set module_name     gslib
set proj_name       gsutil
version             20110908
set year            [string range ${version} 0 3]
set month           [string range ${version} 4 5]
set day             [string range ${version} 6 7]
categories          python
platforms           darwin
license             Apache-2.0
maintainers         singingwolfboy openmaintainer

description         Python module for interacting with cloud storage services
long_description \
  gsutil allows you to store, share and manage data hosted at cloud-based \
  storage providers. It supports a URI syntax for naming data, as well as \
  URI wildcards. At present gsutil works with Google Storage for Developers \
  and Amazon's Simple Storage Service (S3). gsutil is implemented in Python, \
  atop the popular boto open source library.

homepage            http://code.google.com/p/${proj_name}/
master_sites        http://${proj_name}.googlecode.com/files/
distname            ${proj_name}_${month}-${day}-${year}
worksrcdir          ${proj_name}/${module_name}
# store file in gstil port: both ports use the same file
dist_subdir         ${proj_name}

depends_lib         port:py27-boto

checksums           md5     65577aea58479c4eea190dd93b72c42b \
                    sha1    58bb5e5b4443576c548bb795f5aa30c3d12ea8c5 \
                    rmd160  b08b6f303d43eb23bc3be165cdfc68c30ae8d82e

build {}
destroot {
    xinstall -d ${destroot}${python.pkgd}
    move ${worksrcpath} ${destroot}${python.pkgd}/${module_name}
}
