Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/jsoncpp/
Date: Thu, 06 Sep 2018 22:17:34
Message-Id: 1536272213.3e0718b8d0272391061e33f7d62be571edbefa68.vdupras@gentoo
1 commit: 3e0718b8d0272391061e33f7d62be571edbefa68
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 6 22:16:07 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 6 22:16:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e0718b8
7
8 dev-libs/jsoncpp: revert "Clean old up"
9
10 This reverts commit 2e6b2e58ae27edaf758d116d69314133682abde2.
11
12 It breaks the CI (dev-lang/solidity)
13
14 dev-libs/jsoncpp/Manifest | 1 +
15 dev-libs/jsoncpp/jsoncpp-1.8.1.ebuild | 67 +++++++++++++++++++++++++++++++++++
16 2 files changed, 68 insertions(+)
17
18 diff --git a/dev-libs/jsoncpp/Manifest b/dev-libs/jsoncpp/Manifest
19 index 633c98ce4f2..2af18dd83a0 100644
20 --- a/dev-libs/jsoncpp/Manifest
21 +++ b/dev-libs/jsoncpp/Manifest
22 @@ -1 +1,2 @@
23 +DIST jsoncpp-1.8.1.tar.gz 210629 BLAKE2B 5f9a7f51b463784c5a74a78b7189800a37797f233b1d5a66d34edc0689c77a2b96b230c0ed4dfc749401087c551dd5659a6d152e09342ca92250ce9ea91a293e SHA512 4203826fca4c366b51d28ffc928399c914ffaba8be1cada64ff118b5742e6b469d3fc3e59344587d851447857b479794c5697d4fd11a9a55b32a3a7a801b745b
24 DIST jsoncpp-1.8.4.tar.gz 200226 BLAKE2B bbfa8cf7b6cfa6af34762b54de2da0e919849c65b1093b29f7a7ac437524d8b3cf07b42926b250489e9a289105df971fad798f3e73f908fac3e2f52a4e5467b3 SHA512 f70361a3263dd8b9441374a9a409462be1426c0d6587c865171a80448ab73b3f69de2b4d70d2f0c541764e1e6cccc727dd53178347901f625ec6fb54fb94f4f1
25
26 diff --git a/dev-libs/jsoncpp/jsoncpp-1.8.1.ebuild b/dev-libs/jsoncpp/jsoncpp-1.8.1.ebuild
27 new file mode 100644
28 index 00000000000..603c2d1926b
29 --- /dev/null
30 +++ b/dev-libs/jsoncpp/jsoncpp-1.8.1.ebuild
31 @@ -0,0 +1,67 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python2_7 )
38 +
39 +inherit cmake-utils python-any-r1
40 +
41 +DESCRIPTION="C++ JSON reader and writer"
42 +HOMEPAGE="https://github.com/open-source-parsers/jsoncpp"
43 +SRC_URI="https://github.com/open-source-parsers/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="|| ( public-domain MIT )"
46 +SLOT="0/11"
47 +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86"
48 +IUSE="doc test"
49 +
50 +DEPEND="
51 + doc? (
52 + app-doc/doxygen
53 + ${PYTHON_DEPS}
54 + )
55 + test? (
56 + ${PYTHON_DEPS}
57 + )"
58 +RDEPEND=""
59 +
60 +RESTRICT="!test? ( test )"
61 +
62 +pkg_setup() {
63 + if use doc || use test; then
64 + python-any-r1_pkg_setup
65 + fi
66 +}
67 +
68 +src_configure() {
69 + local mycmakeargs=(
70 + -DJSONCPP_WITH_TESTS=$(usex test)
71 + -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
72 + -DJSONCPP_WITH_CMAKE_PACKAGE=ON
73 +
74 + -DBUILD_SHARED_LIBS=ON
75 + -DBUILD_STATIC_LIBS=OFF
76 +
77 + # Follow Debian, Ubuntu, Arch convention for headers location
78 + # bug #452234
79 + -DCMAKE_INSTALL_INCLUDEDIR=include/jsoncpp
80 +
81 + # Disable implicit ccache use
82 + -DCCACHE_FOUND=OFF
83 + )
84 + cmake-utils_src_configure
85 +}
86 +
87 +src_compile() {
88 + cmake-utils_src_compile
89 +
90 + if use doc; then
91 + "${EPYTHON}" doxybuild.py --doxygen="${EPREFIX}"/usr/bin/doxygen || die
92 + HTML_DOCS=( dist/doxygen/jsoncpp*/. )
93 + fi
94 +}
95 +
96 +src_test() {
97 + cmake-utils_src_make jsoncpp_check
98 +}