1 |
commit: 962d55e3c6489f692ca2a0c5cd1ea37df8a8a755 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 2 21:30:51 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 21:30:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=962d55e3 |
7 |
|
8 |
dev-cpp/nlohmann_json: Minor style clean up |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
dev-cpp/nlohmann_json/nlohmann_json-3.9.1.ebuild | 27 ++++++++++-------------- |
14 |
1 file changed, 11 insertions(+), 16 deletions(-) |
15 |
|
16 |
diff --git a/dev-cpp/nlohmann_json/nlohmann_json-3.9.1.ebuild b/dev-cpp/nlohmann_json/nlohmann_json-3.9.1.ebuild |
17 |
index dda1074ac3b..9e63f828a37 100644 |
18 |
--- a/dev-cpp/nlohmann_json/nlohmann_json-3.9.1.ebuild |
19 |
+++ b/dev-cpp/nlohmann_json/nlohmann_json-3.9.1.ebuild |
20 |
@@ -7,8 +7,9 @@ inherit cmake |
21 |
|
22 |
DESCRIPTION="JSON for Modern C++" |
23 |
HOMEPAGE="https://github.com/nlohmann/json https://nlohmann.github.io/json/" |
24 |
-SRC_URI="https://github.com/nlohmann/json/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
25 |
-SRC_URI+=" test? ( https://github.com/nlohmann/json_test_data/archive/v3.0.0.tar.gz -> ${P}-testdata.tar.gz )" |
26 |
+SRC_URI=" |
27 |
+ https://github.com/nlohmann/json/archive/v${PV}.tar.gz -> ${P}.tar.gz |
28 |
+ test? ( https://github.com/nlohmann/json_test_data/archive/v3.0.0.tar.gz -> ${P}-testdata.tar.gz )" |
29 |
S="${WORKDIR}/json-${PV}" |
30 |
|
31 |
LICENSE="MIT" |
32 |
@@ -20,7 +21,7 @@ IUSE="doc test" |
33 |
# Tests only just added, large test suite, majority pass |
34 |
RESTRICT="test" |
35 |
|
36 |
-DEPEND="doc? ( app-doc/doxygen )" |
37 |
+BDEPEND="doc? ( app-doc/doxygen )" |
38 |
|
39 |
DOCS=( ChangeLog.md README.md ) |
40 |
|
41 |
@@ -31,20 +32,19 @@ src_configure() { |
42 |
-DJSON_BuildTests=$(usex test) |
43 |
) |
44 |
|
45 |
- if use test ; then |
46 |
- # Define test data directory here to avoid unused var QA warning |
47 |
- # #747826 |
48 |
- mycmakeargs+=( |
49 |
- -DJSON_TestDataDirectory="${S}/json_test_data" |
50 |
- ) |
51 |
- fi |
52 |
+ # Define test data directory here to avoid unused var QA warning, bug #747826 |
53 |
+ use test && mycmakeargs+=( -DJSON_TestDataDirectory="${S}"/json_test_data ) |
54 |
|
55 |
cmake_src_configure |
56 |
} |
57 |
|
58 |
src_compile() { |
59 |
cmake_src_compile |
60 |
- use doc && emake -C doc |
61 |
+ |
62 |
+ if use doc; then |
63 |
+ emake -C doc |
64 |
+ HTML_DOCS=( doc/html/. ) |
65 |
+ fi |
66 |
} |
67 |
|
68 |
src_test() { |
69 |
@@ -58,8 +58,3 @@ src_test() { |
70 |
|
71 |
cmake_src_test |
72 |
} |
73 |
- |
74 |
-src_install() { |
75 |
- cmake_src_install |
76 |
- use doc && dodoc -r doc/html |
77 |
-} |