1 |
commit: 8f0f8e145c8d9f2cf52725ecc1d7b7a4f3977239 |
2 |
Author: Anssi Jaatinen <hofnarr <AT> hofnarr <DOT> fi> |
3 |
AuthorDate: Fri May 8 06:58:30 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 12 13:57:13 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f0f8e14 |
7 |
|
8 |
dev-libs/json-c: add live ebuild |
9 |
|
10 |
Signed-off-by: Anssi Jaatinen <hofnarr <AT> hofnarr.fi> |
11 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
12 |
Signed-off-by: Luka Perkov <luka.perkov <AT> sartura.hr> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/15586 |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
dev-libs/json-c/json-c-9999.ebuild | 47 ++++++++++++++++++++++++++++++++++++++ |
17 |
1 file changed, 47 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/json-c/json-c-9999.ebuild b/dev-libs/json-c/json-c-9999.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..eac441be4e7 |
22 |
--- /dev/null |
23 |
+++ b/dev-libs/json-c/json-c-9999.ebuild |
24 |
@@ -0,0 +1,47 @@ |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI="7" |
29 |
+ |
30 |
+CMAKE_ECLASS=cmake |
31 |
+inherit cmake-multilib git-r3 |
32 |
+ |
33 |
+DESCRIPTION="A JSON implementation in C" |
34 |
+HOMEPAGE="https://github.com/json-c/json-c/wiki" |
35 |
+EGIT_REPO_URI="https://github.com/json-c/json-c.git" |
36 |
+ |
37 |
+LICENSE="MIT" |
38 |
+SLOT="0/5" |
39 |
+IUSE="doc static-libs threads" |
40 |
+ |
41 |
+MULTILIB_WRAPPED_HEADERS=( |
42 |
+ /usr/include/json-c/config.h |
43 |
+) |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ cmake_src_prepare |
47 |
+} |
48 |
+ |
49 |
+multilib_src_configure() { |
50 |
+ local mycmakeargs=( |
51 |
+ -DBUILD_DOCUMENTATION=$(multilib_native_usex doc) |
52 |
+ -DDISABLE_WERROR=ON |
53 |
+ -DENABLE_THREADING=$(usex threads) |
54 |
+ -DBUILD_STATIC_LIBS=$(usex static-libs) |
55 |
+ ) |
56 |
+ |
57 |
+ cmake_src_configure |
58 |
+} |
59 |
+ |
60 |
+multilib_src_compile() { |
61 |
+ cmake_src_compile |
62 |
+} |
63 |
+ |
64 |
+multilib_src_test() { |
65 |
+ multilib_is_native_abi && cmake_src_test |
66 |
+} |
67 |
+ |
68 |
+multilib_src_install_all() { |
69 |
+ use doc && HTML_DOCS=( "${S}"/doc/html/. ) |
70 |
+ einstalldocs |
71 |
+} |