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