diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/enchant/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/enchant/files')
3 files changed, 53 insertions, 0 deletions
diff --git a/app-text/enchant/files/enchant-1.6.0-hunspell140_fix.patch b/app-text/enchant/files/enchant-1.6.0-hunspell140_fix.patch new file mode 100644 index 000000000000..5d58ab7f540c --- /dev/null +++ b/app-text/enchant/files/enchant-1.6.0-hunspell140_fix.patch @@ -0,0 +1,16 @@ +https://bugs.gentoo.org/583486 +http://bugzilla.abisource.com/show_bug.cgi?id=13772 + +--- enchant-1.6.0/src/myspell/myspell_checker.cpp ++++ enchant-1.6.0/src/myspell/myspell_checker.cpp +@@ -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/app-text/enchant/files/enchant-1.6.0-hunspell150_fix.patch b/app-text/enchant/files/enchant-1.6.0-hunspell150_fix.patch new file mode 100644 index 000000000000..bd40c81d3c03 --- /dev/null +++ b/app-text/enchant/files/enchant-1.6.0-hunspell150_fix.patch @@ -0,0 +1,12 @@ +diff -upr 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-11-26 16:04:05.689051339 +0200 ++++ enchant-1.6.0/src/myspell/myspell_checker.cpp 2016-11-26 16:05:11.380014568 +0200 +@@ -431,7 +431,7 @@ MySpellChecker::requestDictionary(const + if(myspell == NULL){ + return false; + } +- char *enc = myspell->get_dic_encoding(); ++ const char *enc = myspell->get_dic_encoding(); + + m_translate_in = g_iconv_open(enc, "UTF-8"); + m_translate_out = g_iconv_open("UTF-8", enc); diff --git a/app-text/enchant/files/enchant-2.1.0-hunspell150_fix.patch b/app-text/enchant/files/enchant-2.1.0-hunspell150_fix.patch new file mode 100644 index 000000000000..1dac6c11ec5f --- /dev/null +++ b/app-text/enchant/files/enchant-2.1.0-hunspell150_fix.patch @@ -0,0 +1,25 @@ +From 87b36fd87d8ecc894850d82eed33f48d6c429cad Mon Sep 17 00:00:00 2001 +From: Pacho Ramos <pacho@gentoo.org> +Date: Sun, 3 Sep 2017 11:05:42 +0200 +Subject: [PATCH] Fix hunspell 1.5 support + +--- + providers/enchant_hunspell.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/providers/enchant_hunspell.cpp b/providers/enchant_hunspell.cpp +index 609f856..0bc360f 100644 +--- a/providers/enchant_hunspell.cpp ++++ b/providers/enchant_hunspell.cpp +@@ -312,7 +312,7 @@ HunspellChecker::requestDictionary(const char *szLang) + if(hunspell == NULL){ + return false; + } +- char *enc = hunspell->get_dic_encoding(); ++ const char *enc = hunspell->get_dic_encoding(); + + m_translate_in = g_iconv_open(enc, "UTF-8"); + m_translate_out = g_iconv_open("UTF-8", enc); +-- +2.14.1 + |