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: Sat, 29 Dec 2018 21:04:28
Message-Id: 1546117147.a14e62c7082d739a51c160a78201ab20a65a5c02.radhermit@gentoo
1 commit: a14e62c7082d739a51c160a78201ab20a65a5c02
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 29 20:47:36 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 29 20:59:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a14e62c7
7
8 dev-cpp/nlohmann_json: initial import
9
10 Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
11
12 dev-cpp/nlohmann_json/Manifest | 1 +
13 dev-cpp/nlohmann_json/metadata.xml | 11 ++++++++
14 dev-cpp/nlohmann_json/nlohmann_json-3.5.0.ebuild | 35 ++++++++++++++++++++++++
15 3 files changed, 47 insertions(+)
16
17 diff --git a/dev-cpp/nlohmann_json/Manifest b/dev-cpp/nlohmann_json/Manifest
18 new file mode 100644
19 index 00000000000..e4b3cb520a1
20 --- /dev/null
21 +++ b/dev-cpp/nlohmann_json/Manifest
22 @@ -0,0 +1 @@
23 +DIST nlohmann_json-3.5.0.tar.gz 114796008 BLAKE2B 94caa0374be1d38230cb13b8cd9deb3da04e4b81d361ce6baf54c1bad231945a94df74683a31660dc98413dbf23ea7596c6ed1da9cda9e02add7d7c6568973e3 SHA512 e2874e10e12070e8e1b9c01f41ce24002a3859c4aca8bf46083ea08e68f44ed6725bdcdf8e592b1e50d69975d506836c62a8e10fc6da00f0844c149dd6676996
24
25 diff --git a/dev-cpp/nlohmann_json/metadata.xml b/dev-cpp/nlohmann_json/metadata.xml
26 new file mode 100644
27 index 00000000000..eb8bff7e381
28 --- /dev/null
29 +++ b/dev-cpp/nlohmann_json/metadata.xml
30 @@ -0,0 +1,11 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="project">
35 + <email>media-video@g.o</email>
36 + <name>Gentoo Video project</name>
37 + </maintainer>
38 + <upstream>
39 + <remote-id type="github">nlohmann/json</remote-id>
40 + </upstream>
41 +</pkgmetadata>
42
43 diff --git a/dev-cpp/nlohmann_json/nlohmann_json-3.5.0.ebuild b/dev-cpp/nlohmann_json/nlohmann_json-3.5.0.ebuild
44 new file mode 100644
45 index 00000000000..56411b04237
46 --- /dev/null
47 +++ b/dev-cpp/nlohmann_json/nlohmann_json-3.5.0.ebuild
48 @@ -0,0 +1,35 @@
49 +# Copyright 1999-2018 Gentoo Authors
50 +# Distributed under the terms of the GNU General Public License v2
51 +
52 +EAPI=7
53 +
54 +inherit meson
55 +
56 +DESCRIPTION="JSON for Modern C++"
57 +HOMEPAGE="https://github.com/nlohmann/json https://nlohmann.github.io/json/"
58 +SRC_URI="https://github.com/nlohmann/json/archive/v${PV}.tar.gz -> ${P}.tar.gz"
59 +
60 +LICENSE="MIT"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~x86"
63 +IUSE="doc"
64 +
65 +DEPEND="doc? ( app-doc/doxygen )"
66 +
67 +DOCS=( ChangeLog.md README.md )
68 +
69 +S=${WORKDIR}/json-${PV}
70 +
71 +src_compile() {
72 + meson_src_compile
73 + use doc && emake -C doc
74 +}
75 +
76 +src_test() {
77 + emake check
78 +}
79 +
80 +src_install() {
81 + meson_src_install
82 + use doc && dodoc -r doc/html
83 +}