add kconfiglib-13.7.1

This commit is contained in:
Andreas Billmeier 2021-11-20 17:33:25 +01:00 committed by Andreas Billmeier
parent d1e9005e39
commit 5caf018bd3
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,3 @@
DIST kconfiglib-13.7.1.tar.gz 182823 BLAKE2B b5a9ad237ff5f521e2824e03b561ef8b70a2371221a2ed05fc254e2986e0ddf43fbccaf0173c4be4dca1dd645c1ec18b68dd2cd90a0c7cacca0ed628b2763c35 SHA512 f78b6b8e61effb13ba34266f09824a18bb4584cf98679145313033c7a65d6428a7aad5dd7889ecd5bb4b6b2a67b2e574894d02b57c253ab423393fc725040a8c
EBUILD kconfiglib-13.7.1.ebuild 918 BLAKE2B 608cf749a9aab552db7cdddc429ee8b2ce2bd6a8f8aa23244282ac2e271493f0bd2f238126e7a7d98ab77b6661bcd4cad60d5d3b68742dbb0de66dfcfcdc46be SHA512 7e0f40d0451a0ddb30d4f8d4cda0430f54ff22a4ace328153933d15bbe7861f62bae26a565cb7593ea99a624afd2b649127da3f170b5ae29fc89604b9e17930a
MISC metadata.xml 301 BLAKE2B d9fc1a3adf69d0bcf74b420437d336cfef4577d7d9c39234c12e3b0c4c40b9a28d4c410388793bb9ad86e08d9086dc90023f308e8fbca62afc1a920ea8859ae0 SHA512 7d6a492b50519f9328d7260e9e034a0fe5ed0beeb5d291889617a5c7aae3d4c039eb4c4836f3c91bf785148733753240b0346e364eee367762d9dca2af24d73b

View File

@ -0,0 +1,33 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} pypy3 )
PYTHON_REQ_USE="ncurses"
inherit distutils-r1
DESCRIPTION="A flexible Python Kconfig implementation"
HOMEPAGE="https://github.com/ulfalizer/Kconfiglib https://pypi.org/project/kconfiglib/"
SRC_URI="https://github.com/ulfalizer/Kconfiglib/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S=${WORKDIR}/${P^}
# pypi tarballs don't include tests
#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
python_prepare_all() {
distutils-r1_python_prepare_all
# hacks to run tests
mkdir Kconfiglib || die
ln -s ../tests Kconfiglib || die
# don't run kernel Kconfig compat tests
sed -e 's/run_compatibility_tests()$/#\0/' -i testsuite.py || die
}
python_test() {
"${EPYTHON}" testsuite.py || die "tests failed with ${EPYTHON}"
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="github">ulfalizer/Kconfiglib</remote-id>
<remote-id type="pypi">kconfiglib</remote-id>
</upstream>
</pkgmetadata>