summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2022-11-28 22:03:18 +0100
committerSebastian Pipping <sping@gentoo.org>2022-11-28 22:20:42 +0100
commit25e747a74e49788c2409bf7314424b641ce24532 (patch)
tree333e7b8322000dccfe7012979494f6b9f1e770ce /app-portage
parentapp-portage/metagen: Drop old (diff)
downloadgentoo-25e747a74e49788c2409bf7314424b641ce24532.tar.gz
gentoo-25e747a74e49788c2409bf7314424b641ce24532.tar.bz2
gentoo-25e747a74e49788c2409bf7314424b641ce24532.zip
app-portage/metagen: Python 3.11 + DistutilsNonPEP517Build + MissingRemoteId
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/metagen/metadata.xml3
-rw-r--r--app-portage/metagen/metagen-0.7.3-r2.ebuild36
-rw-r--r--app-portage/metagen/metagen-9999.ebuild3
3 files changed, 41 insertions, 1 deletions
diff --git a/app-portage/metagen/metadata.xml b/app-portage/metagen/metadata.xml
index 6a22e9e318bb..32307ccfc35f 100644
--- a/app-portage/metagen/metadata.xml
+++ b/app-portage/metagen/metadata.xml
@@ -5,4 +5,7 @@
<email>sping@gentoo.org</email>
<name>Sebastian Pipping</name>
</maintainer>
+ <upstream>
+ <remote-id type="pypi">metagen</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/app-portage/metagen/metagen-0.7.3-r2.ebuild b/app-portage/metagen/metagen-0.7.3-r2.ebuild
new file mode 100644
index 000000000000..431d7950baec
--- /dev/null
+++ b/app-portage/metagen/metagen-0.7.3-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="metadata.xml generator for ebuilds"
+HOMEPAGE="https://cgit.gentoo.org/proj/metagen.git"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+IUSE=""
+DEPEND="dev-python/lxml[${PYTHON_USEDEP}]
+ sys-apps/portage[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+ doman docs/metagen.1
+
+ # Bug 814545 and 832069
+ if [[ ${PF} != ${P} ]]; then # to be robust across bumps
+ mv "${ED}"/usr/share/doc/${P}/* "${ED}"/usr/share/doc/${PF}/ || die
+ rmdir "${ED}"/usr/share/doc/${P}/ || die
+ fi
+}
+
+python_test() {
+ "${PYTHON}" -c "from metagen import metagenerator; metagenerator.do_tests()" || die
+}
diff --git a/app-portage/metagen/metagen-9999.ebuild b/app-portage/metagen/metagen-9999.ebuild
index 3c5877d7288b..d7077d243ebb 100644
--- a/app-portage/metagen/metagen-9999.ebuild
+++ b/app-portage/metagen/metagen-9999.ebuild
@@ -2,7 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
-PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1 git-r3