1 |
commit: a87af8d202297948dc1f6a0e27abc8c33eca7363 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 6 17:55:26 2020 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 6 17:56:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a87af8d2 |
7 |
|
8 |
app-text/nuspell: Improve integration of tests |
9 |
|
10 |
Upstream: https://github.com/nuspell/nuspell/issues/51#issuecomment-583019563 |
11 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
13 |
|
14 |
app-text/nuspell/nuspell-3.0.0.ebuild | 14 ++++++++++++-- |
15 |
1 file changed, 12 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/app-text/nuspell/nuspell-3.0.0.ebuild b/app-text/nuspell/nuspell-3.0.0.ebuild |
18 |
index b5874aeda40..911f390e6d2 100644 |
19 |
--- a/app-text/nuspell/nuspell-3.0.0.ebuild |
20 |
+++ b/app-text/nuspell/nuspell-3.0.0.ebuild |
21 |
@@ -9,10 +9,10 @@ DESCRIPTION="Spell checker library and CLI for complex natural languages" |
22 |
HOMEPAGE="https://nuspell.github.io/ https://github.com/nuspell/nuspell" |
23 |
SRC_URI="https://github.com/nuspell/nuspell/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
24 |
|
25 |
-LICENSE="|| ( MPL-1.1 GPL-2+ LGPL-2.1+ ) LGPL-3+" |
26 |
+LICENSE="test? ( || ( MPL-1.1 GPL-2+ LGPL-2.1+ ) ) LGPL-3+" |
27 |
SLOT="0/3" # due to libnuspell.so.3 |
28 |
KEYWORDS="~amd64 ~x86" |
29 |
-IUSE="doc" |
30 |
+IUSE="doc test" |
31 |
|
32 |
RDEPEND="dev-libs/icu" |
33 |
DEPEND="${RDEPEND} |
34 |
@@ -21,6 +21,16 @@ DEPEND="${RDEPEND} |
35 |
|
36 |
DOCS=( CHANGELOG.md ) |
37 |
|
38 |
+RESTRICT="!test? ( test )" |
39 |
+ |
40 |
+src_configure() { |
41 |
+ local mycmakeargs=( |
42 |
+ -DBUILD_TESTING=$(usex test) |
43 |
+ ) |
44 |
+ |
45 |
+ cmake_src_configure |
46 |
+} |
47 |
+ |
48 |
pkg_postinst() { |
49 |
einfo |
50 |
einfo 'Nuspell needs language packs and/or dictionaries to be of use' |