From 5f59bec689d2e260a4b9dc8432a69e3726d9e7b3 Mon Sep 17 00:00:00 2001 From: "S. Gilles" Date: Sat, 10 Oct 2020 21:37:51 -0400 Subject: [PATCH] app-text/enchant: add nuspell backend --- app-text/enchant/Manifest | 2 ++ app-text/enchant/enchant-2.2.8-r99.ebuild | 46 +++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 app-text/enchant/Manifest create mode 100644 app-text/enchant/enchant-2.2.8-r99.ebuild diff --git a/app-text/enchant/Manifest b/app-text/enchant/Manifest new file mode 100644 index 0000000..47a28a0 --- /dev/null +++ b/app-text/enchant/Manifest @@ -0,0 +1,2 @@ +DIST enchant-2.2.8.tar.gz 976715 BLAKE2B 50a96c69b6f6575db0a8d6f30420db4b273901a9a0261ae606d81d96b044ece03078a2549f34972fef47a36f0b85c27af90c90c2f2efab2fb258e17621d927af SHA512 4bfa771af0deab3d0ca5523abab1fdb14cb596747dba7cf887e8cd812601015f52502cbd3df68247f102bba259cb281414e9ccde83b8bdd3c8cc83c2fcbc9090 +EBUILD enchant-2.2.8-r99.ebuild 1234 BLAKE2B f5186fd00004825cacce13ce3caa77542aa79938e19bc1dcbb82fc78a0720c22cebdcff4c695d8de52107e7db3fedbc9640c2613e0fb528bab1cf4b0b5c88e9c SHA512 ac545fa226688a10645bdfcec40356ee65acf9acb18f996081a5f49aec5107f4fb2c577268240911513df1a308eaf68a9efe4b5f76a1cdad32036621c50ef43d diff --git a/app-text/enchant/enchant-2.2.8-r99.ebuild b/app-text/enchant/enchant-2.2.8-r99.ebuild new file mode 100644 index 0000000..a473fca --- /dev/null +++ b/app-text/enchant/enchant-2.2.8-r99.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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="2" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" + +IUSE="aspell +hunspell nuspell" +REQUIRED_USE="|| ( hunspell aspell nuspell )" + +# FIXME: depends on unittest++ but through pkgconfig which is a Debian hack, bug #629742 +RDEPEND=" + >=dev-libs/glib-2.6:2 + aspell? ( app-text/aspell ) + nuspell? ( app-text/nuspell ) + hunspell? ( >=app-text/hunspell-1.2.1:0= )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +# test? ( dev-libs/unittest++ ) +RESTRICT="test" + +src_configure() { + econf \ + --datadir="${EPREFIX}"/usr/share/enchant-2 \ + --disable-static \ + $(use_with aspell) \ + $(use_with hunspell) \ + $(use_with nuspell) \ + --without-hspell \ + --without-voikko \ + --without-applespell \ + --without-zemberek \ + --with-hunspell-dir="${EPREFIX}"/usr/share/hunspell/ +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die +} -- 2.11.4.GIT