1 |
commit: f222c6da4f17a2b813aa03e3fcf13d1384425339 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 11 16:25:37 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 11 16:26:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f222c6da |
7 |
|
8 |
Revert "dev-libs/json-c: Drop old" |
9 |
|
10 |
This reverts commit 19b53f00c5cc61d1198cbc805ba5d6ebeffecef6. |
11 |
|
12 |
<dev-libs/json-c-0.13 is still required for net-libs/libhubbub. |
13 |
|
14 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
15 |
|
16 |
dev-libs/json-c/Manifest | 1 + |
17 |
dev-libs/json-c/json-c-0.12.ebuild | 40 ++++++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 41 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/json-c/Manifest b/dev-libs/json-c/Manifest |
21 |
index 358927a4fd1..40602e756dd 100644 |
22 |
--- a/dev-libs/json-c/Manifest |
23 |
+++ b/dev-libs/json-c/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
+DIST json-c-0.12.tar.gz 501419 BLAKE2B 24f035792ff1ba5c39e55bca6ee4ba2509ab71d0374c70b520791f38e1ec4ff2245a282f234fde9f4a02cd9eaaaaa998ce307563a20702c04ee972fdf51f2539 SHA512 c959804362386f6b77e9d04b5fedf6d6aff1fcd0ab50250edb25f759b510b402e7ad4b33d1cbadc3337b63a3145d19f310812a9ee351748348304b384dc2dc35 |
26 |
DIST json-c-0.13.1.tar.gz 639425 BLAKE2B 1da310309f9ce03306a9fd4a161670e460cf0b2222348df7c006902390f74a4cf100aab1ce6ac8a361a278dd917c114a278de5b3445817f3a40ae287478add46 SHA512 e984db2a42b9c95b52c798b2e8dd1b79951a8dcba27370af30c43b9549fbb00008dbcf052a535c528209aaee38e6d1f760168b706905ae72f3e704ed20f8a1a1 |
27 |
|
28 |
diff --git a/dev-libs/json-c/json-c-0.12.ebuild b/dev-libs/json-c/json-c-0.12.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..9074dc52349 |
31 |
--- /dev/null |
32 |
+++ b/dev-libs/json-c/json-c-0.12.ebuild |
33 |
@@ -0,0 +1,40 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=5 |
38 |
+ |
39 |
+AUTOTOOLS_AUTORECONF=true |
40 |
+ |
41 |
+inherit autotools-multilib |
42 |
+ |
43 |
+DESCRIPTION="A JSON implementation in C" |
44 |
+HOMEPAGE="https://github.com/json-c/json-c/wiki" |
45 |
+SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="MIT" |
48 |
+SLOT="0/2" |
49 |
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos" |
50 |
+IUSE="doc static-libs" |
51 |
+ |
52 |
+RDEPEND="" |
53 |
+ |
54 |
+# tests break otherwise |
55 |
+AUTOTOOLS_IN_SOURCE_BUILD=1 |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ sed -i -e "s:-Werror::" Makefile.am.inc || die |
59 |
+ autotools-multilib_src_prepare |
60 |
+} |
61 |
+ |
62 |
+src_test() { |
63 |
+ export USE_VALGRIND=0 VERBOSE=1 |
64 |
+ autotools-multilib_src_test |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ use doc && HTML_DOCS=( "${S}"/doc/html ) |
69 |
+ autotools-multilib_src_install |
70 |
+ |
71 |
+ # add symlink for projects not using pkgconfig |
72 |
+ dosym ../json-c /usr/include/json-c/json |
73 |
+} |