diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-01-25 05:49:50 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-01-25 05:49:50 +0000 |
commit | a78a90e336a6f993f249714a28bcd2d67a564bdc (patch) | |
tree | 1edad7acbadcd5833f63cd3fdc659b5a5028b6b5 /net-misc/gsutil/gsutil-3.21.ebuild | |
parent | old (diff) | |
download | gentoo-2-a78a90e336a6f993f249714a28bcd2d67a564bdc.tar.gz gentoo-2-a78a90e336a6f993f249714a28bcd2d67a564bdc.tar.bz2 gentoo-2-a78a90e336a6f993f249714a28bcd2d67a564bdc.zip |
Version bump.
(Portage version: 2.2.0_alpha159/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Diffstat (limited to 'net-misc/gsutil/gsutil-3.21.ebuild')
-rw-r--r-- | net-misc/gsutil/gsutil-3.21.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/net-misc/gsutil/gsutil-3.21.ebuild b/net-misc/gsutil/gsutil-3.21.ebuild new file mode 100644 index 000000000000..044b2a949536 --- /dev/null +++ b/net-misc/gsutil/gsutil-3.21.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/gsutil/gsutil-3.21.ebuild,v 1.1 2013/01/25 05:49:50 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.7.0" + +S=${WORKDIR}/${PN} + +src_prepare() { + # use system boto + rm -rf boto + epatch "${FILESDIR}"/${PN}-system-boto.patch + + # trim some cruft + find gslib third_party -name README -delete +} + +src_install() { + insinto /usr/$(get_libdir)/${PN} + doins -r gslib gsutil oauth2_plugin third_party CHECKSUM VERSION || die + + dodir /usr/bin + dosym /usr/$(get_libdir)/${PN}/gsutil /usr/bin/gsutil + fperms a+x /usr/$(get_libdir)/${PN}/gsutil + + # 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} +} |