Skip to content

Commit

Permalink
Sonnet: fix dictionary paths for hunspell
Browse files Browse the repository at this point in the history
  • Loading branch information
threedeyes committed Mar 2, 2019
1 parent e1b4e57 commit 5a3c434
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions kde-frameworks/sonnet/patches/sonnet-5.55.0.patchset
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
From dd12fab36a7988dabb67aafb7664b1b3700c14ae Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sat, 2 Mar 2019 23:57:01 +1000
Subject: Add hunspell dictionary paths for Haiku


diff --git a/src/plugins/hunspell/hunspellclient.cpp b/src/plugins/hunspell/hunspellclient.cpp
index 3bd7830..6774c51 100644
--- a/src/plugins/hunspell/hunspellclient.cpp
+++ b/src/plugins/hunspell/hunspellclient.cpp
@@ -55,6 +55,9 @@ HunspellClient::HunspellClient(QObject *parent)
};
#ifdef Q_OS_WIN
maybeAddPath(QStringLiteral(SONNET_INSTALL_PREFIX "/bin/data/hunspell/"));
+#elif defined(Q_OS_HAIKU)
+ maybeAddPath(QStringLiteral("/system/data/hunspell/"));
+ maybeAddPath(QStringLiteral("~/config/non-packaged/data/hunspell/"));
#else
maybeAddPath(QStringLiteral("/System/Library/Spelling"));
maybeAddPath(QStringLiteral("/usr/share/hunspell/"));
--
2.19.1

3 changes: 2 additions & 1 deletion kde-frameworks/sonnet/sonnet-5.55.0.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ SpellCheckDecorator class on your QTextEdit."
HOMEPAGE="https://github.com/KDE/sonnet/"
COPYRIGHT="2010-2019 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="2"
REVISION="3"
SOURCE_URI="https://github.com/KDE/sonnet/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="d371e1325369c263ec29355189e8e53f4f2a10a1ee3a036a1216d89e9a915e30"
PATCHES="sonnet-$portVersion.patchset"

ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
Expand Down

0 comments on commit 5a3c434

Please sign in to comment.