commit: 8afd20a826f8d8164db1f720f7b5bc41e313bbef Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> AuthorDate: Sun May 3 09:26:36 2020 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> CommitDate: Sun May 3 09:26:36 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8afd20a8
app-text/komikku: fix install phase need to use the python_foreach_impl function to optimeze for all python versions also tried to enable tests, but they need network so added RESTRICT="test" Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> app-text/komikku/komikku-0.12.0.ebuild | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/app-text/komikku/komikku-0.12.0.ebuild b/app-text/komikku/komikku-0.12.0.ebuild index 7d7a0c3..b8fa8f7 100644 --- a/app-text/komikku/komikku-0.12.0.ebuild +++ b/app-text/komikku/komikku-0.12.0.ebuild @@ -8,20 +8,21 @@ MY_P="${MY_PN}-${PV}" PYTHON_COMPAT=( python3_7 ) -inherit meson python-single-r1 gnome2-utils xdg +DISTUTILS_USE_SETUPTOOLS=no +inherit distutils-r1 meson gnome2-utils xdg DESCRIPTION="An online/offline manga reader for GNOME" HOMEPAGE="https://gitlab.com/valos/Komikku" SRC_URI="https://gitlab.com/valos/${MY_PN}/-/archive/v${PV}/${MY_PN}-v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" +KEYWORDS="~amd64" LICENSE="GPL-3" SLOT="0" -IUSE="" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Requires network connection to test +RESTRICT="test" DEPEND=" - ${PYTHON_DEPS} >=gui-libs/libhandy-0.0.10 >=x11-libs/gtk+-3.24.10 dev-python/beautifulsoup:4 @@ -39,9 +40,15 @@ RDEPEND=" S="${WORKDIR}/${MY_PN}-v${PV}" +distutils_enable_tests pytest + src_install() { meson_src_install - python_optimize + python_foreach_impl python_optimize +} + +src_test() { + PYTHONPATH="${S}:${PYTHONPATH}" python_foreach_impl python_test } pkg_preinst() {