diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-29 21:23:22 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-29 21:23:22 +0100 |
commit | 15a738a098c486b6ec6d624050dd98826f9c2d3f (patch) | |
tree | 7b170748ee082c6db9b27bbc34b34b27e2e9873b /app-text/nuspell/nuspell-5.1.2.ebuild | |
parent | 3a2444aaf0bafd5c58c0dc8dda102352f20c76d8 (diff) |
gentoo auto-resync : 29:09:2022 - 21:23:22
Diffstat (limited to 'app-text/nuspell/nuspell-5.1.2.ebuild')
-rw-r--r-- | app-text/nuspell/nuspell-5.1.2.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-text/nuspell/nuspell-5.1.2.ebuild b/app-text/nuspell/nuspell-5.1.2.ebuild new file mode 100644 index 000000000000..ce8325fe5270 --- /dev/null +++ b/app-text/nuspell/nuspell-5.1.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~riscv ~x86" +IUSE="doc test" + +RDEPEND=">=dev-libs/icu-60" +DEPEND="${RDEPEND} + doc? ( app-text/pandoc ) + test? ( <dev-cpp/catch-3:0 ) + " + +DOCS=( CHANGELOG.md ) + +RESTRICT="!test? ( test )" + +src_prepare() { + rm -R external/Catch2/ || die + if ! use test ; then + rm -R external/hunspell/ || die + fi + cmake_src_prepare +} + +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' + 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 +} |