summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2023-11-05 20:46:52 +0100
committerSebastian Pipping <sping@gentoo.org>2023-11-05 20:50:51 +0100
commit553f42b9cdcc98f6454bae0d314196ae48ad6861 (patch)
treeaceef390e6192dcf128c67ec1c04be4015317b88 /app-portage
parentwww-apps/jellyfin: drop 10.8.10 (diff)
downloadgentoo-553f42b9cdcc98f6454bae0d314196ae48ad6861.tar.gz
gentoo-553f42b9cdcc98f6454bae0d314196ae48ad6861.tar.bz2
gentoo-553f42b9cdcc98f6454bae0d314196ae48ad6861.zip
app-portage/metagen: Python 3.12
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/metagen/metagen-0.7.3-r3.ebuild35
-rw-r--r--app-portage/metagen/metagen-9999.ebuild2
2 files changed, 36 insertions, 1 deletions
diff --git a/app-portage/metagen/metagen-0.7.3-r3.ebuild b/app-portage/metagen/metagen-0.7.3-r3.ebuild
new file mode 100644
index 000000000000..d4b7f124125a
--- /dev/null
+++ b/app-portage/metagen/metagen-0.7.3-r3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="metadata.xml generator for ebuilds"
+HOMEPAGE="https://cgit.gentoo.org/proj/metagen.git"
+
+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 48790d384578..af57fda6c7ea 100644
--- a/app-portage/metagen/metagen-9999.ebuild
+++ b/app-portage/metagen/metagen-9999.ebuild
@@ -3,7 +3,7 @@
EAPI="8"
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{9..12} )
inherit distutils-r1 git-r3