Otter-Browser: fix dictionary paths for hunspell

This commit is contained in:
Gerasim Troeglazov
2019-03-02 23:17:49 +10:00
parent a29b50ed00
commit e1b4e573b2
2 changed files with 25 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ classic Opera (12.x) UI using Qt5."
HOMEPAGE="https://otter-browser.org/" HOMEPAGE="https://otter-browser.org/"
COPYRIGHT="2013-2019 Otter Browser Team" COPYRIGHT="2013-2019 Otter Browser Team"
LICENSE="GNU GPL v3" LICENSE="GNU GPL v3"
REVISION="4" REVISION="5"
SOURCE_URI="https://github.com/OtterBrowser/otter-browser/archive/v$portVersion.tar.gz" SOURCE_URI="https://github.com/OtterBrowser/otter-browser/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="85aef7c74277cf94de237e516c3c2d507b3d19b9ad16853de938540b8bf2f16b" CHECKSUM_SHA256="85aef7c74277cf94de237e516c3c2d507b3d19b9ad16853de938540b8bf2f16b"
SOURCE_FILENAME="otter-browser-$portVersion.tar.gz" SOURCE_FILENAME="otter-browser-$portVersion.tar.gz"

View File

@@ -1,4 +1,4 @@
From 4849bcff3a3182b335b1b6ad0e32b1b6bd2c0a58 Mon Sep 17 00:00:00 2001 From ba9fd1f8f8b3c5cc0fa819f645ea586bade5a038 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com> From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Thu, 3 Jan 2019 17:08:40 +1000 Date: Thu, 3 Jan 2019 17:08:40 +1000
Subject: Fix for Haiku Subject: Fix for Haiku
@@ -102,3 +102,26 @@ index bec0f9c..d2d6581 100644
-- --
2.19.1 2.19.1
From e84f821939a5b4b3f7a607e08506fdffd52fff8d Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sat, 2 Mar 2019 23:13:15 +1000
Subject: Add haiku hunspell paths
diff --git a/3rdparty/sonnet/src/plugins/hunspell/hunspellclient.cpp b/3rdparty/sonnet/src/plugins/hunspell/hunspellclient.cpp
index e9767a9..1956528 100644
--- a/3rdparty/sonnet/src/plugins/hunspell/hunspellclient.cpp
+++ b/3rdparty/sonnet/src/plugins/hunspell/hunspellclient.cpp
@@ -56,6 +56,8 @@ HunspellClient::HunspellClient(QObject *parent)
#ifdef Q_OS_MAC
directories << QLatin1String("/System/Library/Spelling/");
+#elif defined(Q_OS_HAIKU)
+ directories << QLatin1String("/system/data/hunspell/") << QLatin1String("~/config/non-packaged/data/hunspell/");
#else
directories << QLatin1String("/usr/share/hunspell/") << QLatin1String("/usr/local/share/hunspell/") << QLatin1String("/usr/share/myspell/") << QLatin1String("/usr/share/myspell/dicts/") << QLatin1String("/usr/local/share/mozilla-dicts/");
#endif
--
2.19.1