1 |
commit: 812baa73db4c66f05f2e2afd102ef7282074f74a |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 21 05:51:02 2022 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 21 05:51:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=812baa73 |
7 |
|
8 |
app-text/foliate: ebuild improvements |
9 |
|
10 |
Closes: https://bugs.gentoo.org/800560 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
13 |
|
14 |
app-text/foliate/foliate-2.6.4-r1.ebuild | 50 ++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/app-text/foliate/foliate-2.6.4-r1.ebuild b/app-text/foliate/foliate-2.6.4-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000000..155e34657ae2 |
20 |
--- /dev/null |
21 |
+++ b/app-text/foliate/foliate-2.6.4-r1.ebuild |
22 |
@@ -0,0 +1,50 @@ |
23 |
+# Copyright 1999-2022 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=8 |
27 |
+PLOCALES="cs de es eu fr id ie it ko nb nl nn pt_BR ru sv tr uk zh_CN zh_TW" |
28 |
+PYTHON_COMPAT=( python3_{8..10} ) |
29 |
+inherit meson python-any-r1 plocale xdg gnome2-utils |
30 |
+SRC_URI="https://github.com/johnfactotum/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
31 |
+DESCRIPTION="gtk ebook reader built with gjs" |
32 |
+HOMEPAGE="https://github.com/johnfactotum/foliate/" |
33 |
+ |
34 |
+LICENSE="GPL-3+" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64" |
37 |
+IUSE="handy spell" |
38 |
+ |
39 |
+BDEPEND="${MESON_DEPEND} |
40 |
+ sys-devel/gettext" |
41 |
+RDEPEND="dev-libs/gjs |
42 |
+ x11-libs/gtk+:3[introspection] |
43 |
+ x11-libs/pango[introspection] |
44 |
+ x11-libs/gdk-pixbuf:2[introspection] |
45 |
+ net-libs/webkit-gtk:4[introspection] |
46 |
+ handy? ( gui-libs/libhandy:=[introspection] ) |
47 |
+ spell? ( app-text/gspell[introspection] )" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ default |
51 |
+ python_fix_shebang build-aux/meson |
52 |
+ xdg_environment_reset |
53 |
+ |
54 |
+ plocale_find_changes "${S}"/po '' '.po' |
55 |
+ |
56 |
+ rm_po() { |
57 |
+ rm po/${1}.po |
58 |
+ sed -e "/^${1}/d" -i po/LINGUAS |
59 |
+ } |
60 |
+ |
61 |
+ plocale_for_each_disabled_locale rm_po |
62 |
+} |
63 |
+ |
64 |
+pkg_postinst() { |
65 |
+ xdg_pkg_postinst |
66 |
+ gnome2_schemas_update |
67 |
+} |
68 |
+ |
69 |
+pkg_postrm() { |
70 |
+ xdg_pkg_postinst |
71 |
+ gnome2_schemas_update |
72 |
+} |