Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/xiphos/
Date: Sun, 29 May 2022 22:07:46
Message-Id: 1653862052.e53ce62d98b7c4033da6850b3f62fc5a371825a5.marecki@gentoo
1 commit: e53ce62d98b7c4033da6850b3f62fc5a371825a5
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 29 09:22:34 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sun May 29 22:07:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e53ce62d
7
8 app-text/xiphos: disable the editor
9
10 The editor still requires either WebKit1 or GtkHTML, and upstream hasn't
11 made much progress on this in recent years (yes, years). Many other
12 distros have had the editor disabled for quite a while now (many thanks
13 to Debian for the patch we now use) and since upstream activity implies
14 they will make the editor officially optional soon, let's do the same.
15
16 Once this version has been stabilised we will finally be able to get rid
17 of gnome-extra/gtkhtml.
18
19 Bug: https://bugs.gentoo.org/667914
20 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
21
22 app-text/xiphos/Manifest | 1 +
23 app-text/xiphos/xiphos-4.2.1-r1.ebuild | 72 ++++++++++++++++++++++++++++++++++
24 2 files changed, 73 insertions(+)
25
26 diff --git a/app-text/xiphos/Manifest b/app-text/xiphos/Manifest
27 index 739b78fae71c..fb4e42013ccf 100644
28 --- a/app-text/xiphos/Manifest
29 +++ b/app-text/xiphos/Manifest
30 @@ -1 +1,2 @@
31 +DIST xiphos-4.2.1-disable_webkit_editor.patch.xz 7432 BLAKE2B b1dd9db675a34433f4979247d57936920e178cf83cbcfa0fc2a4b9491855d064ecccdb8805a5615b9c91490c3ff2c24f7d951dad009e83952e5d6aa28c8a0730 SHA512 ae0d9b526143445529fa467bdd1b90015812a5d81396619e64a701962a608413c5875c137970d2b70dbac28085e7f40dc6049d591efaf96df7ddfb2cc64854da
32 DIST xiphos-4.2.1.tar.xz 21586484 BLAKE2B 7529f770766dfc5bae6cb04bfeb3d3cc0714c4ebbd2282aca549e50b8a9ca4c74cdb8cb69667f1036ee33ee1c5d90e562cff80d520ce72651736e1f5f4274ba1 SHA512 624bd2e931c15e1665724918e756706f048e824dc13c2f1d5a05c32a93697137e75012564a14b7d2d0aa90c6a109c52ead51901e657d35a457ccf5f42204a0fe
33
34 diff --git a/app-text/xiphos/xiphos-4.2.1-r1.ebuild b/app-text/xiphos/xiphos-4.2.1-r1.ebuild
35 new file mode 100644
36 index 000000000000..599d16c4ff3f
37 --- /dev/null
38 +++ b/app-text/xiphos/xiphos-4.2.1-r1.ebuild
39 @@ -0,0 +1,72 @@
40 +# Copyright 1999-2022 Gentoo Authors
41 +# Distributed under the terms of the GNU General Public License v2
42 +
43 +EAPI=8
44 +
45 +inherit cmake xdg-utils
46 +
47 +DESCRIPTION="A Gtk+-based Bible-study frontend for SWORD"
48 +HOMEPAGE="https://xiphos.org/"
49 +SRC_URI="https://github.com/crosswire/${PN}/releases/download/${PV}/${P}.tar.xz
50 + https://dev.gentoo.org/~marecki/dists/${CATEGORY}/${PN}/${PN}-4.2.1-disable_webkit_editor.patch.xz"
51 +
52 +LICENSE="GPL-2 FDL-1.1 LGPL-2 MIT MPL-1.1"
53 +SLOT="0"
54 +KEYWORDS="~amd64"
55 +IUSE="dbus debug"
56 +
57 +COMMON="sys-apps/util-linux
58 + dev-libs/libxml2
59 + dev-libs/libxslt
60 + dbus? ( dev-libs/dbus-glib )"
61 +RDEPEND="${COMMON}
62 + >=app-text/sword-1.8.1
63 + dev-libs/glib:2
64 + dev-libs/icu
65 + >=net-libs/biblesync-1.2.0
66 + net-libs/webkit-gtk:4
67 + sys-libs/zlib[minizip]
68 + x11-libs/gtk+:3"
69 +DEPEND="${RDEPEND}"
70 +BDEPEND="${COMMON}
71 + app-arch/zip
72 + app-text/yelp-tools
73 + dev-libs/appstream-glib
74 + dev-util/desktop-file-utils
75 + dev-util/glib-utils
76 + dev-util/itstool
77 + virtual/pkgconfig"
78 +
79 +PATCHES=(
80 + "${WORKDIR}"/${PN}-4.2.1-disable_webkit_editor.patch
81 + "${FILESDIR}"/${PN}-4.2.1-appdata_metainfo.patch
82 + "${FILESDIR}"/${PN}-4.2.1-glib_version_min_required.patch
83 +)
84 +
85 +src_configure() {
86 + local mycmakeargs=(
87 + -DDBUS=$(usex dbus)
88 + -DDEBUG=$(usex debug)
89 + -DPOSTINST=off
90 + )
91 + cmake_src_configure
92 +}
93 +
94 +pkg_postinst() {
95 + xdg_icon_cache_update
96 +
97 + if [[ -n "${REPLACING_VERSIONS}" ]]; then
98 + local rver
99 + for rver in ${REPLACING_VERSIONS}; do
100 + if ver_test "${rver}" -le "4.2.1"; then
101 + ewarn "Please note that ${PN} no longer provides an editor due to its dependency on outdated libraries."
102 + ewarn "Studypad and the personal commentary will no longer work."
103 + break
104 + fi
105 + done
106 + fi
107 +}
108 +
109 +pkg_postrm() {
110 + xdg_icon_cache_update
111 +}