summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <perfinion@gentoo.org>2017-09-05 12:08:26 +0800
committerJason Zaman <perfinion@gentoo.org>2017-09-05 12:09:11 +0800
commitd1d200f96e3ce19f97ca1d3853ba237f670d4f2d (patch)
treec6aa7debadf9ec4f106b09f3d885515c69b8d559 /net-misc/gsutil
parentnet-misc/dropbox: drop old (diff)
downloadgentoo-d1d200f96e3ce19f97ca1d3853ba237f670d4f2d.tar.gz
gentoo-d1d200f96e3ce19f97ca1d3853ba237f670d4f2d.tar.bz2
gentoo-d1d200f96e3ce19f97ca1d3853ba237f670d4f2d.zip
net-misc/gsutil: bump to 4.27
Closes: https://bugs.gentoo.org/627838 Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'net-misc/gsutil')
-rw-r--r--net-misc/gsutil/Manifest1
-rw-r--r--net-misc/gsutil/files/gsutil-4.27-use-friendy-version-checks.patch29
-rw-r--r--net-misc/gsutil/gsutil-4.27.ebuild59
3 files changed, 89 insertions, 0 deletions
diff --git a/net-misc/gsutil/Manifest b/net-misc/gsutil/Manifest
index 425747437930..d5e26c42b818 100644
--- a/net-misc/gsutil/Manifest
+++ b/net-misc/gsutil/Manifest
@@ -1,3 +1,4 @@
DIST gsutil_3.42.tar.gz 1878904 SHA256 50fc7acb7d1db8752f3eee106a3d8d65188107943e7cb30cfd3f94a9cfcdcf37 SHA512 084aaf43a44528af0cdfd9bd22beeb5d6abff240c09843cf35016d685d51b854ed5b2837eaa50c97bb44d5e1a3cdccbae6688ef27aa13f2a5db6040bf501b381 WHIRLPOOL 5b0d0fb1d2446a7b8777f368f073fdb4f7ad2d6407735976c178a2727a2548bf28522e06469dd0b7df1578d5586bc152fba3520b66f88d706417947aa3aa5578
DIST gsutil_4.19.tar.gz 2715141 SHA256 6d9ce67de274d080775ed55e3d86edeb1c8c0a942bccdf5e96bdf1eaa51dd8d2 SHA512 59e96c9855a037300feae122462ff3c9f69e46f049812e88087ae532f590e84b81d67b4e961c47bd0f725c87aa6e0360f65bd8935a95a51c61eb80da0b82dcc1 WHIRLPOOL 70ccfa6f462e536f8aee7ef27aef0e9f8ef0d73bad1493959d2a177db675324f5a872bef5c7e7c844b380cabb04d00f6b334f46bc0f021e4ed743a209b4bf677
DIST gsutil_4.20.tar.gz 2872954 SHA256 aa468f68ef7ac570b2071de56b4ce55c829cb92b62cf10c007bcbec6e74c7997 SHA512 3fb7903f87eb18a0bece514d1cfc4030b056e47044ef0d9ffd673015358bd86cfc9dcdcf4191e0a4d8f3bae7ef70e12e6856912940d857dc7eec1b1d087026f6 WHIRLPOOL 88932a54656a6399e1c489c294a83f185bb0343e30489c105de4bb6a556e3173b9bb0d3d24e5808872ea10d50d9731ccbceeb8e43280fb0c30ada61e8d2c6c0b
+DIST gsutil_4.27.tar.gz 3107288 SHA256 1e794e64429077ab2beddbc1a548f83dbde41228f83e8267904dee0778a025fa SHA512 0c05e3f1baa8e11e89fc5af2a42474984fc4d5b3cfbd28f3a0efd7603aeee9062f55899c8325579a10e37a6b70a2ad770daf03589f43d0a8a696595c1cdf7b57 WHIRLPOOL 36e06017e1a1221f1af55976e470119e9543d70cc177ab2d12bb8957d25ff38cfc4fa85873b65b57bf4e7ac83301691d65e97398d638e7cb545fdd472e8437d0
diff --git a/net-misc/gsutil/files/gsutil-4.27-use-friendy-version-checks.patch b/net-misc/gsutil/files/gsutil-4.27-use-friendy-version-checks.patch
new file mode 100644
index 000000000000..c02e567989f3
--- /dev/null
+++ b/net-misc/gsutil/files/gsutil-4.27-use-friendy-version-checks.patch
@@ -0,0 +1,29 @@
+--- a/setup.py
++++ b/setup.py
+@@ -36,21 +36,21 @@
+
+ requires = [
+ 'argcomplete>=1.8.2',
+- 'boto==2.47.0',
++ 'boto>=2.47.0',
+ 'crcmod>=1.7',
+ 'gcs-oauth2-boto-plugin>=1.14',
+- 'google-apitools==0.5.3',
++ 'google-apitools>=0.5.3',
+ 'httplib2>=0.8',
+ # TODO: Sync submodule with tag referenced here once #339 is fixed in mock.
+- 'mock==2.0.0',
+- 'oauth2client==2.2.0',
++ 'mock>=2.0.0',
++ 'oauth2client>=2.2.0',
+ 'pyOpenSSL>=0.13',
+ 'python-gflags>=2.0',
+ 'retry_decorator>=1.0.0',
+ 'six>=1.9.0',
+ # Not using 1.02 because of:
+ # https://code.google.com/p/socksipy-branch/issues/detail?id=3
+- 'SocksiPy-branch==1.01',
++ 'SocksiPy-branch>=1.01',
+ ]
+
+ dependency_links = [
diff --git a/net-misc/gsutil/gsutil-4.27.ebuild b/net-misc/gsutil/gsutil-4.27.ebuild
new file mode 100644
index 000000000000..491ea929a00c
--- /dev/null
+++ b/net-misc/gsutil/gsutil-4.27.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="command line tool for interacting with cloud storage services"
+HOMEPAGE="https://github.com/GoogleCloudPlatform/gsutil"
+SRC_URI="http://commondatastorage.googleapis.com/pub/${PN}_${PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+# The oauth2client-2 dep sucks.
+# https://github.com/GoogleCloudPlatform/gsutil/issues/355
+RDEPEND="${PYTHON_DEPS}
+ >=dev-python/argcomplete-1.8.2[${PYTHON_USEDEP}]
+ >=dev-python/boto-2.47.0[${PYTHON_USEDEP}]
+ >=dev-python/crcmod-1.7[${PYTHON_USEDEP}]
+ >=dev-python/httplib2-0.8[${PYTHON_USEDEP}]
+ >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
+ >=dev-python/gcs-oauth2-boto-plugin-1.14[${PYTHON_USEDEP}]
+ >=dev-python/google-apitools-0.5.3[${PYTHON_USEDEP}]
+ =dev-python/oauth2client-2.2.0[${PYTHON_USEDEP}]
+ >=dev-python/python-gflags-2.0[${PYTHON_USEDEP}]
+ >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}]
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
+ >=dev-python/PySocks-1.01[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+S=${WORKDIR}/${PN}
+
+DOCS=( README.md CHANGES.md )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.27-use-friendy-version-checks.patch
+)
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+ sed -i \
+ -e '/SocksiPy-branch/d' \
+ setup.py || die
+
+ # Package installs 'test' package which is forbidden and likely a bug in the build system
+ rm -rf "${S}/test" || die
+ sed -i -e '/recursive-include test/d' MANIFEST.in || die
+}
+
+python_test() {
+ export BOTO_CONFIG=${FILESDIR}/dummy.boto
+ ${PYTHON} gslib/__main__.py test -u || die "tests failed"
+}