Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/nlohmann_json/
Date: Fri, 28 Jun 2019 23:26:15
Message-Id: 1561764288.0682016ae2e1edbdfa11c73ce44cd0f981a91a0e.radhermit@gentoo
1 commit: 0682016ae2e1edbdfa11c73ce44cd0f981a91a0e
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 28 23:21:41 2019 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 28 23:24:48 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0682016a
7
8 dev-cpp/nlohmann_json: install non-amalgamated headers
9
10 Also, use cmake for building instead of meson.
11
12 Closes: https://bugs.gentoo.org/684280
13
14 Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
15
16 .../nlohmann_json/nlohmann_json-3.6.1-r1.ebuild | 44 ++++++++++++++++++++++
17 1 file changed, 44 insertions(+)
18
19 diff --git a/dev-cpp/nlohmann_json/nlohmann_json-3.6.1-r1.ebuild b/dev-cpp/nlohmann_json/nlohmann_json-3.6.1-r1.ebuild
20 new file mode 100644
21 index 00000000000..13acfc9d9c8
22 --- /dev/null
23 +++ b/dev-cpp/nlohmann_json/nlohmann_json-3.6.1-r1.ebuild
24 @@ -0,0 +1,44 @@
25 +# Copyright 1999-2019 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +inherit cmake-utils
31 +
32 +DESCRIPTION="JSON for Modern C++"
33 +HOMEPAGE="https://github.com/nlohmann/json https://nlohmann.github.io/json/"
34 +SRC_URI="https://github.com/nlohmann/json/archive/v${PV}.tar.gz -> ${P}.tar.gz"
35 +
36 +LICENSE="MIT"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
39 +IUSE="doc test"
40 +
41 +DEPEND="doc? ( app-doc/doxygen )"
42 +
43 +DOCS=( ChangeLog.md README.md )
44 +
45 +S=${WORKDIR}/json-${PV}
46 +
47 +src_configure() {
48 + local mycmakeargs=(
49 + -DJSON_BuildTests=$(usex test)
50 + -DJSON_MultipleHeaders=ON
51 + )
52 +
53 + cmake-utils_src_configure
54 +}
55 +
56 +src_compile() {
57 + cmake-utils_src_compile
58 + use doc && emake -C doc
59 +}
60 +
61 +src_test() {
62 + emake check
63 +}
64 +
65 +src_install() {
66 + cmake-utils_src_install
67 + use doc && dodoc -r doc/html
68 +}