freebsd-ports/textproc/hunspell/files/patch-src_tools_hunspell.cxx
Gabor Kovesdan 2acab2f824 - Update to 1.2.8
- Fix installed Hungarian dictionary locating error

PR:		ports/131366
Submitted by:	Janos Mohacsi <janos.mohacsi@bsd.hu> (maintainer)
2009-02-08 15:46:37 +00:00

42 lines
1.6 KiB
C++

$FreeBSD$
--- src/tools/hunspell.cxx.orig
+++ src/tools/hunspell.cxx
@@ -63,25 +63,21 @@
#include "firstparser.hxx"
#define LIBDIR \
- "/usr/share/hunspell:" \
- "/usr/share/myspell:" \
- "/usr/share/myspell/dicts"
+ "%%PREFIX%%/share/hunspell:" \
+ "%%PREFIX%%/share/myspell:" \
+ "%%PREFIX%%/share/myspell/dicts"
#define USEROOODIR \
".openoffice.org2/user/wordbook:" \
".openoffice.org2.0/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"
+ "%%PREFIX%%/openoffice.org-DEV300_m41/share/dict/ooo:" \
+ "%%PREFIX%%/openoffice.org-3.0.0/share/dict/ooo:" \
+ "%%PREFIX%%/openoffice.org-2.4.2/share/dict/ooo:" \
+ "%%PREFIX%%/openoffice.org-2.4.1/share/dict/ooo:" \
+ "%%PREFIX%%/openoffice.org-2.4/share/dict/ooo:" \
+ "%%PREFIX%%/openoffice.org-2.2/share/dict/ooo:" \
+ "%%PREFIX%%/openoffice.org-2.1/share/dict/ooo:" \
+ "%%PREFIX%%/openoffice.org2.0/share/dict/ooo"
#define HOME getenv("HOME")
#define DICBASENAME ".hunspell_"
#define LOGFILE "/tmp/hunspell.log"