summaryrefslogtreecommitdiff
path: root/app-text/foliate
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-14 16:01:32 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-14 16:01:32 +0100
commit153fd195574cc30040446316bb666af0e58d985f (patch)
tree657cdfb683dfabd52ff06cb67ddd31b653fb9f43 /app-text/foliate
parent3fa8418e7778f51be61ca1c9114059c73a477459 (diff)
gentoo auto-resync : 14:05:2023 - 16:01:32
Diffstat (limited to 'app-text/foliate')
-rw-r--r--app-text/foliate/Manifest3
-rw-r--r--app-text/foliate/files/foliate-validate.patch31
-rw-r--r--app-text/foliate/files/foliate-webkit.patch13
-rw-r--r--app-text/foliate/foliate-2.6.4-r3.ebuild59
4 files changed, 106 insertions, 0 deletions
diff --git a/app-text/foliate/Manifest b/app-text/foliate/Manifest
index b1f0f84fd765..9fe7eea17250 100644
--- a/app-text/foliate/Manifest
+++ b/app-text/foliate/Manifest
@@ -1,3 +1,6 @@
+AUX foliate-validate.patch 1073 BLAKE2B 276e30a9efd16cbbbe524bf4ef6edb3eee05b60dfe90a7b460718b016c9cf91ed751fc7a31922fcee4cf4f78cba8d478d9b19c48f9c6cd6a25227615474d2b55 SHA512 b1a28ba2e58440967b8ab683c3d0fc2e7e6510465690fd4494c643d2bad215fa57ce7cd5599def1fa585b8f6b94b650405e6355ef50b38d6bd6f8fcde56e63e7
+AUX foliate-webkit.patch 296 BLAKE2B bc6387586dcde1f2b59a7f1e1e5306f06c73813c0ab17d813eefd5b99fa08940e32307f94f9d6475a03255988aaf9968fbde6ed7111a626ec2c23def102aa7b8 SHA512 2ebc26006de0520edea6cdf427bb420e9a564a6e01294ddca45bb6973e505d54c4d4ff6b64301949a8494abd20a156c6e282ee3689e5206e8c5e2ae269efab0c
DIST foliate-2.6.4.tar.gz 4824560 BLAKE2B fd109d76a7cd0cfbff3fb7273b232a7c749922c5e4d782ed4b7dcb63e914a7cc0bd6e7623a509c3117e45ead5c1d7538c57f322742e4e826b88bddc6182abdf1 SHA512 af58efa2c33451617dbf7327b56551557d762ac80f1b489d5da1c5a46ebbfe329052149deb8b2f4c7729a7fd46deccd5500fd96c0a662b731c871c1ad8061cd3
EBUILD foliate-2.6.4-r2.ebuild 1209 BLAKE2B bfca831829a675d16b39a27a3a1449431cdb206b7609625df542e7c50d57c682065456e75cdee11126d8c4fbf1ae275b616349792bdfd5c332fa574c3e825285 SHA512 b9f37500296ac30323f85e8d42038438c4f5dc9cc11f6250548d3923a21d96c71e6917b02259a5de62a6585b02b1d46eca2bdbea7d03577b8de5c7fc789e4ffc
+EBUILD foliate-2.6.4-r3.ebuild 1386 BLAKE2B 169da3eec3f401b75bb94da57f182b8491031103c8f771de76e1df4e8a49c29bbe634b04499fdbbbd1838cba7f2997bbf1b84c83f9a1c7f344d4924047ae6eaa SHA512 9d0978ebd368c7b71715aa0e5d27d4834b38617f28189ad1a2eb491c243cef27ef946e587277f0495f90666aae8d73d5f8c3ba929e91bf0e5bbcdb779c0843d6
MISC metadata.xml 607 BLAKE2B ab5cffaca496e55fe6c7cce465104fe2c0010d4ef6110c816575944d7f48ae94d834ac61430e1c722daca0ceb739fdb4e2ad35b2afef010675726aea967d2ea2 SHA512 7e1d53bcd78408d6ef3803871d131beced46b118555d7daf0ccc0abf6233d3892568ca3264f1b123f20524d56600cb162c53057fb38a0811571a98ca0051573b
diff --git a/app-text/foliate/files/foliate-validate.patch b/app-text/foliate/files/foliate-validate.patch
new file mode 100644
index 000000000000..45d2c42eef73
--- /dev/null
+++ b/app-text/foliate/files/foliate-validate.patch
@@ -0,0 +1,31 @@
+diff -r -U3 foliate-2.6.4.orig/data/meson.build foliate-2.6.4/data/meson.build
+--- foliate-2.6.4.orig/data/meson.build 2022-01-13 19:23:26.000000000 +0700
++++ foliate-2.6.4/data/meson.build 2023-05-14 13:08:00.443754308 +0700
+@@ -7,13 +7,6 @@
+ install_dir: join_paths(get_option('datadir'), 'applications')
+ )
+
+-desktop_utils = find_program('desktop-file-validate', required: false)
+-if desktop_utils.found()
+- test('Validate desktop file', desktop_utils,
+- args: [desktop_file]
+- )
+-endif
+-
+ appstream_file = i18n.merge_file(
+ input: 'com.github.johnfactotum.Foliate.metainfo.xml.in',
+ output: 'com.github.johnfactotum.Foliate.metainfo.xml',
+@@ -22,13 +15,6 @@
+ install_dir: join_paths(get_option('datadir'), 'metainfo')
+ )
+
+-appstream_util = find_program('appstream-util', required: false)
+-if appstream_util.found()
+- test('Validate appstream file', appstream_util,
+- args: ['validate', appstream_file]
+- )
+-endif
+-
+ install_data('com.github.johnfactotum.Foliate.gschema.xml',
+ install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
+ )
diff --git a/app-text/foliate/files/foliate-webkit.patch b/app-text/foliate/files/foliate-webkit.patch
new file mode 100644
index 000000000000..cb559bf0003d
--- /dev/null
+++ b/app-text/foliate/files/foliate-webkit.patch
@@ -0,0 +1,13 @@
+diff --git a/src/main.js b/src/main.js
+index 718d420..2ea2018 100644
+--- a/src/main.js
++++ b/src/main.js
+@@ -18,7 +18,7 @@ pkg.initFormat()
+ pkg.require({
+ 'Gio': '2.0',
+ 'Gtk': '3.0',
+- 'WebKit2': '4.0'
++ 'WebKit2': '4.1'
+ })
+
+ const { Gio, Gtk, Gdk, GLib, WebKit2 } = imports.gi
diff --git a/app-text/foliate/foliate-2.6.4-r3.ebuild b/app-text/foliate/foliate-2.6.4-r3.ebuild
new file mode 100644
index 000000000000..666dca3a88a1
--- /dev/null
+++ b/app-text/foliate/foliate-2.6.4-r3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PLOCALES="cs de es eu fr id ie it ko nb nl nn pt_BR ru sv tr uk zh_CN zh_TW"
+PYTHON_COMPAT=( python3_{9..11} )
+inherit meson python-any-r1 plocale xdg gnome2-utils
+SRC_URI="https://github.com/johnfactotum/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+DESCRIPTION="gtk ebook reader built with gjs"
+HOMEPAGE="https://github.com/johnfactotum/foliate/"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE="handy spell"
+
+BDEPEND="${MESON_DEPEND}
+ ${PYTHON_DEPS}
+ sys-devel/gettext"
+RDEPEND="dev-libs/gjs
+ x11-libs/gtk+:3[introspection]
+ x11-libs/pango[introspection]
+ x11-libs/gdk-pixbuf:2[introspection]
+ net-libs/webkit-gtk:4.1[introspection]
+ sys-devel/gettext
+ handy? ( gui-libs/libhandy:=[introspection] )
+ spell? ( app-text/gspell[introspection] )"
+
+PATCHES=( "${FILESDIR}"/${PN}-webkit.patch "${FILESDIR}"/${PN}-validate.patch )
+
+src_prepare() {
+ default
+ python_fix_shebang build-aux/meson
+ 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
+}
+
+src_install() {
+ meson_src_install
+ dosym com.github.johnfactotum.Foliate /usr/bin/foliate
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_schemas_update
+}
+
+pkg_postrm() {
+ xdg_pkg_postinst
+ gnome2_schemas_update
+}