hunspell: change openoffice search path to libreoffice

Signed-off-by: Nathan Owens <ndowens04@gmail.com>
This commit is contained in:
Nathan Owens 2020-01-05 19:40:02 -06:00 committed by Juan RP
parent 3a5210a143
commit 80d0943792
2 changed files with 36 additions and 2 deletions

View file

@ -0,0 +1,34 @@
diff --git src/tools/hunspell.cxx src/tools/hunspell.cxx
index 690e34a..d9b094d 100644
--- src/tools/hunspell.cxx
+++ src/tools/hunspell.cxx
@@ -119,25 +119,11 @@
"/usr/share/hunspell:" \
"/usr/share/myspell:" \
"/usr/share/myspell/dicts:" \
- "/Library/Spelling"
-#define USEROOODIR { \
- ".openoffice.org/3/user/wordbook", \
- ".openoffice.org2/user/wordbook", \
- ".openoffice.org2.0/user/wordbook",\
- "Library/Spelling" }
+ "/usr/share/mozilla-dicts"
+#define USEROOODIR { \
+ ".config/libreoffice/4/user/wordbook" }
#define OOODIR \
- "/opt/openoffice.org/basis3.0/share/dict/ooo:" \
- "/usr/lib/openoffice.org/basis3.0/share/dict/ooo:" \
- "/opt/openoffice.org2.4/share/dict/ooo:" \
- "/usr/lib/openoffice.org2.4/share/dict/ooo:" \
- "/opt/openoffice.org2.3/share/dict/ooo:" \
- "/usr/lib/openoffice.org2.3/share/dict/ooo:" \
- "/opt/openoffice.org2.2/share/dict/ooo:" \
- "/usr/lib/openoffice.org2.2/share/dict/ooo:" \
- "/opt/openoffice.org2.1/share/dict/ooo:" \
- "/usr/lib/openoffice.org2.1/share/dict/ooo:" \
- "/opt/openoffice.org2.0/share/dict/ooo:" \
- "/usr/lib/openoffice.org2.0/share/dict/ooo"
+ "/usr/lib/libreoffice/share/wordbook"
#define HOME getenv("HOME")
#define DICBASENAME ".hunspell_"
#define LOGFILE "/tmp/hunspell.log"

View file

@ -1,15 +1,15 @@
# Template file for 'hunspell'
pkgname=hunspell
version=1.7.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-ui"
hostmakedepends="automake bison libtool pkg-config"
makedepends="ncurses-devel"
short_desc="Spell checker and morphological analyzer"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="https://hunspell.github.io/"
license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
homepage="https://hunspell.github.io/"
distfiles="https://github.com/hunspell/hunspell/archive/v${version}.tar.gz"
checksum=bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a