1 |
commit: 3ccd9aa1149fdebc3a2ec1a7f7d969afe4b2fd77 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 12 11:33:51 2019 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 12 11:44:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ccd9aa1 |
7 |
|
8 |
app-text/enchant: really disable zemberek provider to avoid crashes |
9 |
|
10 |
Something trips up GSource iteration in main context with the |
11 |
zemberek provider. As we don't have zemberek-server anymore, just |
12 |
make sure it is not build wrongly due to configure bugs. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/662484 |
15 |
Closes: https://bugs.gentoo.org/675908 |
16 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
17 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
18 |
|
19 |
app-text/enchant/enchant-1.6.1-r1.ebuild | 59 ++++++++++++++++++++++++++++++++ |
20 |
1 file changed, 59 insertions(+) |
21 |
|
22 |
diff --git a/app-text/enchant/enchant-1.6.1-r1.ebuild b/app-text/enchant/enchant-1.6.1-r1.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..394541586a7 |
25 |
--- /dev/null |
26 |
+++ b/app-text/enchant/enchant-1.6.1-r1.ebuild |
27 |
@@ -0,0 +1,59 @@ |
28 |
+# Copyright 1999-2019 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=6 |
32 |
+inherit versionator |
33 |
+ |
34 |
+MY_PV="$(replace_all_version_separators '-')" |
35 |
+DESCRIPTION="Spellchecker wrapping library" |
36 |
+HOMEPAGE="https://abiword.github.io/enchant/" |
37 |
+SRC_URI="https://github.com/AbiWord/enchant/releases/download/${PN}-${MY_PV}/${P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="LGPL-2.1" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
42 |
+ |
43 |
+IUSE="aspell +hunspell static-libs test" |
44 |
+REQUIRED_USE="|| ( hunspell aspell )" |
45 |
+ |
46 |
+# FIXME: depends on unittest++ but through pkgconfig which is a Debian hack, bug #629742 |
47 |
+COMMON_DEPENDS=" |
48 |
+ >=dev-libs/glib-2.6:2 |
49 |
+ aspell? ( app-text/aspell ) |
50 |
+ hunspell? ( >=app-text/hunspell-1.2.1:0= )" |
51 |
+RDEPEND="${COMMON_DEPENDS}" |
52 |
+ |
53 |
+DEPEND="${COMMON_DEPENDS} |
54 |
+ virtual/pkgconfig |
55 |
+" |
56 |
+# test? ( dev-libs/unittest++ ) |
57 |
+ |
58 |
+DOCS="AUTHORS BUGS ChangeLog HACKING MAINTAINERS NEWS README TODO" |
59 |
+ |
60 |
+PATCHES=( |
61 |
+ "${FILESDIR}"/${PN}-1.6.0-hunspell150_fix.patch |
62 |
+) |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ default |
66 |
+ sed -e "/SUBDIRS/ s/unittests//" -i "${S}"/Makefile.{am,in} || die |
67 |
+ sed -e "s/build_zemberek=yes//" -i "${S}"/configure{.ac,} || die # bug 662484, shouldn't be an issue in 2.2 |
68 |
+} |
69 |
+ |
70 |
+src_configure() { |
71 |
+ econf \ |
72 |
+ $(use_enable aspell) \ |
73 |
+ $(use_enable hunspell myspell) \ |
74 |
+ $(use_enable static-libs static) \ |
75 |
+ --disable-hspell \ |
76 |
+ --disable-ispell \ |
77 |
+ --disable-uspell \ |
78 |
+ --disable-voikko \ |
79 |
+ --disable-zemberek \ |
80 |
+ --with-myspell-dir="${EPREFIX}"/usr/share/myspell/ |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ default |
85 |
+ find "${D}" -name '*.la' -delete || die |
86 |
+} |