Upstream: https://github.com/nuspell/nuspell/issues/51#issuecomment-
583019563
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Package-Manager: Portage-2.3.84, Repoman-2.3.20
HOMEPAGE="https://nuspell.github.io/ https://github.com/nuspell/nuspell"
SRC_URI="https://github.com/nuspell/nuspell/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-LICENSE="|| ( MPL-1.1 GPL-2+ LGPL-2.1+ ) LGPL-3+"
+LICENSE="test? ( || ( MPL-1.1 GPL-2+ LGPL-2.1+ ) ) LGPL-3+"
SLOT="0/3" # due to libnuspell.so.3
KEYWORDS="~amd64 ~x86"
-IUSE="doc"
+IUSE="doc test"
RDEPEND="dev-libs/icu"
DEPEND="${RDEPEND}
DOCS=( CHANGELOG.md )
+RESTRICT="!test? ( test )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTING=$(usex test)
+ )
+
+ cmake_src_configure
+}
+
pkg_postinst() {
einfo
einfo 'Nuspell needs language packs and/or dictionaries to be of use'