1 |
commit: 253f53a1a2955c5c932e124eb369b06c75dc07e0 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 28 17:51:36 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 28 17:51:36 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/ppc64le.git/commit/?id=253f53a1 |
7 |
|
8 |
net-misc/gsutil: copy from tree |
9 |
|
10 |
net-misc/gsutil/Manifest | 3 ++ |
11 |
net-misc/gsutil/files/dummy.boto | 6 +++ |
12 |
.../gsutil-3.37-drop-http_proxy-clearing.patch | 35 ++++++++++++++ |
13 |
.../gsutil-3.42-use-friendy-version-checks.patch | 20 ++++++++ |
14 |
.../gsutil-4.18-use-friendy-version-checks.patch | 25 ++++++++++ |
15 |
.../gsutil-4.19-use-friendy-version-checks.patch | 25 ++++++++++ |
16 |
net-misc/gsutil/gsutil-3.42.ebuild | 52 ++++++++++++++++++++ |
17 |
net-misc/gsutil/gsutil-4.18.ebuild | 56 ++++++++++++++++++++++ |
18 |
net-misc/gsutil/gsutil-4.19.ebuild | 56 ++++++++++++++++++++++ |
19 |
net-misc/gsutil/metadata.xml | 11 +++++ |
20 |
10 files changed, 289 insertions(+) |
21 |
|
22 |
diff --git a/net-misc/gsutil/Manifest b/net-misc/gsutil/Manifest |
23 |
new file mode 100644 |
24 |
index 0000000..f2cbdcd |
25 |
--- /dev/null |
26 |
+++ b/net-misc/gsutil/Manifest |
27 |
@@ -0,0 +1,3 @@ |
28 |
+DIST gsutil_3.42.tar.gz 1878904 SHA256 50fc7acb7d1db8752f3eee106a3d8d65188107943e7cb30cfd3f94a9cfcdcf37 SHA512 084aaf43a44528af0cdfd9bd22beeb5d6abff240c09843cf35016d685d51b854ed5b2837eaa50c97bb44d5e1a3cdccbae6688ef27aa13f2a5db6040bf501b381 WHIRLPOOL 5b0d0fb1d2446a7b8777f368f073fdb4f7ad2d6407735976c178a2727a2548bf28522e06469dd0b7df1578d5586bc152fba3520b66f88d706417947aa3aa5578 |
29 |
+DIST gsutil_4.18.tar.gz 2704520 SHA256 b7f2b7fe2f14b3e5ffa0679507be8d84a0add268dff729de53d22b2f5b61ce24 SHA512 74dd2898faa1615dbd7d560a7ed9f2a78788b2f1ce6e97fa5019c55c7827d93de1923f6985f210bb334e8064bdbd7d169f805ac7add722db0f0e20ff0f85494e WHIRLPOOL 6188f1f4ae352a61e9ad4f67afa5773810519d9d96ad1a534dcd3a6ca58b914a336a4682438800bf242573a00a327f52d541810362f84a5104a165a8566dabd5 |
30 |
+DIST gsutil_4.19.tar.gz 2715141 SHA256 6d9ce67de274d080775ed55e3d86edeb1c8c0a942bccdf5e96bdf1eaa51dd8d2 SHA512 59e96c9855a037300feae122462ff3c9f69e46f049812e88087ae532f590e84b81d67b4e961c47bd0f725c87aa6e0360f65bd8935a95a51c61eb80da0b82dcc1 WHIRLPOOL 70ccfa6f462e536f8aee7ef27aef0e9f8ef0d73bad1493959d2a177db675324f5a872bef5c7e7c844b380cabb04d00f6b334f46bc0f021e4ed743a209b4bf677 |
31 |
|
32 |
diff --git a/net-misc/gsutil/files/dummy.boto b/net-misc/gsutil/files/dummy.boto |
33 |
new file mode 100644 |
34 |
index 0000000..93e9dd2 |
35 |
--- /dev/null |
36 |
+++ b/net-misc/gsutil/files/dummy.boto |
37 |
@@ -0,0 +1,6 @@ |
38 |
+# dummy .boto file for testing |
39 |
+ |
40 |
+[Credentials] |
41 |
+gs_oauth2_refresh_token = 1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
42 |
+ |
43 |
+[GSUtil] |
44 |
|
45 |
diff --git a/net-misc/gsutil/files/gsutil-3.37-drop-http_proxy-clearing.patch b/net-misc/gsutil/files/gsutil-3.37-drop-http_proxy-clearing.patch |
46 |
new file mode 100644 |
47 |
index 0000000..4c36035 |
48 |
--- /dev/null |
49 |
+++ b/net-misc/gsutil/files/gsutil-3.37-drop-http_proxy-clearing.patch |
50 |
@@ -0,0 +1,35 @@ |
51 |
+http://crbug.com/318478 |
52 |
+ |
53 |
+From 0067df5b08ebab29b88bbb7e6c1cd79dc4d96100 Mon Sep 17 00:00:00 2001 |
54 |
+From: Mike Frysinger <vapier@g.o> |
55 |
+Date: Wed, 27 Nov 2013 14:57:05 -0500 |
56 |
+Subject: [PATCH] drop http_proxy clearing |
57 |
+ |
58 |
+The boto logic takes care of merging the env vars and the settings in its |
59 |
+boto config file, so there shouldn't be a need to clear things. |
60 |
+--- |
61 |
+ gslib/__main__.py | 8 -------- |
62 |
+ 1 file changed, 8 deletions(-) |
63 |
+ |
64 |
+diff --git a/gslib/__main__.py b/gslib/__main__.py |
65 |
+index 82a69c1..a18db42 100644 |
66 |
+--- a/gslib/__main__.py |
67 |
++++ b/gslib/__main__.py |
68 |
+@@ -247,14 +247,6 @@ def main(): |
69 |
+ else: |
70 |
+ command_name = args[0] |
71 |
+ |
72 |
+- # Unset http_proxy environment variable if it's set, because it confuses |
73 |
+- # boto. (Proxies should instead be configured via the boto config file.) |
74 |
+- if 'http_proxy' in os.environ: |
75 |
+- if debug > 1: |
76 |
+- sys.stderr.write( |
77 |
+- 'Unsetting http_proxy environment variable within gsutil run.\n') |
78 |
+- del os.environ['http_proxy'] |
79 |
+- |
80 |
+ return _RunNamedCommandAndHandleExceptions( |
81 |
+ command_runner, command_name, args[1:], headers, debug, |
82 |
+ parallel_operations) |
83 |
+-- |
84 |
+1.8.4.3 |
85 |
+ |
86 |
|
87 |
diff --git a/net-misc/gsutil/files/gsutil-3.42-use-friendy-version-checks.patch b/net-misc/gsutil/files/gsutil-3.42-use-friendy-version-checks.patch |
88 |
new file mode 100644 |
89 |
index 0000000..5d8bbbc |
90 |
--- /dev/null |
91 |
+++ b/net-misc/gsutil/files/gsutil-3.42-use-friendy-version-checks.patch |
92 |
@@ -0,0 +1,20 @@ |
93 |
+--- a/setup.py |
94 |
++++ b/setup.py |
95 |
+@@ -33,15 +33,13 @@ management tasks, including: |
96 |
+ """ |
97 |
+ |
98 |
+ requires = [ |
99 |
+- 'boto==2.22.1', |
100 |
++ 'boto>=2.22.1', |
101 |
+ 'httplib2>=0.8', |
102 |
+ 'python-gflags>=2.0', |
103 |
+ 'google-api-python-client>=1.1', |
104 |
+ 'pyOpenSSL>=0.13', |
105 |
+ 'crcmod>=1.7', |
106 |
+- # Not using 1.02 because of: |
107 |
+- # https://code.google.com/p/socksipy-branch/issues/detail?id=3 |
108 |
+- 'SocksiPy-branch==1.01', |
109 |
++ 'SocksiPy-branch>=1.01', |
110 |
+ 'retry_decorator>=1.0.0', |
111 |
+ ] |
112 |
+ |
113 |
|
114 |
diff --git a/net-misc/gsutil/files/gsutil-4.18-use-friendy-version-checks.patch b/net-misc/gsutil/files/gsutil-4.18-use-friendy-version-checks.patch |
115 |
new file mode 100644 |
116 |
index 0000000..ebc8832 |
117 |
--- /dev/null |
118 |
+++ b/net-misc/gsutil/files/gsutil-4.18-use-friendy-version-checks.patch |
119 |
@@ -0,0 +1,25 @@ |
120 |
+--- a/setup.py |
121 |
++++ b/setup.py |
122 |
+@@ -35,10 +35,10 @@ |
123 |
+ """ |
124 |
+ |
125 |
+ requires = [ |
126 |
+- 'boto==2.38.0', |
127 |
++ 'boto>=2.38.0', |
128 |
+ 'crcmod>=1.7', |
129 |
+ 'gcs-oauth2-boto-plugin>=1.12', |
130 |
+- 'google-apitools==0.5.2', |
131 |
++ 'google-apitools>=0.5.2', |
132 |
+ 'httplib2>=0.8', |
133 |
+- 'oauth2client==1.5.2', |
134 |
++ 'oauth2client>=1.5.2', |
135 |
+ 'pyOpenSSL>=0.13', |
136 |
+@@ -48,7 +48,7 @@ |
137 |
+ 'six>=1.9.0', |
138 |
+ # Not using 1.02 because of: |
139 |
+ # https://code.google.com/p/socksipy-branch/issues/detail?id=3 |
140 |
+- 'SocksiPy-branch==1.01', |
141 |
++ 'SocksiPy-branch>=1.01', |
142 |
+ ] |
143 |
+ |
144 |
+ dependency_links = [ |
145 |
|
146 |
diff --git a/net-misc/gsutil/files/gsutil-4.19-use-friendy-version-checks.patch b/net-misc/gsutil/files/gsutil-4.19-use-friendy-version-checks.patch |
147 |
new file mode 100644 |
148 |
index 0000000..66d8144 |
149 |
--- /dev/null |
150 |
+++ b/net-misc/gsutil/files/gsutil-4.19-use-friendy-version-checks.patch |
151 |
@@ -0,0 +1,25 @@ |
152 |
+--- a/setup.py |
153 |
++++ b/setup.py |
154 |
+@@ -35,10 +35,10 @@ |
155 |
+ """ |
156 |
+ |
157 |
+ requires = [ |
158 |
+- 'boto==2.39.0', |
159 |
++ 'boto>=2.39.0', |
160 |
+ 'crcmod>=1.7', |
161 |
+ 'gcs-oauth2-boto-plugin>=1.12', |
162 |
+- 'google-apitools==0.5.2', |
163 |
++ 'google-apitools>=0.5.2', |
164 |
+ 'httplib2>=0.8', |
165 |
+- 'oauth2client==1.5.2', |
166 |
++ 'oauth2client>=1.5.2', |
167 |
+ 'pyOpenSSL>=0.13', |
168 |
+@@ -48,7 +48,7 @@ |
169 |
+ 'six>=1.9.0', |
170 |
+ # Not using 1.02 because of: |
171 |
+ # https://code.google.com/p/socksipy-branch/issues/detail?id=3 |
172 |
+- 'SocksiPy-branch==1.01', |
173 |
++ 'SocksiPy-branch>=1.01', |
174 |
+ ] |
175 |
+ |
176 |
+ dependency_links = [ |
177 |
|
178 |
diff --git a/net-misc/gsutil/gsutil-3.42.ebuild b/net-misc/gsutil/gsutil-3.42.ebuild |
179 |
new file mode 100644 |
180 |
index 0000000..9becc05 |
181 |
--- /dev/null |
182 |
+++ b/net-misc/gsutil/gsutil-3.42.ebuild |
183 |
@@ -0,0 +1,52 @@ |
184 |
+# Copyright 1999-2015 Gentoo Foundation |
185 |
+# Distributed under the terms of the GNU General Public License v2 |
186 |
+# $Id$ |
187 |
+ |
188 |
+EAPI="5" |
189 |
+ |
190 |
+PYTHON_COMPAT=( python2_7 ) |
191 |
+ |
192 |
+inherit distutils-r1 |
193 |
+ |
194 |
+DESCRIPTION="command line tool for interacting with cloud storage services" |
195 |
+HOMEPAGE="https://github.com/GoogleCloudPlatform/gsutil" |
196 |
+SRC_URI="http://commondatastorage.googleapis.com/pub/${PN}_${PV}.tar.gz" |
197 |
+ |
198 |
+LICENSE="Apache-2.0" |
199 |
+SLOT="0" |
200 |
+KEYWORDS="~amd64 ~arm ~x86" |
201 |
+IUSE="" |
202 |
+ |
203 |
+DEPEND="${PYTHON_DEPS}" |
204 |
+RDEPEND="${DEPEND} |
205 |
+ >=dev-python/boto-2.22.1[${PYTHON_USEDEP}] |
206 |
+ >=dev-python/crcmod-1.7 |
207 |
+ >=dev-python/httplib2-0.8[${PYTHON_USEDEP}] |
208 |
+ >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] |
209 |
+ >=dev-python/google-api-python-client-1.1[${PYTHON_USEDEP}] |
210 |
+ >=dev-python/python-gflags-2.0[${PYTHON_USEDEP}] |
211 |
+ >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}] |
212 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
213 |
+ >=dev-python/PySocks-1.01[${PYTHON_USEDEP}] |
214 |
+ " |
215 |
+ |
216 |
+S=${WORKDIR}/${PN} |
217 |
+ |
218 |
+DOCS=( README.md CHANGES.md ) |
219 |
+ |
220 |
+PATCHES=( |
221 |
+ "${FILESDIR}/${P}-use-friendy-version-checks.patch" |
222 |
+ "${FILESDIR}/${PN}-3.37-drop-http_proxy-clearing.patch" |
223 |
+) |
224 |
+ |
225 |
+python_prepare_all() { |
226 |
+ distutils-r1_python_prepare_all |
227 |
+ sed \ |
228 |
+ -e '/SocksiPy-branch/d' \ |
229 |
+ -i setup.py || die |
230 |
+} |
231 |
+ |
232 |
+python_test() { |
233 |
+ export BOTO_CONFIG=${FILESDIR}/dummy.boto |
234 |
+ ${PYTHON} gslib/__main__.py test -u || die "tests failed" |
235 |
+} |
236 |
|
237 |
diff --git a/net-misc/gsutil/gsutil-4.18.ebuild b/net-misc/gsutil/gsutil-4.18.ebuild |
238 |
new file mode 100644 |
239 |
index 0000000..86367bd |
240 |
--- /dev/null |
241 |
+++ b/net-misc/gsutil/gsutil-4.18.ebuild |
242 |
@@ -0,0 +1,56 @@ |
243 |
+# Copyright 1999-2016 Gentoo Foundation |
244 |
+# Distributed under the terms of the GNU General Public License v2 |
245 |
+# $Id$ |
246 |
+ |
247 |
+EAPI="5" |
248 |
+ |
249 |
+PYTHON_COMPAT=( python2_7 ) |
250 |
+ |
251 |
+inherit distutils-r1 |
252 |
+ |
253 |
+DESCRIPTION="command line tool for interacting with cloud storage services" |
254 |
+HOMEPAGE="https://github.com/GoogleCloudPlatform/gsutil" |
255 |
+SRC_URI="http://commondatastorage.googleapis.com/pub/${PN}_${PV}.tar.gz" |
256 |
+ |
257 |
+LICENSE="Apache-2.0" |
258 |
+SLOT="0" |
259 |
+KEYWORDS="~amd64 ~arm ~x86" |
260 |
+IUSE="" |
261 |
+ |
262 |
+# The oauth2client-2 dep sucks. |
263 |
+# https://github.com/GoogleCloudPlatform/gsutil/issues/355 |
264 |
+RDEPEND="${PYTHON_DEPS} |
265 |
+ >=dev-python/boto-2.38.0[${PYTHON_USEDEP}] |
266 |
+ >=dev-python/crcmod-1.7[${PYTHON_USEDEP}] |
267 |
+ >=dev-python/httplib2-0.8[${PYTHON_USEDEP}] |
268 |
+ >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] |
269 |
+ >=dev-python/gcs-oauth2-boto-plugin-1.12[${PYTHON_USEDEP}] |
270 |
+ >=dev-python/google-apitools-0.5.2[${PYTHON_USEDEP}] |
271 |
+ >=dev-python/oauth2client-1.5.2[${PYTHON_USEDEP}] |
272 |
+ <dev-python/oauth2client-2 |
273 |
+ >=dev-python/python-gflags-2.0[${PYTHON_USEDEP}] |
274 |
+ >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}] |
275 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
276 |
+ >=dev-python/PySocks-1.01[${PYTHON_USEDEP}]" |
277 |
+DEPEND="${RDEPEND} |
278 |
+ dev-python/setuptools[${PYTHON_USEDEP}]" |
279 |
+ |
280 |
+S=${WORKDIR}/${PN} |
281 |
+ |
282 |
+DOCS=( README.md CHANGES.md ) |
283 |
+ |
284 |
+PATCHES=( |
285 |
+ "${FILESDIR}"/${PN}-4.18-use-friendy-version-checks.patch |
286 |
+) |
287 |
+ |
288 |
+python_prepare_all() { |
289 |
+ distutils-r1_python_prepare_all |
290 |
+ sed \ |
291 |
+ -e '/SocksiPy-branch/d' \ |
292 |
+ -i setup.py || die |
293 |
+} |
294 |
+ |
295 |
+python_test() { |
296 |
+ export BOTO_CONFIG=${FILESDIR}/dummy.boto |
297 |
+ ${PYTHON} gslib/__main__.py test -u || die "tests failed" |
298 |
+} |
299 |
|
300 |
diff --git a/net-misc/gsutil/gsutil-4.19.ebuild b/net-misc/gsutil/gsutil-4.19.ebuild |
301 |
new file mode 100644 |
302 |
index 0000000..ea1c3e1 |
303 |
--- /dev/null |
304 |
+++ b/net-misc/gsutil/gsutil-4.19.ebuild |
305 |
@@ -0,0 +1,56 @@ |
306 |
+# Copyright 1999-2016 Gentoo Foundation |
307 |
+# Distributed under the terms of the GNU General Public License v2 |
308 |
+# $Id$ |
309 |
+ |
310 |
+EAPI="5" |
311 |
+ |
312 |
+PYTHON_COMPAT=( python2_7 ) |
313 |
+ |
314 |
+inherit distutils-r1 |
315 |
+ |
316 |
+DESCRIPTION="command line tool for interacting with cloud storage services" |
317 |
+HOMEPAGE="https://github.com/GoogleCloudPlatform/gsutil" |
318 |
+SRC_URI="http://commondatastorage.googleapis.com/pub/${PN}_${PV}.tar.gz" |
319 |
+ |
320 |
+LICENSE="Apache-2.0" |
321 |
+SLOT="0" |
322 |
+KEYWORDS="~amd64 ~arm ~x86" |
323 |
+IUSE="" |
324 |
+ |
325 |
+# The oauth2client-2 dep sucks. |
326 |
+# https://github.com/GoogleCloudPlatform/gsutil/issues/355 |
327 |
+RDEPEND="${PYTHON_DEPS} |
328 |
+ >=dev-python/boto-2.39.0[${PYTHON_USEDEP}] |
329 |
+ >=dev-python/crcmod-1.7[${PYTHON_USEDEP}] |
330 |
+ >=dev-python/httplib2-0.8[${PYTHON_USEDEP}] |
331 |
+ >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] |
332 |
+ >=dev-python/gcs-oauth2-boto-plugin-1.12[${PYTHON_USEDEP}] |
333 |
+ >=dev-python/google-apitools-0.5.2[${PYTHON_USEDEP}] |
334 |
+ >=dev-python/oauth2client-1.5.2[${PYTHON_USEDEP}] |
335 |
+ <dev-python/oauth2client-2 |
336 |
+ >=dev-python/python-gflags-2.0[${PYTHON_USEDEP}] |
337 |
+ >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}] |
338 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
339 |
+ >=dev-python/PySocks-1.01[${PYTHON_USEDEP}]" |
340 |
+DEPEND="${RDEPEND} |
341 |
+ dev-python/setuptools[${PYTHON_USEDEP}]" |
342 |
+ |
343 |
+S=${WORKDIR}/${PN} |
344 |
+ |
345 |
+DOCS=( README.md CHANGES.md ) |
346 |
+ |
347 |
+PATCHES=( |
348 |
+ "${FILESDIR}"/${PN}-4.19-use-friendy-version-checks.patch |
349 |
+) |
350 |
+ |
351 |
+python_prepare_all() { |
352 |
+ distutils-r1_python_prepare_all |
353 |
+ sed -i \ |
354 |
+ -e '/SocksiPy-branch/d' \ |
355 |
+ setup.py || die |
356 |
+} |
357 |
+ |
358 |
+python_test() { |
359 |
+ export BOTO_CONFIG=${FILESDIR}/dummy.boto |
360 |
+ ${PYTHON} gslib/__main__.py test -u || die "tests failed" |
361 |
+} |
362 |
|
363 |
diff --git a/net-misc/gsutil/metadata.xml b/net-misc/gsutil/metadata.xml |
364 |
new file mode 100644 |
365 |
index 0000000..df60255 |
366 |
--- /dev/null |
367 |
+++ b/net-misc/gsutil/metadata.xml |
368 |
@@ -0,0 +1,11 @@ |
369 |
+<?xml version="1.0" encoding="UTF-8"?> |
370 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
371 |
+<pkgmetadata> |
372 |
+ <maintainer type="person"> |
373 |
+ <email>vapier@g.o</email> |
374 |
+ </maintainer> |
375 |
+ <upstream> |
376 |
+ <remote-id type="google-code">gsutil</remote-id> |
377 |
+ <remote-id type="github">GoogleCloudPlatform/gsutil</remote-id> |
378 |
+ </upstream> |
379 |
+</pkgmetadata> |