commit: 3aced0ee737e149de1b0b5ff93e92cb92f90684e
Author: Maciej Barć <xgqt <AT> riseup <DOT> net>
AuthorDate: Mon Jun 28 21:31:04 2021 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Jun 28 21:31:58 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3aced0ee
app-text/komikku: fix variables; GTK slot 3
also, change src_install to use sed to fix EPYTHON
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt <AT> riseup.net>
app-text/komikku/komikku-0.29.2.ebuild | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/app-text/komikku/komikku-0.29.2.ebuild
b/app-text/komikku/komikku-0.29.2.ebuild
index f9b769d34..70f88edb6 100644
--- a/app-text/komikku/komikku-0.29.2.ebuild
+++ b/app-text/komikku/komikku-0.29.2.ebuild
@@ -3,8 +3,8 @@
EAPI=7
-MY_PN="Komikku"
-MY_P="${MY_PN}-${PV}"
+MY_PN="${PN^}"
+MY_P="${MY_PN}-v${PV}"
PYTHON_COMPAT=( python3_{8,9} )
@@ -12,7 +12,7 @@ inherit python-single-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"
+SRC_URI="https://gitlab.com/valos/${MY_PN}/-/archive/v${PV}/${MY_P}.tar.gz ->
${P}.tar.gz"
RESTRICT="test"
KEYWORDS="~amd64"
@@ -23,7 +23,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
>=gui-libs/libhandy-1.2.0
- >=x11-libs/gtk+-3.24.10
+ >=x11-libs/gtk+-3.24.10:3
$(python_gen_cond_dep '
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/cloudscraper[${PYTHON_USEDEP}]
@@ -42,7 +42,7 @@ RDEPEND="
${DEPEND}
"
-S="${WORKDIR}/${MY_PN}-v${PV}"
+S="${WORKDIR}/${MY_P}"
pkg_setup() {
python-single-r1_pkg_setup
@@ -52,9 +52,8 @@ src_install() {
meson_src_install
python_optimize
- # Dirty hack (python_doscript doesn't work)
- echo "#!/usr/bin/${EPYTHON}
- $(cat ${D}/usr/bin/${PN})" > "${D}/usr/bin/${PN}"
+ sed -i "s/#!.*/#!${EPYTHON}/" "${D}/usr/bin/${PN}" ||
+ die "Failed to fix ${D}/usr/bin/${PN} interpreter"
}
pkg_preinst() {