summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-10-30 07:09:22 +0000
committerMike Frysinger <vapier@gentoo.org>2012-10-30 07:09:22 +0000
commit0aa41183c14f00b94c057c64879e9b9f6f91fb50 (patch)
tree6e56613b0b60b64dd4a0265a901d849efc357d87 /net-misc/gsutil/gsutil-3.18.ebuild
parentBump (diff)
downloadgentoo-2-0aa41183c14f00b94c057c64879e9b9f6f91fb50.tar.gz
gentoo-2-0aa41183c14f00b94c057c64879e9b9f6f91fb50.tar.bz2
gentoo-2-0aa41183c14f00b94c057c64879e9b9f6f91fb50.zip
Version bump.
(Portage version: 2.2.0_alpha131/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/gsutil/gsutil-3.18.ebuild')
-rw-r--r--net-misc/gsutil/gsutil-3.18.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/net-misc/gsutil/gsutil-3.18.ebuild b/net-misc/gsutil/gsutil-3.18.ebuild
new file mode 100644
index 000000000000..a7ad72b50c15
--- /dev/null
+++ b/net-misc/gsutil/gsutil-3.18.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/gsutil/gsutil-3.18.ebuild,v 1.1 2012/10/30 07:09:22 vapier Exp $
+
+EAPI="3"
+
+inherit eutils python multilib
+
+DESCRIPTION="command line tool for interacting with cloud storage services"
+HOMEPAGE="http://code.google.com/p/gsutil/"
+SRC_URI="http://commondatastorage.googleapis.com/pub/${PN}_${PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ >=dev-python/boto-2.5.2"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ # use system boto
+ rm -rf boto
+ epatch "${FILESDIR}"/${PN}-system-boto.patch
+
+ # use the custom internal path to avoid polluting python system
+ sed -i \
+ -e "/^gsutil_bin_dir =/s:=.*:= '/usr/$(get_libdir)/${PN}';sys.path.insert(0, gsutil_bin_dir);:" \
+ gsutil || die
+
+ # trim some cruft
+ find gslib third_party -name README -delete
+}
+
+src_install() {
+ dobin gsutil || die
+
+ insinto /usr/$(get_libdir)/${PN}
+ doins -r gslib oauth2_plugin third_party VERSION || die
+
+ # http://code.google.com/p/gsutil/issues/detail?id=96
+ rm "${D}"/usr/$(get_libdir)/${PN}/gslib/commands/test.py || die
+
+ dodoc README
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r cloud{auth,reader}
+ fi
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/$(get_libdir)/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/$(get_libdir)/${PN}
+}