# $Id: Portfile 126374 2014-10-09 04:27:17Z jmr@macports.org $ PortSystem 1.0 PortGroup python 1.0 name py-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] platforms darwin license Apache-2 maintainers nomaintainer supported_archs noarch 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 googlecode:${proj_name} 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} checksums md5 65577aea58479c4eea190dd93b72c42b \ sha1 58bb5e5b4443576c548bb795f5aa30c3d12ea8c5 \ rmd160 b08b6f303d43eb23bc3be165cdfc68c30ae8d82e python.versions 27 if {$subport ne $name} { depends_lib port:py${python.version}-boto build {} destroot { xinstall -d ${destroot}${python.pkgd} move ${worksrcpath} ${destroot}${python.pkgd}/${module_name} } }