1 |
commit: d01afaeb74ab5c63b41289aa4c4179d5274daa02 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 29 08:54:10 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 29 09:00:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d01afaeb |
7 |
|
8 |
dev-util/pkgcheck: Remove py<3.8 in 0.7* branch |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-util/pkgcheck/pkgcheck-0.7.9-r2.ebuild | 58 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 58 insertions(+) |
14 |
|
15 |
diff --git a/dev-util/pkgcheck/pkgcheck-0.7.9-r2.ebuild b/dev-util/pkgcheck/pkgcheck-0.7.9-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..2d0a341c2bf |
18 |
--- /dev/null |
19 |
+++ b/dev-util/pkgcheck/pkgcheck-0.7.9-r2.ebuild |
20 |
@@ -0,0 +1,58 @@ |
21 |
+# Copyright 1999-2021 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+PYTHON_COMPAT=( python3_{8..9} ) |
26 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
27 |
+inherit distutils-r1 optfeature |
28 |
+ |
29 |
+if [[ ${PV} == *9999 ]] ; then |
30 |
+ EGIT_REPO_URI="https://github.com/pkgcore/pkgcheck.git" |
31 |
+ inherit git-r3 |
32 |
+else |
33 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-macos" |
34 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
+fi |
36 |
+ |
37 |
+DESCRIPTION="pkgcore-based QA utility for ebuild repos" |
38 |
+HOMEPAGE="https://github.com/pkgcore/pkgcheck" |
39 |
+ |
40 |
+LICENSE="BSD" |
41 |
+SLOT="0" |
42 |
+IUSE="test" |
43 |
+RESTRICT="!test? ( test )" |
44 |
+ |
45 |
+if [[ ${PV} == *9999 ]]; then |
46 |
+ RDEPEND=" |
47 |
+ ~dev-python/snakeoil-9999[${PYTHON_USEDEP}] |
48 |
+ ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]" |
49 |
+else |
50 |
+ RDEPEND=" |
51 |
+ >=dev-python/snakeoil-0.8.9[${PYTHON_USEDEP}] |
52 |
+ >=sys-apps/pkgcore-0.10.14[${PYTHON_USEDEP}] |
53 |
+ <sys-apps/pkgcore-0.11" |
54 |
+fi |
55 |
+RDEPEND+=" |
56 |
+ dev-python/chardet[${PYTHON_USEDEP}] |
57 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
58 |
+ dev-python/pathspec[${PYTHON_USEDEP}] |
59 |
+" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
62 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
63 |
+" |
64 |
+ |
65 |
+python_test() { |
66 |
+ esetup.py test |
67 |
+} |
68 |
+ |
69 |
+python_install_all() { |
70 |
+ local DOCS=( NEWS.rst ) |
71 |
+ [[ ${PV} == *9999 ]] || doman man/* |
72 |
+ distutils-r1_python_install_all |
73 |
+} |
74 |
+ |
75 |
+pkg_postinst() { |
76 |
+ optfeature "Network check support" dev-python/requests |
77 |
+ optfeature "Perl module version check support" dev-perl/Gentoo-PerlMod-Version |
78 |
+} |