1 |
commit: 9969692fc93f9fd7a7d1a1459208f45640d48f8b |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 13 13:05:05 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 13 13:48:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9969692f |
7 |
|
8 |
dev-python/kconfiglib: EAPI=8, PEP517 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/kconfiglib/kconfiglib-14.1.0-r1.ebuild | 32 +++++++++++++++++++++++ |
13 |
1 file changed, 32 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/kconfiglib/kconfiglib-14.1.0-r1.ebuild b/dev-python/kconfiglib/kconfiglib-14.1.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..174e0cca755a |
18 |
--- /dev/null |
19 |
+++ b/dev-python/kconfiglib/kconfiglib-14.1.0-r1.ebuild |
20 |
@@ -0,0 +1,32 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
28 |
+PYTHON_REQ_USE="ncurses" |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="A flexible Python Kconfig implementation" |
32 |
+HOMEPAGE="https://github.com/ulfalizer/Kconfiglib https://pypi.org/project/kconfiglib/" |
33 |
+SRC_URI="https://github.com/ulfalizer/Kconfiglib/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+S=${WORKDIR}/${P^} |
35 |
+ |
36 |
+LICENSE="ISC" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+ |
40 |
+python_prepare_all() { |
41 |
+ distutils-r1_python_prepare_all |
42 |
+ |
43 |
+ # hacks to run tests |
44 |
+ mkdir Kconfiglib || die |
45 |
+ ln -s ../tests Kconfiglib || die |
46 |
+ # don't run kernel Kconfig compat tests |
47 |
+ sed -e 's/run_compatibility_tests()$/#\0/' -i testsuite.py || die |
48 |
+} |
49 |
+ |
50 |
+python_test() { |
51 |
+ "${EPYTHON}" testsuite.py || die "tests failed with ${EPYTHON}" |
52 |
+} |