Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/gcp/
Date: Fri, 18 Sep 2020 09:47:20
Message-Id: 1600422394.542628e1824726c4a1dad8ef485565ee8b50b752.soap@gentoo
1 commit: 542628e1824726c4a1dad8ef485565ee8b50b752
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 18 09:46:34 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 18 09:46:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=542628e1
7
8 sys-apps/gcp: Add python 3.8/3.9
9
10 Package-Manager: Portage-3.0.7, Repoman-3.0.1
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 sys-apps/gcp/gcp-0.2.1.ebuild | 18 ++++++++++++++----
14 1 file changed, 14 insertions(+), 4 deletions(-)
15
16 diff --git a/sys-apps/gcp/gcp-0.2.1.ebuild b/sys-apps/gcp/gcp-0.2.1.ebuild
17 index 3425601feba..040b1f0138f 100644
18 --- a/sys-apps/gcp/gcp-0.2.1.ebuild
19 +++ b/sys-apps/gcp/gcp-0.2.1.ebuild
20 @@ -1,11 +1,11 @@
21 -# Copyright 1999-2019 Gentoo Authors
22 +# Copyright 1999-2020 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=7
26
27 -PYTHON_COMPAT=( python3_{6,7} )
28 +PYTHON_COMPAT=( python3_{6..9} )
29
30 -inherit distutils-r1
31 +inherit distutils-r1 virtualx
32
33 DESCRIPTION="File copying utility with progress and I/O indicator"
34 HOMEPAGE="https://code.lm7.fr/mcy/gcp"
35 @@ -15,10 +15,20 @@ LICENSE="GPL-3"
36 SLOT="0"
37 KEYWORDS="~amd64 ~x86"
38
39 -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
40 RDEPEND="
41 dev-python/dbus-python[${PYTHON_USEDEP}]
42 dev-python/progressbar[${PYTHON_USEDEP}]
43 dev-python/pygobject:3[${PYTHON_USEDEP}]"
44
45 +distutils_enable_tests unittest
46 +
47 PATCHES=( "${FILESDIR}"/${PN}-0.2.1-gentoo-fhs.patch )
48 +
49 +src_test() {
50 + virtx distutils-r1_src_test
51 +}
52 +
53 +python_test() {
54 + local -x PATH="${S}:${PATH}"
55 + "${EPYTHON}" test/test_gcp.py || die "Tests fail with ${EPYTHON}"
56 +}