enchant: fix build with hunspell-1.4.1 (Arch patch)
This commit is contained in:
parent
c9565983a5
commit
31b907adf8
2 changed files with 15 additions and 0 deletions
14
srcpkgs/enchant/patches/hunspell14_buildfix.diff
Normal file
14
srcpkgs/enchant/patches/hunspell14_buildfix.diff
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
diff -ru enchant-1.6.0-orig/src/myspell/myspell_checker.cpp enchant-1.6.0/src/myspell/myspell_checker.cpp
|
||||||
|
--- enchant-1.6.0-orig/src/myspell/myspell_checker.cpp 2016-04-18 12:25:00.094614256 +0100
|
||||||
|
+++ enchant-1.6.0/src/myspell/myspell_checker.cpp 2016-04-18 12:26:09.108569576 +0100
|
||||||
|
@@ -148,6 +148,10 @@
|
||||||
|
g_iconv_close(m_translate_out);
|
||||||
|
}
|
||||||
|
|
||||||
|
+#ifndef MAXWORDLEN
|
||||||
|
+# define MAXWORDLEN 100
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
bool
|
||||||
|
MySpellChecker::checkWord(const char *utf8Word, size_t len)
|
||||||
|
{
|
|
@ -13,6 +13,7 @@ license="LGPL-2.1"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
distfiles="http://www.abisource.com/downloads/enchant/$version/enchant-$version.tar.gz"
|
distfiles="http://www.abisource.com/downloads/enchant/$version/enchant-$version.tar.gz"
|
||||||
checksum=2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f
|
checksum=2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f
|
||||||
|
patch_args="-Np1"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue