blob: a9a449a2a5e6615287dd70a9e15e6de4bf905f89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PLOCALES="ar cs de el es eu fa_IR fr gl he hi hr hu id ie it ko nb nl nn oc pt_BR ru sr sv tr uk zh_CN zh_TW"
inherit meson plocale xdg gnome2-utils
DESCRIPTION="gtk ebook reader built with gjs"
HOMEPAGE="https://github.com/johnfactotum/foliate/"
SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.bz2"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64"
BDEPEND="${MESON_DEPEND}"
RDEPEND="dev-libs/gjs
gui-libs/gtk
gui-libs/libadwaita
net-libs/webkit-gtk:6[introspection]
sys-devel/gettext"
src_prepare() {
default
xdg_environment_reset
plocale_find_changes "${S}"/po '' '.po'
rm_po() {
rm po/${1}.po
sed -e "/^${1}/d" -i po/LINGUAS
}
plocale_for_each_disabled_locale rm_po
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postinst
gnome2_schemas_update
}
|