mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 09:22:57 +02:00
hunspell: change openoffice search path to libreoffice
Signed-off-by: Nathan Owens <ndowens04@gmail.com>
This commit is contained in:
parent
3a5210a143
commit
80d0943792
2 changed files with 36 additions and 2 deletions
34
srcpkgs/hunspell/patches/search_path.patch
Normal file
34
srcpkgs/hunspell/patches/search_path.patch
Normal 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"
|
|
@ -1,15 +1,15 @@
|
||||||
# Template file for 'hunspell'
|
# Template file for 'hunspell'
|
||||||
pkgname=hunspell
|
pkgname=hunspell
|
||||||
version=1.7.0
|
version=1.7.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-ui"
|
configure_args="--with-ui"
|
||||||
hostmakedepends="automake bison libtool pkg-config"
|
hostmakedepends="automake bison libtool pkg-config"
|
||||||
makedepends="ncurses-devel"
|
makedepends="ncurses-devel"
|
||||||
short_desc="Spell checker and morphological analyzer"
|
short_desc="Spell checker and morphological analyzer"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
homepage="https://hunspell.github.io/"
|
|
||||||
license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
|
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"
|
distfiles="https://github.com/hunspell/hunspell/archive/v${version}.tar.gz"
|
||||||
checksum=bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a
|
checksum=bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue