commit:     6f38c950345b755b43f988ef0e6300311a73273e
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 19 17:13:38 2023 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Mar 19 17:15:17 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f38c950

net-misc/s4cmd: tweak to support newer botocore automatically

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 net-misc/s4cmd/Manifest              |  1 +
 net-misc/s4cmd/s4cmd-2.1.0-r1.ebuild | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/net-misc/s4cmd/Manifest b/net-misc/s4cmd/Manifest
index b9594713d437..2f1d3e2af092 100644
--- a/net-misc/s4cmd/Manifest
+++ b/net-misc/s4cmd/Manifest
@@ -1 +1,2 @@
+DIST s4cmd-2.1.0-botocore-fix.patch 2449 BLAKE2B 
5158ded38f8e3417c090d274063a4eaa4f25cd5005c4bb8793cc639d3d87875f31d87464a8dbb44b5c1690570865cb01a0681f2e92edc46fa549828b91f30a0a
 SHA512 
ea889d069a86a1d1f7f5cf5b1f19a9d0b35527c3db5eecf9202cca742ad4442655169d8688fc4b290a1362a0a794ba8ac44abf697ea7830acf8e48b6c7998ef6
 DIST s4cmd-2.1.0.tar.gz 39312 BLAKE2B 
9d2d533273543153f2bad69362933315f65c5e70bd45c102e42b1b733989815239ae4d027ac08d658f03263bd9dd75f1f6db802b5f38ed3256da5e7c9f48558c
 SHA512 
05e930e2789ce8ab280dcdb2f08e4162930d946d2ed2e4f1c754c8b875375774779b73729151bd23d9bf3736bc48f7626fe53df66aff71dd11b32e90e9355470

diff --git a/net-misc/s4cmd/s4cmd-2.1.0-r1.ebuild 
b/net-misc/s4cmd/s4cmd-2.1.0-r1.ebuild
new file mode 100644
index 000000000000..6be09aed0ddd
--- /dev/null
+++ b/net-misc/s4cmd/s4cmd-2.1.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_10 )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1 bash-completion-r1
+
+DESCRIPTION="Super S3 command line tool"
+HOMEPAGE="https://github.com/bloomreach/s4cmd";
+SRC_URI="https://github.com/bloomreach/s4cmd/archive/refs/tags/${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI+=" https://github.com/bloomreach/s4cmd/pull/310.patch -> 
${P}-botocore-fix.patch "
+PATCHES=(
+       "${DISTDIR}/${P}-botocore-fix.patch"
+)
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-python/pytz[${PYTHON_USEDEP}]
+       dev-python/boto3[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${P/_/-}"
+
+src_install() {
+       distutils-r1_src_install
+       dobashcomp data/bash-completion/s4cmd
+       rm -f "${D}"/usr/bin/s4cmd.py
+}

Reply via email to