summaryrefslogtreecommitdiff
path: root/app-text/enchant
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/enchant')
-rw-r--r--app-text/enchant/Manifest14
-rw-r--r--app-text/enchant/enchant-1.6.0.ebuild62
-rw-r--r--app-text/enchant/enchant-1.6.1.ebuild61
-rw-r--r--app-text/enchant/enchant-2.1.0.ebuild54
-rw-r--r--app-text/enchant/enchant-2.1.1.ebuild48
-rw-r--r--app-text/enchant/files/enchant-1.6.0-hunspell140_fix.patch16
-rw-r--r--app-text/enchant/files/enchant-1.6.0-hunspell150_fix.patch12
-rw-r--r--app-text/enchant/files/enchant-2.1.0-hunspell150_fix.patch25
-rw-r--r--app-text/enchant/metadata.xml13
9 files changed, 305 insertions, 0 deletions
diff --git a/app-text/enchant/Manifest b/app-text/enchant/Manifest
new file mode 100644
index 000000000000..338c154daa4c
--- /dev/null
+++ b/app-text/enchant/Manifest
@@ -0,0 +1,14 @@
+AUX enchant-1.6.0-hunspell140_fix.patch 372 SHA256 8af2416c76a4d45f43fb436d9f0158fe3d6bcec810fa8b636812873dd1a34ffb SHA512 94dd08fe828ba1fb7f043a0a277855988d3efb4f9ddd00da839833582f79986f09f7aec66a980641737dbce1b7302b6f6f7bfee7ac80db66dafdd5fcbf74c3fd WHIRLPOOL b66bf2beaef7942124f3a429a71f58eda3a8452d5876f8ac9ef1ea29ab728cf5429a039326c8fee4999c32201593eaef27a36019c9834d731c1a22cf7e523f3c
+AUX enchant-1.6.0-hunspell150_fix.patch 577 SHA256 113918ae07c492736a7fa359c86fe6f1e3c9582cd1b4a3f6fd0a0848a6a8c6f8 SHA512 893620f45a1dd7956aef9f3517186a9226c00e6b85df4770d6ea388fc08854e7884143fe3c7a064c7ec4f8353a9b9571d0c07da22df5c6ee41fc4c6bbce5874f WHIRLPOOL ab11f48c15b2444f4329cd10a428428fc43ec63233ea4f9333dbcb0d284bfc68b00feab79253d598f0a0455a3942fbc0243184036cdb2e810a42bb81647d0f55
+AUX enchant-2.1.0-hunspell150_fix.patch 783 SHA256 fd50ead615cbe380278df76b3cf755cf5b2644d186045c096761827a33f55000 SHA512 a8406777511f458f47a97c2c8246445abd05d611413beb0c9ad6e756418e5930f8516857c58193a14b700f1f539feb5c819881ea97d71d07839ebca0d3576994 WHIRLPOOL c74ff090b33b8e878ba4fa749db3e28f2f40d2892e924e981674f8ac4ca6293dfc1f157aa3d8ece97af853d83857b87f0256bee9c665c6deddab2d70875fc450
+DIST enchant-1.6.0.tar.gz 607018 SHA256 2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f SHA512 0ca1634bb783df51512df4abecc89abdadee6baf7330d6e5f90cc15d10779896a3521a1c079ecc07e4df4f7a018ce398cca9d0125a7845a314a059840ebc9137 WHIRLPOOL f6677a11f1d05e210cbd6a7b13f3987ea93b3f1e73537b048093c14686b0310e75a89fdb8798ad0ed386a7e1cd793f60820006df8c1f7919c46c7245ee6a74c9
+DIST enchant-1.6.1.tar.gz 642124 SHA256 bef0d9c0fef2e4e8746956b68e4d6c6641f6b85bd2908d91731efb68eba9e3f5 SHA512 26c62dfa89ee40150db502651a2f876fba00569b7015f205dae27a029557effacff335bbe36124dbe6686537da2305bcab02592179d03e95fdf9741d54b98036 WHIRLPOOL daffe1ee16e731d3d6ba56362f882c8f8bd7462a264fcf9caf05ed8093c0ca275977fb9c83c391d9e3287e6e98516b52e468c9bf9cc86532cf0b3eeba8f02fbd
+DIST enchant-2.1.0.tar.gz 962857 SHA256 2cdda2d9edb62ad895c34be35c598d56ac5b9b9298f3dfdaa2b40a1914d1db7e SHA512 5dee7c5693ffc4ca0933e0881ca6e1f6bab1553af79cadf29733589790c6626db524cf33b0008b3de4c48e122ed93929478cce35608d9a52ab71edb51f598f27 WHIRLPOOL 4bb340288fffae6f8c6bc7bf21127ea812b79698d8be0f275e638fe47d1cd1c2b6b96b15fb0a0cec983d8b3db6c3e973e9521d86247c1e1df31f3db4ee80cb8f
+DIST enchant-2.1.1.tar.gz 961821 SHA256 5fad0a1e82ddfed91647e93da5955fc76249760fd51865648a36074dc97d526c SHA512 5cb57198ea826da6d9ed9042edca87fcca9b811e8e75b382ed1568c5b1d8d4f8d6ba732a167c8d52261cfce540f23f84bd4d2889a4beafd2db1d8509c0b6bc15 WHIRLPOOL 955b1d853233529198b3a487406b0c481273214b5c54c22fbc992ea63f66143e278082f3d17370e9140d6211cf36586881ff73dbd07c66b01346d36cd2f2f316
+EBUILD enchant-1.6.0.ebuild 1560 SHA256 b4d196e3288fbd88bd4574d5e626fb0201b16ea0e08a9f6bfde723c8a84cb50f SHA512 e800eb39c1df85310236f1a760a218539622dc6670856482009efd2d7609b748e79f2a0aeb4fa565a17420226ebc7c7c87a4860e6e749b2b6d677ae308fa695f WHIRLPOOL ce5fb0f22e025e95dc7ccea943d5452758179add5b1f0e514b18dbea56f8f4332d1df041db13131d780bb67c320ff40911bfbb8d79696e90f76bcc76dc5f07bb
+EBUILD enchant-1.6.1.ebuild 1626 SHA256 c1b1ac5d5f9da4c9c67a7c3b281daa0d32f92c485dc9ef0ef713be2cde6e31ba SHA512 a6d011b85539119cdaed553918d30114c288e2f7898734b6d676cd732d18f6c62c0969ddd2fc39d3a953d6f40a562623c067f0f87ddce46b93b65bd31d9729cf WHIRLPOOL 961bad3f00d046d467c7166f8869e930be96391b5a5ff4737ee82c31f9cda70d7e7795214005a26a3ff40e4cbe13775baa69526c88fb00729df1a88c03b71851
+EBUILD enchant-2.1.0.ebuild 1432 SHA256 cc5175e06088360533c6820b16af78516bad0a2631193b763f7700e53324a426 SHA512 4131394259cc3280717fb1f6ebd7334289c0209d21af7659ce412f4124a537d7b920e2d4b6f72e1ec6303e5e53238209ad5dfd37e5c011ffe32c9557084ceaf1 WHIRLPOOL 9dc71b51aba6287ba46fb3ab5271d90eb34044d2b6dc3fa9d96d7a64248a743e95af929c521f11d05dc436ecb128f273ad0ab8ffb197386510ec237aa735529b
+EBUILD enchant-2.1.1.ebuild 1291 SHA256 9f63c17b8b5e74cfe3b3ae139bf6c1449de0b5253250bd93d6aaf220a34c4d16 SHA512 f5ceb6c6114864facef4a56da39a17324a86880c680fae23acc0617e97223ab9ac36996f2aae55bfbfb5f0861263c272969f93dae17f82bfe61601b232b26266 WHIRLPOOL 74acdfbaa22132559f85f551d7098e6e08c37e469f7a1d1e858a3c28828075a29225a6853c476c748691bc10e56bb25cc344ef9311db50118e786ba8878a2707
+MISC ChangeLog 3096 SHA256 8f56703204db0c230ca5127b857f95ea662a3919ccda4b66472e2b91e8ae35ff SHA512 eb6ad3c465a1589da77fdde411258c2dd39617dec6e76d8967034fc4dfe18f661c60bd11b99702c8f5eb4e87dbbbf90ff1890815a6d0423419072b0f038178d9 WHIRLPOOL 053a86bcb1ab83550337a0ebfa827450fcedbdd827b211835407c8e652acd7550ccaa617ae3374fb3d8f677192f82af1376a30cb85a19da77330ca1adebbf926
+MISC ChangeLog-2015 14273 SHA256 f68693601de59c173fb30d97a94feb06bafcc2d93a5c411e012404eee50d967e SHA512 70ef146761b9b6b1e3aaa2174863fd22ebcfa5a39c07e5c67d680dc903333dd7c9e3cf287fd4bad8ab3867aa7dadb09fa38c65a40f54f669e51853a5c3bf4b53 WHIRLPOOL dc89c8800fc84d65397feecfae94b359737ead5edcb4fe2828f0713715cef63e92bd4264ccc7876801a6f44c9054f5c5327ee52978d284c890a3f2105f266dfb
+MISC metadata.xml 551 SHA256 c1dc6d6f7cf4716ddce1d3db93da0d3b35b8f6e4ad45403fce438ff1ad563fa9 SHA512 15358f20d39014be293f87d60871f16712f4314808bdd28bd25d6cced2278fc46eaa36f1e44c970c1379488bcf0fa359686abf3fa8ff10f4d66cb2f82057a528 WHIRLPOOL 2280109033941d67bdef204f3d7bc28f5fbaecd23660b1174a2ae24d42b4083cfacfeb88c81af3a66ed114f7accfd0d4889d7c53f832af90811dee6e282ef0bf
diff --git a/app-text/enchant/enchant-1.6.0.ebuild b/app-text/enchant/enchant-1.6.0.ebuild
new file mode 100644
index 000000000000..5a4e593dc79c
--- /dev/null
+++ b/app-text/enchant/enchant-1.6.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils autotools
+
+DESCRIPTION="Spellchecker wrapping library"
+HOMEPAGE="http://www.abisource.com/enchant/"
+SRC_URI="http://www.abisource.com/downloads/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+
+IUSE="aspell +hunspell static-libs zemberek"
+REQUIRED_USE="|| ( hunspell aspell zemberek )"
+
+COMMON_DEPENDS="
+ dev-libs/glib:2
+ aspell? ( app-text/aspell )
+ hunspell? ( >=app-text/hunspell-1.2.1:0= )
+ zemberek? ( dev-libs/dbus-glib )
+"
+RDEPEND="${COMMON_DEPENDS}
+ zemberek? ( app-text/zemberek-server )
+"
+DEPEND="${COMMON_DEPENDS}
+ virtual/pkgconfig
+"
+
+DOCS="AUTHORS BUGS ChangeLog HACKING MAINTAINERS NEWS README TODO"
+
+PATCHES=(
+ # http://bugzilla.abisource.com/show_bug.cgi?id=13772
+ "${FILESDIR}/${P}-hunspell140_fix.patch"
+ "${FILESDIR}/${P}-hunspell150_fix.patch"
+)
+
+src_prepare() {
+ default
+ sed -i \
+ -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
+ tests/Makefile.am || die
+ mv configure.in configure.ac || die
+ AT_M4DIR=ac-helpers eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable aspell) \
+ $(use_enable hunspell myspell) \
+ $(use_with hunspell system-myspell) \
+ $(use_enable static-libs static) \
+ $(use_enable zemberek) \
+ --disable-ispell \
+ --with-myspell-dir="${EPREFIX}"/usr/share/myspell/
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
diff --git a/app-text/enchant/enchant-1.6.1.ebuild b/app-text/enchant/enchant-1.6.1.ebuild
new file mode 100644
index 000000000000..ff615eb5b756
--- /dev/null
+++ b/app-text/enchant/enchant-1.6.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit versionator
+
+MY_PV="$(replace_all_version_separators '-')"
+DESCRIPTION="Spellchecker wrapping library"
+HOMEPAGE="https://abiword.github.io/enchant/"
+SRC_URI="https://github.com/AbiWord/enchant/releases/download/${PN}-${MY_PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+
+IUSE="aspell +hunspell static-libs test zemberek"
+REQUIRED_USE="|| ( hunspell aspell zemberek )"
+
+# FIXME: depends on unittest++ but through pkgconfig which is a Debian hack, bug #629742
+COMMON_DEPENDS="
+ >=dev-libs/glib-2.6:2
+ aspell? ( app-text/aspell )
+ hunspell? ( >=app-text/hunspell-1.2.1:0= )
+ zemberek? ( dev-libs/dbus-glib )
+"
+RDEPEND="${COMMON_DEPENDS}
+ zemberek? ( app-text/zemberek-server )
+"
+DEPEND="${COMMON_DEPENDS}
+ virtual/pkgconfig
+"
+# test? ( dev-libs/unittest++ )
+
+DOCS="AUTHORS BUGS ChangeLog HACKING MAINTAINERS NEWS README TODO"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.0-hunspell150_fix.patch
+)
+
+src_prepare() {
+ default
+ sed -e "/SUBDIRS/ s/unittests//" -i "${S}"/Makefile.{am,in} || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable aspell) \
+ $(use_enable hunspell myspell) \
+ $(use_enable static-libs static) \
+ $(use_enable zemberek) \
+ --disable-hspell \
+ --disable-ispell \
+ --disable-uspell \
+ --disable-voikko \
+ --with-myspell-dir="${EPREFIX}"/usr/share/myspell/
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/app-text/enchant/enchant-2.1.0.ebuild b/app-text/enchant/enchant-2.1.0.ebuild
new file mode 100644
index 000000000000..e37685161438
--- /dev/null
+++ b/app-text/enchant/enchant-2.1.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Spellchecker wrapping library"
+HOMEPAGE="https://abiword.github.io/enchant/"
+SRC_URI="https://github.com/AbiWord/enchant/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+
+IUSE="aspell +hunspell static-libs test zemberek"
+REQUIRED_USE="|| ( hunspell aspell zemberek )"
+
+# FIXME: depends on unittest++ but through pkgconfig which is a Debian hack, bug #629742
+COMMON_DEPENDS="
+ >=dev-libs/glib-2.6:2
+ aspell? ( app-text/aspell )
+ hunspell? ( >=app-text/hunspell-1.2.1:0= )
+ zemberek? ( dev-libs/dbus-glib )
+"
+RDEPEND="${COMMON_DEPENDS}
+ zemberek? ( app-text/zemberek-server )
+"
+DEPEND="${COMMON_DEPENDS}
+ virtual/pkgconfig
+"
+# test? ( dev-libs/unittest++ )
+
+PATCHES=(
+ # Fix build with hunspell 1.5
+ # https://bugs.gentoo.org/show_bug.cgi?id=600952
+ "${FILESDIR}"/${PN}-2.1.0-hunspell150_fix.patch
+)
+
+RESTRICT="test"
+
+src_configure() {
+ econf \
+ $(use_with aspell) \
+ $(use_with hunspell) \
+ $(use_enable static-libs static) \
+ $(use_with zemberek) \
+ --without-hspell \
+ --without-voikko \
+ --with-hunspell-dir="${EPREFIX}"/usr/share/hunspell/
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/app-text/enchant/enchant-2.1.1.ebuild b/app-text/enchant/enchant-2.1.1.ebuild
new file mode 100644
index 000000000000..4e9c52c25da6
--- /dev/null
+++ b/app-text/enchant/enchant-2.1.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Spellchecker wrapping library"
+HOMEPAGE="https://abiword.github.io/enchant/"
+SRC_URI="https://github.com/AbiWord/enchant/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+
+IUSE="aspell +hunspell static-libs test zemberek"
+REQUIRED_USE="|| ( hunspell aspell zemberek )"
+
+# FIXME: depends on unittest++ but through pkgconfig which is a Debian hack, bug #629742
+COMMON_DEPENDS="
+ >=dev-libs/glib-2.6:2
+ aspell? ( app-text/aspell )
+ hunspell? ( >=app-text/hunspell-1.2.1:0= )
+ zemberek? ( dev-libs/dbus-glib )
+"
+RDEPEND="${COMMON_DEPENDS}
+ zemberek? ( app-text/zemberek-server )
+"
+DEPEND="${COMMON_DEPENDS}
+ virtual/pkgconfig
+"
+# test? ( dev-libs/unittest++ )
+
+RESTRICT="test"
+
+src_configure() {
+ econf \
+ $(use_with aspell) \
+ $(use_with hunspell) \
+ $(use_enable static-libs static) \
+ $(use_with zemberek) \
+ --without-hspell \
+ --without-voikko \
+ --with-hunspell-dir="${EPREFIX}"/usr/share/hunspell/
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
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
+
diff --git a/app-text/enchant/metadata.xml b/app-text/enchant/metadata.xml
new file mode 100644
index 000000000000..8a391bed92f8
--- /dev/null
+++ b/app-text/enchant/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <use>
+ <flag name="aspell">Adds support for <pkg>app-text/aspell</pkg> spell checker</flag>
+ <flag name="hunspell">Adds support for <pkg>app-text/hunspell</pkg> spell checker</flag>
+ <flag name="zemberek">Adds support for <pkg>app-text/zemberek-server</pkg> spell checker server</flag>
+ </use>
+</pkgmetadata>