1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

www/firefox: don't load system dictionaries after r472727

Bundled Hunspell may not be compatible. If users still want system
dictionaries they can set spellchecker.dictionary_path in about:config.
This commit is contained in:
Jan Beich 2018-11-20 18:57:23 +00:00
parent 1bfb541196
commit 57c6708383
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=485461
3 changed files with 3 additions and 18 deletions

View File

@ -539,8 +539,10 @@ gecko-post-patch:
-e 's|share/mozilla/extensions|lib/xpi|g' \
${MOZSRC}/xpcom/io/nsAppFileLocationProvider.cpp \
${MOZSRC}/toolkit/xre/nsXREDirProvider.cpp
.if ${MOZILLA_VER:R:R} < 61
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${MOZSRC}/extensions/spellcheck/hunspell/*/mozHunspell.cpp
.endif
# handles mozilla pis scripts.
gecko-moz-pis-patch:

View File

@ -3,7 +3,7 @@
PORTNAME= firefox
DISTVERSION= 63.0.3
PORTREVISION= 2
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= www ipv6
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \

View File

@ -1,17 +0,0 @@
--- extensions/spellcheck/hunspell/glue/mozHunspell.cpp~
+++ extensions/spellcheck/hunspell/glue/mozHunspell.cpp
@@ -336,6 +336,14 @@ mozHunspell::LoadDictionaryList(bool aNotifyChildProcesses)
}
}
+ // load system hunspell dictionaries
+ nsCOMPtr<nsIFile> hunDir;
+ NS_NewNativeLocalFile(NS_LITERAL_CSTRING("%%LOCALBASE%%/share/hunspell"),
+ true, getter_AddRefs(hunDir));
+ if (hunDir) {
+ LoadDictionariesFromDir(hunDir);
+ }
+
// find dictionaries from restartless extensions
for (int32_t i = 0; i < mDynamicDirectories.Count(); i++) {
LoadDictionariesFromDir(mDynamicDirectories[i]);