1 |
commit: e2b54d1107b3c0d4d38feaab3fa37ff7879bf9af |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 3 11:36:12 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 3 12:07:14 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2b54d11 |
7 |
|
8 |
dev-libs/jsoncpp: Version bump to 1.7.5 (minor fixes) |
9 |
|
10 |
dev-libs/jsoncpp/Manifest | 1 + |
11 |
dev-libs/jsoncpp/jsoncpp-1.7.5.ebuild | 74 +++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 75 insertions(+) |
13 |
|
14 |
diff --git a/dev-libs/jsoncpp/Manifest b/dev-libs/jsoncpp/Manifest |
15 |
index 4a319f0..30610e6 100644 |
16 |
--- a/dev-libs/jsoncpp/Manifest |
17 |
+++ b/dev-libs/jsoncpp/Manifest |
18 |
@@ -3,3 +3,4 @@ DIST jsoncpp-0.10.6.tar.gz 200213 SHA256 7c285fc40ad0c113e436a1271c4e38b5017b5c7 |
19 |
DIST jsoncpp-1.6.5.tar.gz 200507 SHA256 a2b121eaff56ec88cfd034d17685821a908d0d87bc319329b04f91a6552c1ac2 SHA512 589153d525ffde15e10f1ef6907c6b5d0f62a41c8cebdc12fe2bc4d989bcd861cdac79526de2f51872c0a17e574bf0fd8c913f0aa301c184efa1e3f2fb2b1955 WHIRLPOOL a1253362a0bdd8a6d05e84fb7d7de5b79aec0cadf5a03a8c2be8a6e8062e6ae231e5b97cd99ee9607c2c546afa58dabb183167c6a74b409d32485b45c7d3e9ae |
20 |
DIST jsoncpp-1.7.2.tar.gz 205391 SHA256 2179a7df19c1c6dc87e02c65b847efc914625a9b87df3e443d9610fc70c0f557 SHA512 32702147229ea7a3679654325572c38f4188f258ab6ac21f9e04059d53ef2a7cd0542ec4ec3b0e7b9089acd2b7bce389f16b9ff24b2e63e0ba2a5bcd46bab766 WHIRLPOOL a4c71f4c8cd6468f8326120bd106b50c563ab1b7a10df4874d96dd2c03f115645f1016c4e2e52f8056f58f7a40bd6bfc2a75e6aca896bdf98652b1052fde1fd8 |
21 |
DIST jsoncpp-1.7.4.tar.gz 205752 SHA256 10dcd0677e80727e572a1e462193e51a5fde3e023b99e144b2ee1a469835f769 SHA512 e674f6f885e2aa7258d3d3d7a14ef148b5182fd883a527b3b9d75334e778142a833bbb295796af503573b9745f889b8bc496a0b2e11dce1b9cc7f079ac538bf7 WHIRLPOOL 510915e507235d2e89d0f8097336c7910af161c2f9b39eb034be429441e457db4d5d01b8e87342654a68cf5fecdfe584ff1d1ba23fabc58012d80a9bb78e4819 |
22 |
+DIST jsoncpp-1.7.5.tar.gz 205989 SHA256 4338c6cab8af8dee6cdfd54e6218bd0533785f552c6162bb083f8dd28bf8fbbe SHA512 c8217e390d4b15e046a6f14ad54257ac8ecc13b70073a15c502b451df25c6d8bbc645ee50bb12e67433bf2c9053e2a39544d465c19124c7b882b69dd80b70ab2 WHIRLPOOL 312522ed7d8c03a50406f6a93355fab341022ef433b553f50d6d2b9e052c645361a4cea0771f1a16189921a15d025d35f0a6a5ff251d18a9ec48faa90084bb87 |
23 |
|
24 |
diff --git a/dev-libs/jsoncpp/jsoncpp-1.7.5.ebuild b/dev-libs/jsoncpp/jsoncpp-1.7.5.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..8f24a36 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/jsoncpp/jsoncpp-1.7.5.ebuild |
29 |
@@ -0,0 +1,74 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=6 |
35 |
+PYTHON_COMPAT=( python2_7 ) |
36 |
+ |
37 |
+inherit cmake-utils python-any-r1 |
38 |
+ |
39 |
+DESCRIPTION="C++ JSON reader and writer" |
40 |
+HOMEPAGE="https://github.com/open-source-parsers/jsoncpp" |
41 |
+SRC_URI="https://github.com/open-source-parsers/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="|| ( public-domain MIT )" |
44 |
+SLOT="0/1" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
46 |
+IUSE="doc test" |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ doc? ( |
50 |
+ app-doc/doxygen |
51 |
+ ${PYTHON_DEPS} |
52 |
+ ) |
53 |
+ test? ( |
54 |
+ ${PYTHON_DEPS} |
55 |
+ )" |
56 |
+RDEPEND="" |
57 |
+ |
58 |
+RESTRICT="!test? ( test )" |
59 |
+ |
60 |
+pkg_setup() { |
61 |
+ if use doc || use test; then |
62 |
+ python-any-r1_pkg_setup |
63 |
+ fi |
64 |
+} |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local mycmakeargs=( |
68 |
+ -DJSONCPP_WITH_TESTS=$(usex test) |
69 |
+ -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF |
70 |
+ -DJSONCPP_WITH_CMAKE_PACKAGE=ON |
71 |
+ |
72 |
+ -DBUILD_SHARED_LIBS=ON |
73 |
+ -DBUILD_STATIC_LIBS=OFF |
74 |
+ # Follow Debian, Ubuntu, Arch convention for headers location |
75 |
+ # bug #452234 |
76 |
+ -DINCLUDE_INSTALL_DIR="${EPREFIX}"/usr/include/jsoncpp |
77 |
+ # Disable implicit ccache use |
78 |
+ -DCCACHE_FOUND=OFF |
79 |
+ ) |
80 |
+ |
81 |
+ cmake-utils_src_configure |
82 |
+} |
83 |
+ |
84 |
+src_compile() { |
85 |
+ cmake-utils_src_compile |
86 |
+ |
87 |
+ if use doc; then |
88 |
+ "${EPYTHON}" doxybuild.py --doxygen=/usr/bin/doxygen || die |
89 |
+ fi |
90 |
+} |
91 |
+ |
92 |
+src_test() { |
93 |
+ emake -C "${BUILD_DIR}" jsoncpp_check |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ cmake-utils_src_install |
98 |
+ |
99 |
+ if use doc; then |
100 |
+ docinto html |
101 |
+ dodoc -r dist/doxygen/jsoncpp*/. |
102 |
+ fi |
103 |
+} |