summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2017-09-09 21:28:31 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2017-09-09 21:29:10 +0200
commit667fbf72b79ff75aac2855950676090216a776c3 (patch)
tree00efc708a1390d639c040f60b3cd2260ecf18a66 /kde-frameworks/kdelibs
parentx11-libs/pango: stable 1.40.6 for sparc, bug #624312 (thank to Dakon) (diff)
downloadgentoo-667fbf72b79ff75aac2855950676090216a776c3.zip
gentoo-667fbf72b79ff75aac2855950676090216a776c3.tar.gz
gentoo-667fbf72b79ff75aac2855950676090216a776c3.tar.bz2
kde-frameworks/kdelibs: Fix build with app-text/enchant-2.1.0
Thanks-to: Arfrever Gentoo-bug: 629806 Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'kde-frameworks/kdelibs')
-rw-r--r--kde-frameworks/kdelibs/files/kdelibs-4.14.35-enchant2.patch33
-rw-r--r--kde-frameworks/kdelibs/kdelibs-4.14.35.ebuild2
2 files changed, 35 insertions, 0 deletions
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
index 00000000..85be2d1
--- /dev/null
+++ b/kde-frameworks/kdelibs/files/kdelibs-4.14.35-enchant2.patch
@@ -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
+
diff --git a/kde-frameworks/kdelibs/kdelibs-4.14.35.ebuild b/kde-frameworks/kdelibs/kdelibs-4.14.35.ebuild
index f7eb7c7..8c04429 100644
--- a/kde-frameworks/kdelibs/kdelibs-4.14.35.ebuild
+++ b/kde-frameworks/kdelibs/kdelibs-4.14.35.ebuild
@@ -126,6 +126,8 @@ PATCHES=(
"${FILESDIR}/${P}-3dnow.patch"
"${FILESDIR}/${P}-kde3support.patch"
"${FILESDIR}/${P}-plasma4.patch"
+ # upstream:
+ "${FILESDIR}/${P}-enchant2.patch"
)
src_prepare() {