Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/jsoncpp/
Date: Sat, 30 May 2020 07:12:20
Message-Id: 1590822729.b1fd2470b592551f9844ba8ef9c025ce95d918d7.mgorny@gentoo
1 commit: b1fd2470b592551f9844ba8ef9c025ce95d918d7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 30 07:03:32 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 30 07:12:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1fd2470
7
8 dev-libs/jsoncpp: Bump to 1.9.3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-libs/jsoncpp/Manifest | 1 +
13 dev-libs/jsoncpp/jsoncpp-1.9.3.ebuild | 45 +++++++++++++++++++++++++++++++++++
14 2 files changed, 46 insertions(+)
15
16 diff --git a/dev-libs/jsoncpp/Manifest b/dev-libs/jsoncpp/Manifest
17 index 6ad9e4ed080..7199d75d978 100644
18 --- a/dev-libs/jsoncpp/Manifest
19 +++ b/dev-libs/jsoncpp/Manifest
20 @@ -1,2 +1,3 @@
21 DIST jsoncpp-1.9.1.tar.gz 203067 BLAKE2B 654f39b1265b344bb24d3fefb34d4d8b44f69ec819f333f00033ef90acfd5b926fdcc743badf403af797a6f58fe58d195ec0cdf4a1514629f8a1e75c20a6e2f6 SHA512 4a8352e1d32c0ba8a0aea4df1663279cb2256b334643c5b62be37dfb5951e06900ba38c010d1201511fcf7de09137d6a4b886edbb2b99160d2f62b5f4679f766
22 +DIST jsoncpp-1.9.3.tar.gz 212922 BLAKE2B 6f89762e899ffe127705a30c1fe86f458d62fa05b8dbde6c465c73b6855d3945f3d739ff0c26e1a6326a211c946277908684ace9363df72ba0f460f66b3e3fd8 SHA512 f1c035d54ed952d8d4e41acab5c3ecf6aa445f348f98aeac2e7c89555ec2f6421d727b3bc4c2f54176afce137c545b20d886562901953ec091f91890e91e8559
23 DIST jsoncpp-1.9.3_pre20200412.tar.gz 212522 BLAKE2B 17b0cc2ef40ae932c6ff26c0fa77e8326099a1b6f088e53697c2a3c286d23ef63dd372f2ba721025b84670957689251c2d15083bdd24565715a78beac556ead2 SHA512 6e58870c5c478fe2bba125c50c4f77654f304051f4091cc5a98f9a3c9aefbb94d1156eb07ce004a7683675fd971ec825a0828803042d9b03783b1debf3a39e2b
24
25 diff --git a/dev-libs/jsoncpp/jsoncpp-1.9.3.ebuild b/dev-libs/jsoncpp/jsoncpp-1.9.3.ebuild
26 new file mode 100644
27 index 00000000000..36523a5b6ec
28 --- /dev/null
29 +++ b/dev-libs/jsoncpp/jsoncpp-1.9.3.ebuild
30 @@ -0,0 +1,45 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{6..9} )
37 +
38 +inherit meson python-any-r1
39 +
40 +DESCRIPTION="C++ JSON reader and writer"
41 +HOMEPAGE="https://github.com/open-source-parsers/jsoncpp"
42 +SRC_URI="
43 + https://github.com/open-source-parsers/${PN}/archive/v${PV}.tar.gz
44 + -> ${P}.tar.gz"
45 +
46 +LICENSE="|| ( public-domain MIT )"
47 +SLOT="0/24"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
49 +IUSE="doc test"
50 +RESTRICT="!test? ( test )"
51 +
52 +BDEPEND="
53 + ${PYTHON_DEPS}
54 + doc? ( app-doc/doxygen )"
55 +RDEPEND=""
56 +
57 +src_configure() {
58 + local emesonargs=(
59 + # Follow Debian, Ubuntu, Arch convention for headers location
60 + # bug #452234
61 + --includedir include/jsoncpp
62 + -Dtests=$(usex test true false)
63 + )
64 + meson_src_configure
65 +}
66 +
67 +src_compile() {
68 + meson_src_compile
69 +
70 + if use doc; then
71 + echo "${PV}" > version || die
72 + "${EPYTHON}" doxybuild.py --doxygen="${EPREFIX}"/usr/bin/doxygen || die
73 + HTML_DOCS=( dist/doxygen/jsoncpp*/. )
74 + fi
75 +}