1 |
commit: 9753cc23b3a49cb983d6555d2e7fb8ed39712476 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 22 06:09:18 2017 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 22 06:12:38 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9753cc23 |
7 |
|
8 |
dev-libs/json-c: version bump to 0.12.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/611230 |
11 |
|
12 |
dev-libs/json-c/Manifest | 1 + |
13 |
dev-libs/json-c/json-c-0.12.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 ccbad493697..cb5d9beb8f9 100644 |
18 |
--- a/dev-libs/json-c/Manifest |
19 |
+++ b/dev-libs/json-c/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST json-c-0.12.1.tar.gz 535086 SHA256 2a136451a7932d80b7d197b10441e26e39428d67b1443ec43bbba824705e1123 SHA512 038676a0ce815e5174161fbd4339524feadc294d517f732fb408ad6aa7c4906423451c13386107569d9f24746a1a101564ca511e92e8276c5bf5b8c022ca42ed WHIRLPOOL ac558aa3cf661e8a943e2c85a684cbb7a46719de35360a23e9939cefaff32720a55ede5e5c05ea2f7b65aa3128082cc98da9ad5e6685b53ec40726857da7a53a |
22 |
DIST json-c-0.12.tar.gz 501419 SHA256 000c01b2b3f82dcb4261751eb71f1b084404fb7d6a282f06074d3c17078b9f3f SHA512 c959804362386f6b77e9d04b5fedf6d6aff1fcd0ab50250edb25f759b510b402e7ad4b33d1cbadc3337b63a3145d19f310812a9ee351748348304b384dc2dc35 WHIRLPOOL b49f5c96b614302b39737306774b4346d8347afef6ced7067664ac0d68669a1496fe915f229e0d434a87b103ac9982d67c5785eb688b7026c257c7eae95c6eaf |
23 |
|
24 |
diff --git a/dev-libs/json-c/json-c-0.12.1.ebuild b/dev-libs/json-c/json-c-0.12.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..28f5eeea373 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/json-c/json-c-0.12.1.ebuild |
29 |
@@ -0,0 +1,43 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+inherit autotools multilib-minimal ltprune |
36 |
+ |
37 |
+DESCRIPTION="A JSON implementation in C" |
38 |
+HOMEPAGE="https://github.com/json-c/json-c/wiki" |
39 |
+SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="MIT" |
42 |
+SLOT="0/0" |
43 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos" |
44 |
+IUSE="doc static-libs" |
45 |
+ |
46 |
+src_prepare() { |
47 |
+ default |
48 |
+ sed -i -e "s:-Werror::" Makefile.am.inc || die |
49 |
+ eautoreconf |
50 |
+ |
51 |
+ # tests break otherwise |
52 |
+ multilib_copy_sources |
53 |
+} |
54 |
+ |
55 |
+multilib_src_configure() { |
56 |
+ ECONF_SOURCE=${S} econf $(use_enable static-libs static) |
57 |
+} |
58 |
+ |
59 |
+multilib_src_test() { |
60 |
+ export USE_VALGRIND=0 VERBOSE=1 |
61 |
+ default |
62 |
+} |
63 |
+ |
64 |
+multilib_src_install_all() { |
65 |
+ use doc && HTML_DOCS=( "${S}"/doc/html/. ) |
66 |
+ einstalldocs |
67 |
+ |
68 |
+ # add symlink for projects not using pkgconfig |
69 |
+ dosym ../json-c /usr/include/json-c/json |
70 |
+ |
71 |
+ prune_libtool_files |
72 |
+} |