Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/gsutil: gsutil-3.18.ebuild ChangeLog
Date: Tue, 30 Oct 2012 07:09:34
Message-Id: 20121030070922.E6E3521600@flycatcher.gentoo.org
1 vapier 12/10/30 07:09:22
2
3 Modified: ChangeLog
4 Added: gsutil-3.18.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha131/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.10 net-misc/gsutil/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gsutil/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gsutil/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gsutil/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/gsutil/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 2 Aug 2012 15:54:22 -0000 1.9
24 +++ ChangeLog 30 Oct 2012 07:09:22 -0000 1.10
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-misc/gsutil
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/gsutil/ChangeLog,v 1.9 2012/08/02 15:54:22 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/gsutil/ChangeLog,v 1.10 2012/10/30 07:09:22 vapier Exp $
30 +
31 +*gsutil-3.18 (30 Oct 2012)
32 +
33 + 30 Oct 2012; Mike Frysinger <vapier@g.o> +gsutil-3.18.ebuild:
34 + Version bump.
35
36 *gsutil-3.14 (02 Aug 2012)
37
38
39
40
41 1.1 net-misc/gsutil/gsutil-3.18.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gsutil/gsutil-3.18.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gsutil/gsutil-3.18.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gsutil-3.18.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-misc/gsutil/gsutil-3.18.ebuild,v 1.1 2012/10/30 07:09:22 vapier Exp $
51
52 EAPI="3"
53
54 inherit eutils python multilib
55
56 DESCRIPTION="command line tool for interacting with cloud storage services"
57 HOMEPAGE="http://code.google.com/p/gsutil/"
58 SRC_URI="http://commondatastorage.googleapis.com/pub/${PN}_${PV}.tar.gz"
59
60 LICENSE="Apache-2.0"
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="examples"
64
65 DEPEND=""
66 RDEPEND="${DEPEND}
67 >=dev-python/boto-2.5.2"
68
69 S=${WORKDIR}/${PN}
70
71 src_prepare() {
72 # use system boto
73 rm -rf boto
74 epatch "${FILESDIR}"/${PN}-system-boto.patch
75
76 # use the custom internal path to avoid polluting python system
77 sed -i \
78 -e "/^gsutil_bin_dir =/s:=.*:= '/usr/$(get_libdir)/${PN}';sys.path.insert(0, gsutil_bin_dir);:" \
79 gsutil || die
80
81 # trim some cruft
82 find gslib third_party -name README -delete
83 }
84
85 src_install() {
86 dobin gsutil || die
87
88 insinto /usr/$(get_libdir)/${PN}
89 doins -r gslib oauth2_plugin third_party VERSION || die
90
91 # http://code.google.com/p/gsutil/issues/detail?id=96
92 rm "${D}"/usr/$(get_libdir)/${PN}/gslib/commands/test.py || die
93
94 dodoc README
95 if use examples ; then
96 insinto /usr/share/doc/${PF}/examples
97 doins -r cloud{auth,reader}
98 fi
99 }
100
101 pkg_postinst() {
102 python_mod_optimize /usr/$(get_libdir)/${PN}
103 }
104
105 pkg_postrm() {
106 python_mod_cleanup /usr/$(get_libdir)/${PN}
107 }