[arch-commits] Commit in enchant/repos (8 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Nov 26 14:10:45 UTC 2016
Date: Saturday, November 26, 2016 @ 14:10:44
Author: foutrelis
Revision: 282041
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
enchant/repos/staging-i686/
enchant/repos/staging-i686/PKGBUILD
(from rev 282040, enchant/trunk/PKGBUILD)
enchant/repos/staging-i686/hunspell14_buildfix.diff
(from rev 282040, enchant/trunk/hunspell14_buildfix.diff)
enchant/repos/staging-i686/hunspell15_buildfix.diff
(from rev 282040, enchant/trunk/hunspell15_buildfix.diff)
enchant/repos/staging-x86_64/
enchant/repos/staging-x86_64/PKGBUILD
(from rev 282040, enchant/trunk/PKGBUILD)
enchant/repos/staging-x86_64/hunspell14_buildfix.diff
(from rev 282040, enchant/trunk/hunspell14_buildfix.diff)
enchant/repos/staging-x86_64/hunspell15_buildfix.diff
(from rev 282040, enchant/trunk/hunspell15_buildfix.diff)
-----------------------------------------+
staging-i686/PKGBUILD | 40 ++++++++++++++++++++++++++++++
staging-i686/hunspell14_buildfix.diff | 14 ++++++++++
staging-i686/hunspell15_buildfix.diff | 12 +++++++++
staging-x86_64/PKGBUILD | 40 ++++++++++++++++++++++++++++++
staging-x86_64/hunspell14_buildfix.diff | 14 ++++++++++
staging-x86_64/hunspell15_buildfix.diff | 12 +++++++++
6 files changed, 132 insertions(+)
Copied: enchant/repos/staging-i686/PKGBUILD (from rev 282040, enchant/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2016-11-26 14:10:44 UTC (rev 282041)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: dorphell <dorphell at archlinux.org>
+
+pkgname=enchant
+pkgver=1.6.0
+pkgrel=9
+pkgdesc="A wrapper library for generic spell checking"
+arch=('i686' 'x86_64')
+url="http://www.abisource.com/enchant/"
+license=('LGPL')
+depends=('aspell' 'dbus-glib' 'hunspell' 'hspell' 'libvoikko')
+source=("http://www.abisource.com/downloads/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ hunspell14_buildfix.diff
+ hunspell15_buildfix.diff)
+md5sums=('de11011aff801dc61042828041fb59c7'
+ '1305a6c285b5970bb1ef0f033f49f329'
+ '01b3d7cd3d2debf43d742c31ca9ccc67')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ # http://bugzilla.abisource.com/show_bug.cgi?id=13772
+ patch -Np1 -i ${srcdir}/hunspell14_buildfix.diff
+ patch -Np1 -i ${srcdir}/hunspell15_buildfix.diff
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr \
+ --disable-static \
+ --disable-ispell \
+ --with-myspell-dir=/usr/share/myspell
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
Copied: enchant/repos/staging-i686/hunspell14_buildfix.diff (from rev 282040, enchant/trunk/hunspell14_buildfix.diff)
===================================================================
--- staging-i686/hunspell14_buildfix.diff (rev 0)
+++ staging-i686/hunspell14_buildfix.diff 2016-11-26 14:10:44 UTC (rev 282041)
@@ -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)
+ {
Copied: enchant/repos/staging-i686/hunspell15_buildfix.diff (from rev 282040, enchant/trunk/hunspell15_buildfix.diff)
===================================================================
--- staging-i686/hunspell15_buildfix.diff (rev 0)
+++ staging-i686/hunspell15_buildfix.diff 2016-11-26 14:10:44 UTC (rev 282041)
@@ -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);
Copied: enchant/repos/staging-x86_64/PKGBUILD (from rev 282040, enchant/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2016-11-26 14:10:44 UTC (rev 282041)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: dorphell <dorphell at archlinux.org>
+
+pkgname=enchant
+pkgver=1.6.0
+pkgrel=9
+pkgdesc="A wrapper library for generic spell checking"
+arch=('i686' 'x86_64')
+url="http://www.abisource.com/enchant/"
+license=('LGPL')
+depends=('aspell' 'dbus-glib' 'hunspell' 'hspell' 'libvoikko')
+source=("http://www.abisource.com/downloads/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ hunspell14_buildfix.diff
+ hunspell15_buildfix.diff)
+md5sums=('de11011aff801dc61042828041fb59c7'
+ '1305a6c285b5970bb1ef0f033f49f329'
+ '01b3d7cd3d2debf43d742c31ca9ccc67')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ # http://bugzilla.abisource.com/show_bug.cgi?id=13772
+ patch -Np1 -i ${srcdir}/hunspell14_buildfix.diff
+ patch -Np1 -i ${srcdir}/hunspell15_buildfix.diff
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr \
+ --disable-static \
+ --disable-ispell \
+ --with-myspell-dir=/usr/share/myspell
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
Copied: enchant/repos/staging-x86_64/hunspell14_buildfix.diff (from rev 282040, enchant/trunk/hunspell14_buildfix.diff)
===================================================================
--- staging-x86_64/hunspell14_buildfix.diff (rev 0)
+++ staging-x86_64/hunspell14_buildfix.diff 2016-11-26 14:10:44 UTC (rev 282041)
@@ -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)
+ {
Copied: enchant/repos/staging-x86_64/hunspell15_buildfix.diff (from rev 282040, enchant/trunk/hunspell15_buildfix.diff)
===================================================================
--- staging-x86_64/hunspell15_buildfix.diff (rev 0)
+++ staging-x86_64/hunspell15_buildfix.diff 2016-11-26 14:10:44 UTC (rev 282041)
@@ -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);
More information about the arch-commits
mailing list