termux-packages/packages/hunspell/src-tools-hunspell.cxx.patch

22 lines
752 B
Diff

diff -u -r ../hunspell-1.4.1/src/tools/hunspell.cxx ./src/tools/hunspell.cxx
--- ../hunspell-1.4.1/src/tools/hunspell.cxx 2016-05-03 03:55:52.000000000 -0400
+++ ./src/tools/hunspell.cxx 2016-05-03 06:49:59.025455094 -0400
@@ -113,7 +113,7 @@
#include "odfparser.hxx"
#define LIBDIR \
- "/usr/share/hunspell:" \
+ "@TERMUX_PREFIX@/share/hunspell:" \
"/usr/share/myspell:" \
"/usr/share/myspell/dicts:" \
"/Library/Spelling"
@@ -137,7 +137,7 @@
"/usr/lib/openoffice.org2.0/share/dict/ooo"
#define HOME getenv("HOME")
#define DICBASENAME ".hunspell_"
-#define LOGFILE "/tmp/hunspell.log"
+#define LOGFILE "@TERMUX_PREFIX@/tmp/hunspell.log"
#define DIRSEPCH '/'
#define DIRSEP "/"
#define PATHSEP ":"