1 |
commit: 4e052834b275d58a120045487692c74e3d094385 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 2 12:51:21 2020 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 2 12:53:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e052834 |
7 |
|
8 |
app-text/nuspell: 4.0.1 |
9 |
|
10 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
11 |
Package-Manager: Portage-3.0.0, Repoman-2.3.23 |
12 |
|
13 |
app-text/nuspell/Manifest | 1 + |
14 |
app-text/nuspell/nuspell-4.0.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 a1804fdba0c..3510812e1b3 100644 |
19 |
--- a/app-text/nuspell/Manifest |
20 |
+++ b/app-text/nuspell/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST nuspell-3.1.2.tar.gz 379029 BLAKE2B 80f773ffdcbfbeee0dd13cd325bb4fec5efa5b54ece92ac1589c418aab46c925419e9e1bc7e257a8320e24399f49bb867600679e34a5e40070b01a660578c92c SHA512 ed5206cb9ffa7e4ec6843988a75627d4ae7d5170444b6e7bd3496c1bf61c25412c4e68864800f2ad238d014b4e50d25282f367de2900f8a230f3ecc9ae5772be |
23 |
DIST nuspell-4.0.0.tar.gz 379136 BLAKE2B 90aebe8318cd28240dfb7c1b034b2c045ac208c6d25344a3f2fc2f1a38995a1d6f81e70399c644c70255fbbb30f61e340808d1a71dfccab1726f89b742cf7b65 SHA512 2b08e30c4ac91a243c74f21eaf4a8d55d8b1c834e0f293fea76a9f02660f2ee89fe4d4071b1b9ed97b8c1db80b0645c71f8746738d97fc3ae779a65dc1583d3b |
24 |
+DIST nuspell-4.0.1.tar.gz 379342 BLAKE2B be52797ddd737c523a6141fc1c2683690cfcd1aa09e6548d7eed593ab023d2b45d3538f2a9964a7c2b4abc6506c67058cdc2479ec12ae5438ffe9faa00f0680c SHA512 122616fd24c2de35000ba12d680d3617e7fe97881d33febbcb106ce70d3bac356a00d90680a1bc8ee631ed532ace0f4b4f9fce4760a25b0f7fc1d60553e74528 |
25 |
|
26 |
diff --git a/app-text/nuspell/nuspell-4.0.1.ebuild b/app-text/nuspell/nuspell-4.0.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..eae5d180a1b |
29 |
--- /dev/null |
30 |
+++ b/app-text/nuspell/nuspell-4.0.1.ebuild |
31 |
@@ -0,0 +1,51 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit cmake |
38 |
+ |
39 |
+DESCRIPTION="Spell checker library and CLI for complex natural languages" |
40 |
+HOMEPAGE="https://nuspell.github.io/ https://github.com/nuspell/nuspell" |
41 |
+SRC_URI="https://github.com/nuspell/nuspell/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="LGPL-3+" |
44 |
+SLOT="0/4" # due to libnuspell.so.4 |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="doc test" |
47 |
+ |
48 |
+RDEPEND="dev-libs/icu" |
49 |
+DEPEND="${RDEPEND} |
50 |
+ doc? ( app-text/pandoc ) |
51 |
+ test? ( >=dev-cpp/catch-2.3.0:0 ) |
52 |
+ >=dev-libs/boost-1.62[icu]" |
53 |
+ |
54 |
+DOCS=( CHANGELOG.md ) |
55 |
+ |
56 |
+RESTRICT="!test? ( test )" |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ rm -R external/Catch2/ || die |
60 |
+ if ! use test ; then |
61 |
+ rm -R external/hunspell/ || die |
62 |
+ fi |
63 |
+ cmake_src_prepare |
64 |
+} |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local mycmakeargs=( |
68 |
+ -DBUILD_TESTING=$(usex test) |
69 |
+ ) |
70 |
+ |
71 |
+ cmake_src_configure |
72 |
+} |
73 |
+ |
74 |
+pkg_postinst() { |
75 |
+ einfo |
76 |
+ einfo 'Nuspell needs language packs and/or dictionaries to be of use' |
77 |
+ einfo 'e.g. package app-dicts/myspell-en or one of its siblings.' |
78 |
+ einfo |
79 |
+ einfo 'Besides MySpell dictionaries, for other options please' |
80 |
+ einfo 'see https://nuspell.github.io/#languages-and-users .' |
81 |
+ einfo |
82 |
+} |