kde-frameworks/kdelibs: Fix build with app-text/enchant-2.1.0
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 9 Sep 2017 19:28:31 +0000 (21:28 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 9 Sep 2017 19:29:10 +0000 (21:29 +0200)
Thanks-to: Arfrever
Gentoo-bug: 629806
Package-Manager: Portage-2.3.8, Repoman-2.3.3

kde-frameworks/kdelibs/files/kdelibs-4.14.35-enchant2.patch [new file with mode: 0644]
kde-frameworks/kdelibs/kdelibs-4.14.35.ebuild

diff --git a/kde-frameworks/kdelibs/files/kdelibs-4.14.35-enchant2.patch b/kde-frameworks/kdelibs/files/kdelibs-4.14.35-enchant2.patch
new file mode 100644 (file)
index 0000000..85be2d1
--- /dev/null
@@ -0,0 +1,33 @@
+From 668ef94b2b861f7ec4aa20941bcb6493bc4367be Mon Sep 17 00:00:00 2001
+From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
+Date: Sat, 9 Sep 2017 19:39:14 +0200
+Subject: Fix build with >=enchant-2
+
+Summary: Forwarding a user-contributed patch.
+
+Reviewers: aacid
+
+Reviewed By: aacid
+
+Differential Revision: https://phabricator.kde.org/D7748
+---
+ sonnet/plugins/enchant/enchantdict.cpp | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/sonnet/plugins/enchant/enchantdict.cpp b/sonnet/plugins/enchant/enchantdict.cpp
+index 52f7fad..80e40fc 100644
+--- a/sonnet/plugins/enchant/enchantdict.cpp
++++ b/sonnet/plugins/enchant/enchantdict.cpp
+@@ -82,8 +82,7 @@ bool QSpellEnchantDict::storeReplacement(const QString &bad,
+ 
+ bool QSpellEnchantDict::addToPersonal(const QString &word)
+ {
+-    enchant_dict_add_to_pwl(m_dict, word.toUtf8(),
+-                            word.toUtf8().length());
++    enchant_dict_add(m_dict, word.toUtf8(), word.toUtf8().length());
+     return true;
+ }
+ 
+-- 
+cgit v0.11.2
+
index f7eb7c73bd1dcc30341b16be90ea63885a244c70..8c04429eea77d7a4b36d507efae4142f4ca9a7ed 100644 (file)
@@ -126,6 +126,8 @@ PATCHES=(
        "${FILESDIR}/${P}-3dnow.patch"
        "${FILESDIR}/${P}-kde3support.patch"
        "${FILESDIR}/${P}-plasma4.patch"
+       # upstream:
+       "${FILESDIR}/${P}-enchant2.patch"
 )
 
 src_prepare() {