1 |
commit: 6f38c950345b755b43f988ef0e6300311a73273e |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 19 17:13:38 2023 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 19 17:15:17 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f38c950 |
7 |
|
8 |
net-misc/s4cmd: tweak to support newer botocore automatically |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
net-misc/s4cmd/Manifest | 1 + |
13 |
net-misc/s4cmd/s4cmd-2.1.0-r1.ebuild | 33 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 34 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/s4cmd/Manifest b/net-misc/s4cmd/Manifest |
17 |
index b9594713d437..2f1d3e2af092 100644 |
18 |
--- a/net-misc/s4cmd/Manifest |
19 |
+++ b/net-misc/s4cmd/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST s4cmd-2.1.0-botocore-fix.patch 2449 BLAKE2B 5158ded38f8e3417c090d274063a4eaa4f25cd5005c4bb8793cc639d3d87875f31d87464a8dbb44b5c1690570865cb01a0681f2e92edc46fa549828b91f30a0a SHA512 ea889d069a86a1d1f7f5cf5b1f19a9d0b35527c3db5eecf9202cca742ad4442655169d8688fc4b290a1362a0a794ba8ac44abf697ea7830acf8e48b6c7998ef6 |
22 |
DIST s4cmd-2.1.0.tar.gz 39312 BLAKE2B 9d2d533273543153f2bad69362933315f65c5e70bd45c102e42b1b733989815239ae4d027ac08d658f03263bd9dd75f1f6db802b5f38ed3256da5e7c9f48558c SHA512 05e930e2789ce8ab280dcdb2f08e4162930d946d2ed2e4f1c754c8b875375774779b73729151bd23d9bf3736bc48f7626fe53df66aff71dd11b32e90e9355470 |
23 |
|
24 |
diff --git a/net-misc/s4cmd/s4cmd-2.1.0-r1.ebuild b/net-misc/s4cmd/s4cmd-2.1.0-r1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..6be09aed0ddd |
27 |
--- /dev/null |
28 |
+++ b/net-misc/s4cmd/s4cmd-2.1.0-r1.ebuild |
29 |
@@ -0,0 +1,33 @@ |
30 |
+# Copyright 1999-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_10 ) |
36 |
+PYTHON_REQ_USE="xml(+)" |
37 |
+ |
38 |
+inherit distutils-r1 bash-completion-r1 |
39 |
+ |
40 |
+DESCRIPTION="Super S3 command line tool" |
41 |
+HOMEPAGE="https://github.com/bloomreach/s4cmd" |
42 |
+SRC_URI="https://github.com/bloomreach/s4cmd/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+SRC_URI+=" https://github.com/bloomreach/s4cmd/pull/310.patch -> ${P}-botocore-fix.patch " |
44 |
+PATCHES=( |
45 |
+ "${DISTDIR}/${P}-botocore-fix.patch" |
46 |
+) |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
54 |
+ dev-python/boto3[${PYTHON_USEDEP}]" |
55 |
+ |
56 |
+S="${WORKDIR}/${P/_/-}" |
57 |
+ |
58 |
+src_install() { |
59 |
+ distutils-r1_src_install |
60 |
+ dobashcomp data/bash-completion/s4cmd |
61 |
+ rm -f "${D}"/usr/bin/s4cmd.py |
62 |
+} |