1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION
="Spellchecker wrapping library"
7 HOMEPAGE
="https://abiword.github.io/enchant/"
8 SRC_URI
="https://github.com/AbiWord/enchant/releases/download/v${PV}/${P}.tar.gz"
12 KEYWORDS
="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
14 IUSE
="aspell +hunspell nuspell"
15 REQUIRED_USE
="|| ( hunspell aspell nuspell )"
17 # FIXME: depends on unittest++ but through pkgconfig which is a Debian hack, bug #629742
20 aspell? ( app-text/aspell )
21 nuspell? ( app-text/nuspell )
22 hunspell? ( >=app-text/hunspell-1.2.1:0= )"
24 BDEPEND
="virtual/pkgconfig"
26 # test? ( dev-libs/unittest++ )
31 --datadir="${EPREFIX}"/usr
/share
/enchant-2 \
34 $
(use_with hunspell
) \
38 --without-applespell \
40 --with-hunspell-dir="${EPREFIX}"/usr
/share
/hunspell
/
45 find "${D}" -name '*.la' -delete || die