1 |
commit: 8afd20a826f8d8164db1f720f7b5bc41e313bbef |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Sun May 3 09:26:36 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sun May 3 09:26:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8afd20a8 |
7 |
|
8 |
app-text/komikku: fix install phase |
9 |
|
10 |
need to use the python_foreach_impl function |
11 |
to optimeze for all python versions |
12 |
|
13 |
also tried to enable tests, but they need network |
14 |
so added RESTRICT="test" |
15 |
|
16 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
17 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
18 |
|
19 |
app-text/komikku/komikku-0.12.0.ebuild | 19 +++++++++++++------ |
20 |
1 file changed, 13 insertions(+), 6 deletions(-) |
21 |
|
22 |
diff --git a/app-text/komikku/komikku-0.12.0.ebuild b/app-text/komikku/komikku-0.12.0.ebuild |
23 |
index 7d7a0c3..b8fa8f7 100644 |
24 |
--- a/app-text/komikku/komikku-0.12.0.ebuild |
25 |
+++ b/app-text/komikku/komikku-0.12.0.ebuild |
26 |
@@ -8,20 +8,21 @@ MY_P="${MY_PN}-${PV}" |
27 |
|
28 |
PYTHON_COMPAT=( python3_7 ) |
29 |
|
30 |
-inherit meson python-single-r1 gnome2-utils xdg |
31 |
+DISTUTILS_USE_SETUPTOOLS=no |
32 |
+inherit distutils-r1 meson gnome2-utils xdg |
33 |
|
34 |
DESCRIPTION="An online/offline manga reader for GNOME" |
35 |
HOMEPAGE="https://gitlab.com/valos/Komikku" |
36 |
SRC_URI="https://gitlab.com/valos/${MY_PN}/-/archive/v${PV}/${MY_PN}-v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
-KEYWORDS="~amd64" |
38 |
|
39 |
+KEYWORDS="~amd64" |
40 |
LICENSE="GPL-3" |
41 |
SLOT="0" |
42 |
-IUSE="" |
43 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
44 |
+ |
45 |
+# Requires network connection to test |
46 |
+RESTRICT="test" |
47 |
|
48 |
DEPEND=" |
49 |
- ${PYTHON_DEPS} |
50 |
>=gui-libs/libhandy-0.0.10 |
51 |
>=x11-libs/gtk+-3.24.10 |
52 |
dev-python/beautifulsoup:4 |
53 |
@@ -39,9 +40,15 @@ RDEPEND=" |
54 |
|
55 |
S="${WORKDIR}/${MY_PN}-v${PV}" |
56 |
|
57 |
+distutils_enable_tests pytest |
58 |
+ |
59 |
src_install() { |
60 |
meson_src_install |
61 |
- python_optimize |
62 |
+ python_foreach_impl python_optimize |
63 |
+} |
64 |
+ |
65 |
+src_test() { |
66 |
+ PYTHONPATH="${S}:${PYTHONPATH}" python_foreach_impl python_test |
67 |
} |
68 |
|
69 |
pkg_preinst() { |