1 # Copyright 1999-2021 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 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
14 IUSE
="aspell +hunspell nuspell test"
15 REQUIRED_USE
="|| ( hunspell aspell nuspell )"
19 aspell? ( app-text/aspell )
20 nuspell? ( app-text/nuspell )
21 hunspell? ( >=app-text/hunspell-1.2.1:0= )"
23 test? ( >=dev-libs/unittest++-2.0.0-r2 )"
24 BDEPEND
="virtual/pkgconfig"
26 RESTRICT
="test" # Tests fail
29 # TODO: Add app-text/nuspell support
31 --datadir="${EPREFIX}"/usr
/share
/enchant-2 \
33 $
(use_enable
test relocatable
) \
35 $
(use_with hunspell
) \
39 --without-applespell \
41 --with-hunspell-dir="${EPREFIX}"/usr
/share
/hunspell
/
46 find "${D}" -name '*.la' -delete || die