diff options
| author | Jakov Smolic <jakov.smolic@sartura.hr> | 2020-05-17 19:48:33 +0200 |
|---|---|---|
| committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-05-18 14:41:34 -0700 |
| commit | a80c36a0842224f29a28cb4c772da490996f5523 (patch) | |
| tree | 7e5b6cb5bd275ed0a5812e476d058c250f67f26f /dev-libs/json-c/json-c-0.14-r3.ebuild | |
| parent | ccc81c68a4aedf46895f7693c81ac2cc28fd8f33 (diff) | |
| download | gentoo-a80c36a0842224f29a28cb4c772da490996f5523.tar.gz gentoo-a80c36a0842224f29a28cb4c772da490996f5523.tar.bz2 gentoo-a80c36a0842224f29a28cb4c772da490996f5523.zip | |
dev-libs/json-c: fix objects field limitation
Bug: https://bugs.gentoo.org/723480
Closes: https://github.com/gentoo/gentoo/pull/15852
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-libs/json-c/json-c-0.14-r3.ebuild')
| -rw-r--r-- | dev-libs/json-c/json-c-0.14-r3.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/json-c/json-c-0.14-r3.ebuild b/dev-libs/json-c/json-c-0.14-r3.ebuild new file mode 100644 index 000000000000..aed1d954d090 --- /dev/null +++ b/dev-libs/json-c/json-c-0.14-r3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +CMAKE_ECLASS=cmake +inherit cmake-multilib + +DESCRIPTION="A JSON implementation in C" +HOMEPAGE="https://github.com/json-c/json-c/wiki" +SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/5" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="doc static-libs threads" + +PATCHES=( + "${FILESDIR}/${PN}-0.14-cmake-static-libs.patch" + "${FILESDIR}/${P}-security-fix.patch" + "${FILESDIR}/${PN}-0.14-object-limitation.patch" +) + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/json-c/config.h +) + +src_prepare() { + cmake_src_prepare +} + +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_DOCUMENTATION=$(multilib_native_usex doc) + -DBUILD_STATIC_LIBS=$(usex static-libs) + -DDISABLE_WERROR=ON + -DENABLE_THREADING=$(usex threads) + ) + + cmake_src_configure +} + +multilib_src_compile() { + cmake_src_compile +} + +multilib_src_test() { + multilib_is_native_abi && cmake_src_test +} + +multilib_src_install_all() { + use doc && HTML_DOCS=( "${S}"/doc/html/. ) + einstalldocs +} |
