Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/json-c/
Date: Tue, 01 May 2018 21:29:27
Message-Id: 1525210158.0eef2be5649b5615ba66761050a92edafdb31f66.monsieurp@gentoo
1 commit: 0eef2be5649b5615ba66761050a92edafdb31f66
2 Author: Michel Boaventura <michel.boaventura <AT> gmail <DOT> com>
3 AuthorDate: Wed Apr 11 02:47:59 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue May 1 21:29:18 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0eef2be5
7
8 dev-libs/json-c: version bump to 0.13.1.
9
10 Closes: https://github.com/gentoo/gentoo/pull/7935
11
12 dev-libs/json-c/Manifest | 1 +
13 dev-libs/json-c/json-c-0.13.1.ebuild | 43 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/dev-libs/json-c/Manifest b/dev-libs/json-c/Manifest
17 index e5d0725bc83..3e21cf157ea 100644
18 --- a/dev-libs/json-c/Manifest
19 +++ b/dev-libs/json-c/Manifest
20 @@ -1,3 +1,4 @@
21 DIST json-c-0.12.1.tar.gz 535086 BLAKE2B 57e1da29b3326ccad07a60aafbe653a33b1bbbc26d184c916deb4d120b81781ad52d9945ee3cf5f44b112d41b274872ca76b94a05c12ccc003faecbed5fa586f SHA512 038676a0ce815e5174161fbd4339524feadc294d517f732fb408ad6aa7c4906423451c13386107569d9f24746a1a101564ca511e92e8276c5bf5b8c022ca42ed
22 DIST json-c-0.12.tar.gz 501419 BLAKE2B 24f035792ff1ba5c39e55bca6ee4ba2509ab71d0374c70b520791f38e1ec4ff2245a282f234fde9f4a02cd9eaaaaa998ce307563a20702c04ee972fdf51f2539 SHA512 c959804362386f6b77e9d04b5fedf6d6aff1fcd0ab50250edb25f759b510b402e7ad4b33d1cbadc3337b63a3145d19f310812a9ee351748348304b384dc2dc35
23 +DIST json-c-0.13.1.tar.gz 639425 BLAKE2B 1da310309f9ce03306a9fd4a161670e460cf0b2222348df7c006902390f74a4cf100aab1ce6ac8a361a278dd917c114a278de5b3445817f3a40ae287478add46 SHA512 e984db2a42b9c95b52c798b2e8dd1b79951a8dcba27370af30c43b9549fbb00008dbcf052a535c528209aaee38e6d1f760168b706905ae72f3e704ed20f8a1a1
24 DIST json-c-0.13.tar.gz 634720 BLAKE2B f83876921f94fca1eb0a3473315d4dc75bb52e36499b265dd60e9dfa46d5417a958725aa3a6da3aa50f2a64f2cd5308af2685ca18bb3f5becd464fc570313735 SHA512 7375e1678e40f79298226d070db4ac3dab8a94c9d2438db1bbbcf668284ab30236fc77d841207c25f71cc2cebc596e1b8116d480434d829c8d96007a32ddf636
25
26 diff --git a/dev-libs/json-c/json-c-0.13.1.ebuild b/dev-libs/json-c/json-c-0.13.1.ebuild
27 new file mode 100644
28 index 00000000000..9908d135cd2
29 --- /dev/null
30 +++ b/dev-libs/json-c/json-c-0.13.1.ebuild
31 @@ -0,0 +1,43 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit autotools multilib-minimal ltprune
38 +
39 +DESCRIPTION="A JSON implementation in C"
40 +HOMEPAGE="https://github.com/json-c/json-c/wiki"
41 +SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz"
42 +
43 +LICENSE="MIT"
44 +SLOT="0/3"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
46 +IUSE="doc static-libs"
47 +
48 +src_prepare() {
49 + default
50 + sed -i -e "s:-Werror::" configure.ac || die
51 + eautoreconf
52 +
53 + # tests break otherwise
54 + multilib_copy_sources
55 +}
56 +
57 +multilib_src_configure() {
58 + ECONF_SOURCE=${S} econf $(use_enable static-libs static)
59 +}
60 +
61 +multilib_src_test() {
62 + export USE_VALGRIND=0 VERBOSE=1
63 + default
64 +}
65 +
66 +multilib_src_install_all() {
67 + use doc && HTML_DOCS=( "${S}"/doc/html/. )
68 + einstalldocs
69 +
70 + # add symlink for projects not using pkgconfig
71 + dosym ../json-c /usr/include/json-c/json
72 +
73 + prune_libtool_files
74 +}