summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2020-01-25 23:56:55 +0100
committerSebastian Pipping <sping@gentoo.org>2020-01-25 23:57:46 +0100
commit22252f649823860fb39b9eb3dbae098b1f3f247e (patch)
tree7bcf244eef738ec6d1ef2fc4526cedcc1526f51b /app-portage/metagen/metagen-9999.ebuild
parentmedia-libs/libmypaint: Drop 1.3.0_beta1, 1.3.0 (r0), 1.3.0-r2, 1.3.0-r2 (diff)
downloadgentoo-22252f649823860fb39b9eb3dbae098b1f3f247e.tar.gz
gentoo-22252f649823860fb39b9eb3dbae098b1f3f247e.tar.bz2
gentoo-22252f649823860fb39b9eb3dbae098b1f3f247e.zip
app-portage/metagen: 0.7.0 + EAPI 7 + Python 3 + sync 9999
Closes: https://bugs.gentoo.org/706216 Signed-off-by: Sebastian Pipping <sping@gentoo.org> Package-Manager: Portage-2.3.84, Repoman-2.3.20
Diffstat (limited to 'app-portage/metagen/metagen-9999.ebuild')
-rw-r--r--app-portage/metagen/metagen-9999.ebuild24
1 files changed, 13 insertions, 11 deletions
diff --git a/app-portage/metagen/metagen-9999.ebuild b/app-portage/metagen/metagen-9999.ebuild
index f479716b4b3..9880fd95a4b 100644
--- a/app-portage/metagen/metagen-9999.ebuild
+++ b/app-portage/metagen/metagen-9999.ebuild
@@ -1,14 +1,14 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
-PYTHON_COMPAT=( python2_7 )
+EAPI="7"
+PYTHON_COMPAT=( python{2_7,3_{6,7,8}} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1 git-r3
DESCRIPTION="metadata.xml generator for ebuilds"
HOMEPAGE="https://cgit.gentoo.org/proj/metagen.git"
-SRC_URI=""
EGIT_REPO_URI="git://anongit.gentoo.org/proj/metagen.git"
LICENSE="GPL-2"
@@ -16,20 +16,22 @@ SLOT="0"
KEYWORDS=""
IUSE=""
-DEPEND=">=dev-python/jaxml-3.01[${PYTHON_USEDEP}]
- ( >=sys-apps/portage-2.3.0_rc1[${PYTHON_USEDEP}] app-portage/repoman[${PYTHON_USEDEP}] )"
+DEPEND="dev-python/lxml[${PYTHON_USEDEP}]
+ sys-apps/portage[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
-python_install() {
- distutils-r1_python_install
- python_newscript metagen/main.py metagen
-}
-
python_install_all() {
distutils-r1_python_install_all
doman docs/metagen.1
}
+src_install() {
+ distutils-r1_src_install
+
+ # Address expected path warning for /usr/share/doc/metagen-<not-9999>
+ mv "${D}"/usr/share/doc/metagen-{*,${PV}}/ || die
+}
+
python_test() {
"${PYTHON}" -c "from metagen import metagenerator; metagenerator.do_tests()" || die
}