dev-python/kconfiglib: initial import
authorTim Harder <radhermit@gentoo.org>
Tue, 9 Jul 2019 03:21:54 +0000 (21:21 -0600)
committerTim Harder <radhermit@gentoo.org>
Tue, 9 Jul 2019 03:21:54 +0000 (21:21 -0600)
Signed-off-by: Tim Harder <radhermit@gentoo.org>
dev-python/kconfiglib/Manifest [new file with mode: 0644]
dev-python/kconfiglib/kconfiglib-12.12.1.ebuild [new file with mode: 0644]
dev-python/kconfiglib/metadata.xml [new file with mode: 0644]

diff --git a/dev-python/kconfiglib/Manifest b/dev-python/kconfiglib/Manifest
new file mode 100644 (file)
index 0000000..c245d9f
--- /dev/null
@@ -0,0 +1 @@
+DIST kconfiglib-12.12.1.tar.gz 181307 BLAKE2B d256148bd6bf01f7951c78751604eae1be4c2fc156b815bdb570e6fcf185c2f5c97259f6ce0ed275104234ff7180afa2000a81feb281e745a8a0c4db162f57b9 SHA512 49e8746e6c83a93b7500130b21b864346ab8106c0c161de0ec62b3efff794080e734d34d88cd9c816c0d6514465729fbc3a4334fcc9c0a68f17c1688bb210325
diff --git a/dev-python/kconfiglib/kconfiglib-12.12.1.ebuild b/dev-python/kconfiglib/kconfiglib-12.12.1.ebuild
new file mode 100644 (file)
index 0000000..42e22c8
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+# menuconfig script doesn't work on py2 so skip it
+PYTHON_COMPAT=( python3_{5,6,7} 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"
+# pypi tarballs don't include tests
+#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P/k/K}
+
+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 -i 's/run_compatibility_tests()$/#\0/' testsuite.py || die
+}
+
+python_test() {
+       "${PYTHON}" testsuite.py || die "tests failed with ${EPYTHON}"
+}
diff --git a/dev-python/kconfiglib/metadata.xml b/dev-python/kconfiglib/metadata.xml
new file mode 100644 (file)
index 0000000..6af6948
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>radhermit@gentoo.org</email>
+               <name>Tim Harder</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">ulfalizer/Kconfiglib</remote-id>
+       </upstream>
+</pkgmetadata>