diff --git a/srcpkgs/enchant/patches/hunspell14_buildfix.diff b/srcpkgs/enchant/patches/hunspell14_buildfix.diff new file mode 100644 index 00000000000..0ecdb24b30c --- /dev/null +++ b/srcpkgs/enchant/patches/hunspell14_buildfix.diff @@ -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) + { diff --git a/srcpkgs/enchant/template b/srcpkgs/enchant/template index 358906c442b..6ae23729115 100644 --- a/srcpkgs/enchant/template +++ b/srcpkgs/enchant/template @@ -13,6 +13,7 @@ license="LGPL-2.1" maintainer="Juan RP " distfiles="http://www.abisource.com/downloads/enchant/$version/enchant-$version.tar.gz" checksum=2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f +patch_args="-Np1" pre_configure() { autoreconf -fi