Diff json-c-0.17 with a json-c-9999
/usr/portage/dev-libs/json-c/json-c-9999.ebuild 2024-12-25 14:59:48.363270071 +0300 | ||
---|---|---|
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 | ||
11 |
if [[ ${PV} == 9999 ]] ; then |
|
12 |
EGIT_REPO_URI="https://github.com/json-c/json-c.git" |
|
13 |
inherit git-r3 |
|
14 |
else |
|
15 |
SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz" |
|
16 | ||
17 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
|
18 |
fi |
|
11 | 19 | |
12 | 20 |
LICENSE="MIT" |
13 |
SLOT="0/5" |
|
14 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" |
|
15 |
IUSE="cpu_flags_x86_rdrand static-libs threads" |
|
21 |
# .1 is a fudge factor for 0.18 fixing compat w/ 0.16, drop on next |
|
22 |
# SONAME change. |
|
23 |
SLOT="0/5.1" |
|
24 |
IUSE="cpu_flags_x86_rdrand doc static-libs threads" |
|
25 | ||
26 |
BDEPEND="doc? ( >=app-text/doxygen-1.8.13 )" |
|
16 | 27 | |
17 | 28 |
MULTILIB_WRAPPED_HEADERS=( |
18 | 29 |
/usr/include/json-c/config.h |
... | ... | |
36 | 47 |
cmake_src_configure |
37 | 48 |
} |
38 | 49 | |
50 |
multilib_src_compile() { |
|
51 |
cmake_src_compile |
|
52 |
if use doc && multilib_is_native_abi; then |
|
53 |
cmake_build doc |
|
54 |
fi |
|
55 |
} |
|
56 | ||
39 | 57 |
multilib_src_test() { |
40 | 58 |
multilib_is_native_abi && cmake_src_test |
41 | 59 |
} |
42 | 60 | |
43 |
multilib_src_install_all() { |
|
44 |
HTML_DOCS=( "${S}"/doc/html/. ) |
|
45 |
einstalldocs |
|
61 |
multilib_src_install() { |
|
62 |
cmake_src_install |
|
63 | ||
64 |
if multilib_is_native_abi; then |
|
65 |
use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) |
|
66 |
einstalldocs |
|
67 |
fi |
|
46 | 68 |
} |