1 |
commit: 3aced0ee737e149de1b0b5ff93e92cb92f90684e |
2 |
Author: Maciej Barć <xgqt <AT> riseup <DOT> net> |
3 |
AuthorDate: Mon Jun 28 21:31:04 2021 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> riseup <DOT> net> |
5 |
CommitDate: Mon Jun 28 21:31:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3aced0ee |
7 |
|
8 |
app-text/komikku: fix variables; GTK slot 3 |
9 |
|
10 |
also, change src_install to use sed to fix EPYTHON |
11 |
|
12 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
13 |
Signed-off-by: Maciej Barć <xgqt <AT> riseup.net> |
14 |
|
15 |
app-text/komikku/komikku-0.29.2.ebuild | 15 +++++++-------- |
16 |
1 file changed, 7 insertions(+), 8 deletions(-) |
17 |
|
18 |
diff --git a/app-text/komikku/komikku-0.29.2.ebuild b/app-text/komikku/komikku-0.29.2.ebuild |
19 |
index f9b769d34..70f88edb6 100644 |
20 |
--- a/app-text/komikku/komikku-0.29.2.ebuild |
21 |
+++ b/app-text/komikku/komikku-0.29.2.ebuild |
22 |
@@ -3,8 +3,8 @@ |
23 |
|
24 |
EAPI=7 |
25 |
|
26 |
-MY_PN="Komikku" |
27 |
-MY_P="${MY_PN}-${PV}" |
28 |
+MY_PN="${PN^}" |
29 |
+MY_P="${MY_PN}-v${PV}" |
30 |
|
31 |
PYTHON_COMPAT=( python3_{8,9} ) |
32 |
|
33 |
@@ -12,7 +12,7 @@ inherit python-single-r1 meson gnome2-utils xdg |
34 |
|
35 |
DESCRIPTION="An online/offline manga reader for GNOME" |
36 |
HOMEPAGE="https://gitlab.com/valos/Komikku" |
37 |
-SRC_URI="https://gitlab.com/valos/${MY_PN}/-/archive/v${PV}/${MY_PN}-v${PV}.tar.gz -> ${P}.tar.gz" |
38 |
+SRC_URI="https://gitlab.com/valos/${MY_PN}/-/archive/v${PV}/${MY_P}.tar.gz -> ${P}.tar.gz" |
39 |
|
40 |
RESTRICT="test" |
41 |
KEYWORDS="~amd64" |
42 |
@@ -23,7 +23,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
43 |
|
44 |
DEPEND=" |
45 |
>=gui-libs/libhandy-1.2.0 |
46 |
- >=x11-libs/gtk+-3.24.10 |
47 |
+ >=x11-libs/gtk+-3.24.10:3 |
48 |
$(python_gen_cond_dep ' |
49 |
dev-python/beautifulsoup:4[${PYTHON_USEDEP}] |
50 |
dev-python/cloudscraper[${PYTHON_USEDEP}] |
51 |
@@ -42,7 +42,7 @@ RDEPEND=" |
52 |
${DEPEND} |
53 |
" |
54 |
|
55 |
-S="${WORKDIR}/${MY_PN}-v${PV}" |
56 |
+S="${WORKDIR}/${MY_P}" |
57 |
|
58 |
pkg_setup() { |
59 |
python-single-r1_pkg_setup |
60 |
@@ -52,9 +52,8 @@ src_install() { |
61 |
meson_src_install |
62 |
python_optimize |
63 |
|
64 |
- # Dirty hack (python_doscript doesn't work) |
65 |
- echo "#!/usr/bin/${EPYTHON} |
66 |
- $(cat ${D}/usr/bin/${PN})" > "${D}/usr/bin/${PN}" |
67 |
+ sed -i "s/#!.*/#!${EPYTHON}/" "${D}/usr/bin/${PN}" || |
68 |
+ die "Failed to fix ${D}/usr/bin/${PN} interpreter" |
69 |
} |
70 |
|
71 |
pkg_preinst() { |