Diff json-c-0.17 with a json-c-9999

/usr/portage/dev-libs/json-c/json-c-9999.ebuild 2023-10-09 14:52:29.504368350 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit cmake-multilib
6
inherit cmake-multilib git-r3 multibuild
7 7

  
8 8
DESCRIPTION="A JSON implementation in C"
9 9
HOMEPAGE="https://github.com/json-c/json-c/wiki"
10
SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz"
10
EGIT_REPO_URI="https://github.com/json-c/json-c.git"
11 11

  
12 12
LICENSE="MIT"
13 13
SLOT="0/5"
14
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ~ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
15
IUSE="cpu_flags_x86_rdrand static-libs threads"
14
IUSE="cpu_flags_x86_rdrand doc static-libs threads"
15

  
16
BDEPEND="doc? ( >=app-doc/doxygen-1.8.13 )"
16 17

  
17 18
MULTILIB_WRAPPED_HEADERS=(
18 19
	/usr/include/json-c/config.h
......
33 34
	cmake_src_configure
34 35
}
35 36

  
37
multilib_src_compile() {
38
	cmake_src_compile
39
	if use doc && multilib_is_native_abi; then
40
		cmake_build doc
41
	fi
42
}
43

  
36 44
multilib_src_test() {
37 45
	multilib_is_native_abi && cmake_src_test
38 46
}
39 47

  
40
multilib_src_install_all() {
41
	HTML_DOCS=( "${S}"/doc/html/. )
42
	einstalldocs
48
multilib_src_install() {
49
	if multilib_is_native_abi; then
50
		use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
51
		einstalldocs
52
	fi
43 53
}
Thank you!