blob: d80445061cdb017f90d0da7e624de0fa55933171 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_10 python3_11 python3_12 )
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
https://github.com/bloomreach/s4cmd/pull/162.patch -> ${P}-py3-iter.patch
https://github.com/bloomreach/s4cmd/pull/310.patch -> ${P}-botocore-fix.patch
"
PATCHES=(
"${DISTDIR}/${P}-botocore-fix.patch"
"${DISTDIR}/${P}-py3-iter.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
}
|