1 |
commit: 39c3c7982fb3768bf4f6a22f59f0282fb602d141 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 9 18:21:06 2022 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 9 18:22:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39c3c798 |
7 |
|
8 |
app-text/nuspell: 5.1.1 |
9 |
|
10 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
|
13 |
app-text/nuspell/Manifest | 1 + |
14 |
app-text/nuspell/nuspell-5.1.1.ebuild | 51 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 52 insertions(+) |
16 |
|
17 |
diff --git a/app-text/nuspell/Manifest b/app-text/nuspell/Manifest |
18 |
index a9821cff84af..b1cc477667ed 100644 |
19 |
--- a/app-text/nuspell/Manifest |
20 |
+++ b/app-text/nuspell/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST nuspell-5.1.0.tar.gz 370368 BLAKE2B 67338fe79ddb98267e0c1efc575e47fc1a8f894cd09b6ada6c6a3f5e89b02fe3a81686b1ff1af73e28fd86437d0f115e04fd5f5aea1954c3da4414f25325ec46 SHA512 08ce776d224c66ba4bdd8cb22943741f30e8e5ba03396bfef1db598321c9b0f8814dacffcb52287b3b669426c7b08e2c1a40323341a9ff9768a7187002e1d77a |
23 |
+DIST nuspell-5.1.1.tar.gz 370879 BLAKE2B b02126a00f266b0a4a2271a530ee1aeac3c42d8b0474b5e2f12afa401f9ecfdb37e2bb2a759e74e522679e850622d34f86a4d66e4f7d6572285de06803ec75d6 SHA512 c33a52e3603071d3281b7cdcfa42776cd7ecb998292939538e53e364cfff63227cf094cd88ee6072b8a857f5d85c984c359a16b480dd462dac9cfd602cfd6c2c |
24 |
|
25 |
diff --git a/app-text/nuspell/nuspell-5.1.1.ebuild b/app-text/nuspell/nuspell-5.1.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..ce8325fe5270 |
28 |
--- /dev/null |
29 |
+++ b/app-text/nuspell/nuspell-5.1.1.ebuild |
30 |
@@ -0,0 +1,51 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit cmake |
37 |
+ |
38 |
+DESCRIPTION="Spell checker library and CLI for complex natural languages" |
39 |
+HOMEPAGE="https://nuspell.github.io/ https://github.com/nuspell/nuspell" |
40 |
+SRC_URI="https://github.com/nuspell/nuspell/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="LGPL-3+" |
43 |
+SLOT="0/5" # due to libnuspell.so.5 |
44 |
+KEYWORDS="~amd64 ~riscv ~x86" |
45 |
+IUSE="doc test" |
46 |
+ |
47 |
+RDEPEND=">=dev-libs/icu-60" |
48 |
+DEPEND="${RDEPEND} |
49 |
+ doc? ( app-text/pandoc ) |
50 |
+ test? ( <dev-cpp/catch-3:0 ) |
51 |
+ " |
52 |
+ |
53 |
+DOCS=( CHANGELOG.md ) |
54 |
+ |
55 |
+RESTRICT="!test? ( test )" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ rm -R external/Catch2/ || die |
59 |
+ if ! use test ; then |
60 |
+ rm -R external/hunspell/ || die |
61 |
+ fi |
62 |
+ cmake_src_prepare |
63 |
+} |
64 |
+ |
65 |
+src_configure() { |
66 |
+ local mycmakeargs=( |
67 |
+ -DBUILD_TESTING=$(usex test) |
68 |
+ ) |
69 |
+ |
70 |
+ cmake_src_configure |
71 |
+} |
72 |
+ |
73 |
+pkg_postinst() { |
74 |
+ einfo |
75 |
+ einfo 'Nuspell needs language packs and/or dictionaries to be of use' |
76 |
+ einfo 'e.g. package app-dicts/myspell-en or one of its siblings.' |
77 |
+ einfo |
78 |
+ einfo 'Besides MySpell dictionaries, for other options please' |
79 |
+ einfo 'see https://nuspell.github.io/#languages-and-users .' |
80 |
+ einfo |
81 |
+} |