app-text/nuspell: 5.1.7

Signed-off-by: Sebastian Pipping <sping@gentoo.org>
This commit is contained in:
Sebastian Pipping 2025-11-25 21:44:57 +01:00
parent 870219dd89
commit a1f19bd032
No known key found for this signature in database
GPG Key ID: 96262ACFFBD3AEC6
2 changed files with 52 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST nuspell-5.1.6.tar.gz 373260 BLAKE2B 978f1055c4e8f68a1e7e712b98af11b5f9a4be3b42044d7d31733cf30d301145da501da95168e1c96518bba6e0f2d525a6929d5fa81f350828158e6db7dad147 SHA512 ab6d9394a55d9a2a347ccae47aeef6a96af70f421ad6ea8f7ac7fde2052790f37fb1c7ec3112daac7600d193430a560cb1915ab6557c9353717f65cb32f13ab8
DIST nuspell-5.1.7.tar.gz 339465 BLAKE2B 653238057e23049834054ae162ed313e4e431d6e7711511e00168d96af74efa473a6181e167afa9005ff28566710d4cee15f8acb0bae0ee508ead99f790f2f09 SHA512 cb030dca90a52000a7cf4ea7f15e10ee90aec59e56e8212f8ba69f37e070f1100390393191cdbbf88b14836f408c8eb2fb9712be3d472491b1c93dd5cedd9a40

View File

@ -0,0 +1,51 @@
# Copyright 1999-2025 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? ( app-text/doxygen 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
}