1 |
commit: a11949ca47633cb5e51833e6a089ab3de52aa0c0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 28 10:26:09 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 28 10:58:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a11949ca |
7 |
|
8 |
dev-util/pkgcheck: Modernize the live ebuild |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-util/pkgcheck/pkgcheck-9999.ebuild | 17 ++++++----------- |
13 |
1 file changed, 6 insertions(+), 11 deletions(-) |
14 |
|
15 |
diff --git a/dev-util/pkgcheck/pkgcheck-9999.ebuild b/dev-util/pkgcheck/pkgcheck-9999.ebuild |
16 |
index ae82d9f6d15..1fba97972fb 100644 |
17 |
--- a/dev-util/pkgcheck/pkgcheck-9999.ebuild |
18 |
+++ b/dev-util/pkgcheck/pkgcheck-9999.ebuild |
19 |
@@ -1,7 +1,7 @@ |
20 |
-# Copyright 1999-2020 Gentoo Authors |
21 |
+# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=6 |
25 |
+EAPI=7 |
26 |
PYTHON_COMPAT=( python3_{8..9} ) |
27 |
DISTUTILS_IN_SOURCE_BUILD=1 |
28 |
inherit distutils-r1 optfeature |
29 |
@@ -19,8 +19,6 @@ HOMEPAGE="https://github.com/pkgcore/pkgcheck" |
30 |
|
31 |
LICENSE="BSD MIT" |
32 |
SLOT="0" |
33 |
-IUSE="test" |
34 |
-RESTRICT="!test? ( test )" |
35 |
|
36 |
if [[ ${PV} == *9999 ]]; then |
37 |
RDEPEND=" |
38 |
@@ -28,8 +26,8 @@ if [[ ${PV} == *9999 ]]; then |
39 |
~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]" |
40 |
else |
41 |
RDEPEND=" |
42 |
- >=dev-python/snakeoil-0.8.9[${PYTHON_USEDEP}] |
43 |
- >=sys-apps/pkgcore-0.10.14[${PYTHON_USEDEP}]" |
44 |
+ >=dev-python/snakeoil-0.9.0[${PYTHON_USEDEP}] |
45 |
+ >=sys-apps/pkgcore-0.11.0[${PYTHON_USEDEP}]" |
46 |
fi |
47 |
RDEPEND+=" |
48 |
dev-python/chardet[${PYTHON_USEDEP}] |
49 |
@@ -37,14 +35,11 @@ RDEPEND+=" |
50 |
dev-python/pathspec[${PYTHON_USEDEP}] |
51 |
dev-python/tree-sitter[${PYTHON_USEDEP}] |
52 |
" |
53 |
-DEPEND="${RDEPEND} |
54 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
55 |
+BDEPEND=" |
56 |
test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
57 |
" |
58 |
|
59 |
-python_test() { |
60 |
- esetup.py test |
61 |
-} |
62 |
+distutils_enable_tests setup.py |
63 |
|
64 |
python_install_all() { |
65 |
local DOCS=( NEWS.rst ) |