From 623ee73d661e5ed8475cb264511f683407d87365 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 12 Apr 2020 03:41:30 +0100 Subject: gentoo Easter resync : 12.04.2020 --- app-text/nuspell/nuspell-3.1.0.ebuild | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 app-text/nuspell/nuspell-3.1.0.ebuild (limited to 'app-text/nuspell/nuspell-3.1.0.ebuild') diff --git a/app-text/nuspell/nuspell-3.1.0.ebuild b/app-text/nuspell/nuspell-3.1.0.ebuild new file mode 100644 index 000000000000..84d7b5101d04 --- /dev/null +++ b/app-text/nuspell/nuspell-3.1.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 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="test? ( || ( MPL-1.1 GPL-2+ LGPL-2.1+ ) ) LGPL-3+" +SLOT="0/3" # due to libnuspell.so.3 +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND="dev-libs/icu" +DEPEND="${RDEPEND} + doc? ( app-text/ronn ) + test? ( >=dev-cpp/catch-2.3.0:0 ) + >=dev-libs/boost-1.62[icu]" + +DOCS=( CHANGELOG.md ) + +RESTRICT="!test? ( test )" + +src_prepare() { + rm -R external || die + 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 . Good luck!' + einfo +} -- cgit v1.2.3