Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 720742
Collapse All | Expand All

(-)a/dev-libs/json-c/json-c-9999.ebuild (-1 / +47 lines)
Line 0 Link Here
0
- 
1
# Copyright 1999-2020 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI="7"
5
6
CMAKE_ECLASS=cmake
7
inherit cmake-multilib git-r3
8
9
DESCRIPTION="A JSON implementation in C"
10
HOMEPAGE="https://github.com/json-c/json-c/wiki"
11
EGIT_REPO_URI="https://github.com/json-c/json-c.git"
12
13
LICENSE="MIT"
14
SLOT="0/5"
15
IUSE="doc static-libs threads"
16
17
MULTILIB_WRAPPED_HEADERS=(
18
	/usr/include/json-c/config.h
19
)
20
21
src_prepare() {
22
	cmake_src_prepare
23
}
24
25
multilib_src_configure() {
26
	local mycmakeargs=(
27
		-DBUILD_DOCUMENTATION=$(multilib_native_usex doc)
28
		-DDISABLE_WERROR=ON
29
		-DENABLE_THREADING=$(usex threads)
30
		-DBUILD_STATIC_LIBS=$(usex static-libs)
31
	)
32
33
	cmake_src_configure
34
}
35
36
multilib_src_compile() {
37
	cmake_src_compile
38
}
39
40
multilib_src_test() {
41
	multilib_is_native_abi && cmake_src_test
42
}
43
44
multilib_src_install_all() {
45
	use doc && HTML_DOCS=( "${S}"/doc/html/. )
46
	einstalldocs
47
}

Return to bug 720742