Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/abiword/files/, app-office/abiword/
Date: Sun, 01 Mar 2020 22:42:41
Message-Id: 1583102538.55f6eaf540bb9e79985f4753984cfba4498e04c2.soap@gentoo
1 commit: 55f6eaf540bb9e79985f4753984cfba4498e04c2
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 1 22:42:18 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 1 22:42:18 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55f6eaf5
7
8 app-office/abiword: Bump to 3.0.4
9
10 * Include backported patch for enchant-2
11
12 Closes: https://bugs.gentoo.org/708362
13 Package-Manager: Portage-2.3.90, Repoman-2.3.20
14 Signed-off-by: David Seifert <soap <AT> gentoo.org>
15
16 app-office/abiword/Manifest | 1 +
17 app-office/abiword/abiword-3.0.4.ebuild | 141 +++++++++++++++++++++
18 .../abiword/files/abiword-3.0.4-enchant-2.patch | 54 ++++++++
19 3 files changed, 196 insertions(+)
20
21 diff --git a/app-office/abiword/Manifest b/app-office/abiword/Manifest
22 index ea8763123db..565c7fbc0ce 100644
23 --- a/app-office/abiword/Manifest
24 +++ b/app-office/abiword/Manifest
25 @@ -1,2 +1,3 @@
26 DIST abiword-3.0.2-patchset.tar.xz 11976 BLAKE2B 72acb4956543843ad445525d1f5654c63f2544933aab35a95f0ed4f49e1385c06a29a3deb5b7ba09343188e9adf8f916f0223ab6c2a037424732f5e5bffba103 SHA512 afe6f791f167b40c2fdd16f2308add67990dd1fd0856f5a96e8f486a0af2e7b67cbcde29beacd2d869508e8f98bd3fb140240480882bcd9689cbb1fba6a75743
27 DIST abiword-3.0.2.tar.gz 11154333 BLAKE2B af49570ad766b0e698313a4a88f14b2370a0a230866c4e8672f56780705060dba4207d4e13358cc290fb3c1a4a6a56efa05fed1f0540f10f7572d8e717e6cd20 SHA512 29ce9e80b3b85ab2933e7d39216771d8c4e05db5255eaed0cf8e1d032ffaac2cb1880bf24e754196ad5dae4969a1c2101ce4dc9c1db14604adc2f852b6a17fe3
28 +DIST abiword-3.0.4.tar.gz 11064305 BLAKE2B fda1732df0bf78f8830c5d68be18f2aec7f88b8d5bb4fe0effc31b48f03d9195a4337087154ba707a70d80bfcff38f92d7298e7b281afe2eacf000eca8dac9c4 SHA512 121708e010cef6722cab5622dc762f2f92c46e43b65b90b881b4f25ff32c1696fa2d281a3a6f2c04d5b9231bbbd0040281e9d4d7e594ec0ace6caae9c9021ec4
29
30 diff --git a/app-office/abiword/abiword-3.0.4.ebuild b/app-office/abiword/abiword-3.0.4.ebuild
31 new file mode 100644
32 index 00000000000..034816aedc5
33 --- /dev/null
34 +++ b/app-office/abiword/abiword-3.0.4.ebuild
35 @@ -0,0 +1,141 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit autotools xdg
42 +
43 +DESCRIPTION="Fully featured yet light and fast cross platform word processor"
44 +HOMEPAGE="http://www.abisource.com/"
45 +SRC_URI="http://www.abisource.com/downloads/${PN}/${PV}/source/${P}.tar.gz"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="2"
49 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~x86 ~amd64-linux ~x86-linux"
50 +IUSE="calendar collab cups debug eds +goffice grammar +introspection latex map math ots +plugins readline redland spell wordperfect wmf thesaurus"
51 +# You need 'plugins' enabled if want to enable the extra plugins
52 +REQUIRED_USE="!plugins? ( !collab !grammar !latex !math !ots !readline !thesaurus !wordperfect !wmf )"
53 +
54 +RDEPEND="
55 + >=app-text/wv-1.2
56 + >=dev-libs/fribidi-0.10.4
57 + >=dev-libs/glib-2.16:2
58 + >=dev-libs/libgcrypt-1.4.5:0=
59 + dev-libs/libxslt
60 + >=gnome-base/librsvg-2.16:2
61 + >=gnome-extra/libgsf-1.14.18:=
62 + >=media-libs/libpng-1.2:0=
63 + virtual/jpeg:0
64 + >=x11-libs/cairo-1.10
65 + >=x11-libs/gtk+-3.0.8:3[cups?]
66 + calendar? ( >=dev-libs/libical-0.46:= )
67 + eds? ( >=gnome-extra/evolution-data-server-3.6.0:= )
68 + goffice? ( >=x11-libs/goffice-0.10.2:0.10 )
69 + introspection? ( >=dev-libs/gobject-introspection-1.0.0:= )
70 + map? ( >=media-libs/libchamplain-0.12:0.12 )
71 + plugins? (
72 + collab? (
73 + >=dev-libs/libxml2-2.4:2
74 + >=net-libs/loudmouth-1
75 + net-libs/libsoup:2.4
76 + net-libs/gnutls:=
77 + )
78 + grammar? ( >=dev-libs/link-grammar-4.2.1 )
79 + math? ( >=x11-libs/gtkmathview-0.7.5 )
80 + ots? ( >=app-text/ots-0.5-r1 )
81 + readline? ( sys-libs/readline:0= )
82 + thesaurus? ( >=app-text/aiksaurus-1.2[gtk] )
83 + wordperfect? (
84 + app-text/libwpd:0.10
85 + app-text/libwpg:0.3
86 + )
87 + wmf? ( >=media-libs/libwmf-0.2.8 )
88 + )
89 + redland? (
90 + >=dev-libs/redland-1.0.10
91 + >=dev-libs/rasqal-0.9.17
92 + )
93 + spell? ( app-text/enchant:2 )
94 + !<app-office/abiword-plugins-2.8"
95 +DEPEND="${RDEPEND}
96 + dev-libs/boost
97 + collab? ( dev-cpp/asio )"
98 +BDEPEND="
99 + dev-lang/perl
100 + virtual/pkgconfig"
101 +
102 +PATCHES=(
103 + # Backport of hard dep on enchant-2
104 + # https://gitlab.gnome.org/World/AbiWord/commit/ae05e92df5a5d6151641622c83d35a6fdba47b1f
105 + "${FILESDIR}"/${P}-enchant-2.patch
106 +)
107 +
108 +src_prepare() {
109 + default
110 + eautoreconf
111 +}
112 +
113 +src_configure() {
114 + local plugins=()
115 +
116 + if use plugins; then
117 + # Plugins depending on libgsf
118 + plugins+=(t602 docbook clarisworks wml kword hancom openwriter pdf
119 + loadbindings mswrite garble pdb applix opendocument sdw xslfo)
120 +
121 + # Plugins depending on librsvg
122 + plugins+=(svg)
123 +
124 + # Plugins not depending on anything
125 + plugins+=(gimp bmp freetranslation iscii s5 babelfish opml eml wikipedia
126 + gdict passepartout google presentation urldict hrtext mif openxml)
127 +
128 + # inter7eps: eps.h
129 + # libtidy: gsf + tidy.h
130 + # paint: windows only ?
131 + use collab && plugins+=(collab)
132 + use goffice && plugins+=(goffice)
133 + use latex && plugins+=(latex)
134 + use math && plugins+=(mathview)
135 + use ots && plugins+=(ots)
136 + # psion: >=psiconv-0.9.4
137 + use readline && plugins+=(command)
138 + use thesaurus && plugins+=(aiksaurus)
139 + use wmf && plugins+=(wmf)
140 + # wordperfect: >=wpd-0.9 >=wpg-0.2
141 + use wordperfect && plugins+=(wpg)
142 + fi
143 +
144 + econf \
145 + --disable-maintainer-mode \
146 + --enable-plugins="${plugins[*]}" \
147 + --disable-static \
148 + --disable-default-plugins \
149 + --disable-builtin-plugins \
150 + --disable-collab-backend-telepathy \
151 + --enable-clipart \
152 + --enable-statusbar \
153 + --enable-templates \
154 + --with-gio \
155 + --without-gnomevfs \
156 + --without-gtk2 \
157 + $(use_enable debug) \
158 + $(use_with goffice goffice) \
159 + $(use_with calendar libical) \
160 + $(use_enable cups print) \
161 + $(use_enable collab collab-backend-xmpp) \
162 + $(use_enable collab collab-backend-tcp) \
163 + $(use_enable collab collab-backend-service) \
164 + $(use_with eds evolution-data-server) \
165 + $(use_enable introspection) \
166 + $(use_with map champlain) \
167 + $(use_with redland) \
168 + $(use_enable spell)
169 +}
170 +
171 +src_install() {
172 + default
173 +
174 + # no static archives
175 + find "${D}" -name '*.la' -delete || die
176 +}
177
178 diff --git a/app-office/abiword/files/abiword-3.0.4-enchant-2.patch b/app-office/abiword/files/abiword-3.0.4-enchant-2.patch
179 new file mode 100644
180 index 00000000000..3ded3600a2b
181 --- /dev/null
182 +++ b/app-office/abiword/files/abiword-3.0.4-enchant-2.patch
183 @@ -0,0 +1,54 @@
184 +From ae05e92df5a5d6151641622c83d35a6fdba47b1f Mon Sep 17 00:00:00 2001
185 +From: Hubert Figuiere <hub@××××××××.net>
186 +Date: Fri, 22 Nov 2019 20:02:52 -0500
187 +Subject: [PATCH] Require enchant 2 now
188 +
189 +---
190 + configure.ac | 2 +-
191 + src/af/xap/xp/enchant_checker.cpp | 6 +++---
192 + 2 files changed, 4 insertions(+), 4 deletions(-)
193 +
194 +diff --git a/configure.ac b/configure.ac
195 +index f2e392f04..3e1697ced 100644
196 +--- a/configure.ac
197 ++++ b/configure.ac
198 +@@ -94,7 +94,7 @@
199 + "
200 +
201 + # optional deps
202 +-enchant_req='enchant >= 1.2.0'
203 ++enchant_req='enchant-2'
204 + gio_req='gio-2.0'
205 + goffice_req='libgoffice-0.10 >= 0.10.0'
206 +
207 +--- a/src/af/xap/xp/enchant_checker.cpp
208 ++++ b/src/af/xap/xp/enchant_checker.cpp
209 +@@ -127,7 +127,7 @@
210 + pvSugg->addItem (ucszSugg);
211 + }
212 +
213 +- enchant_dict_free_suggestions (m_dict, suggestions);
214 ++ enchant_dict_free_string_list(m_dict, suggestions);
215 + }
216 +
217 + return pvSugg;
218 +@@ -139,7 +139,7 @@
219 +
220 + if (word && len) {
221 + UT_UTF8String utf8 (word, len);
222 +- enchant_dict_add_to_personal (m_dict, utf8.utf8_str(), utf8.byteLength());
223 ++ enchant_dict_add(m_dict, utf8.utf8_str(), utf8.byteLength());
224 + return true;
225 + }
226 + return false;
227 +@@ -150,7 +150,7 @@
228 + UT_return_val_if_fail (m_dict, false);
229 +
230 + UT_UTF8String ignore (toCorrect, toCorrectLen);
231 +- return enchant_dict_is_in_session (m_dict, ignore.utf8_str(), ignore.byteLength()) != 0;
232 ++ return enchant_dict_is_added(m_dict, ignore.utf8_str(), ignore.byteLength()) != 0;
233 + }
234 +
235 + void EnchantChecker::ignoreWord (const UT_UCSChar *toCorrect, size_t toCorrectLen)
236 +--
237 +2.24.1