gentoo-ebuilds/app-text/nuspell/nuspell-5.1.6.ebuild
Jakov Smolić ad6feb30c1
app-text/nuspell: Stabilize 5.1.6 x86, #941181
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
2024-10-09 04:52:51 +02:00

51 lines
1.1 KiB
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Spell checker library and CLI for complex natural languages"
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="LGPL-3+"
SLOT="0/5" # due to libnuspell.so.5
KEYWORDS="amd64 ~loong ~riscv x86"
IUSE="doc test"
RDEPEND=">=dev-libs/icu-60"
DEPEND="${RDEPEND}
doc? ( virtual/pandoc )
test? ( >=dev-cpp/catch-3.1.1:0 )
"
DOCS=( CHANGELOG.md )
RESTRICT="!test? ( test )"
src_prepare() {
if ! use test ; then
rm -R external/hunspell/ || die
fi
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DBUILD_DOCS=$(usex doc)
-DBUILD_TESTING=$(usex test)
)
cmake_src_configure
}
pkg_postinst() {
einfo
einfo 'Nuspell needs language packs and/or dictionaries to be of use'
einfo 'e.g. package app-dicts/myspell-en or one of its siblings.'
einfo
einfo 'Besides MySpell dictionaries, for other options please'
einfo 'see https://nuspell.github.io/#languages-and-users .'
einfo
}