diff options
author | Alfred Wingate <parona@protonmail.com> | 2023-08-27 05:37:33 +0300 |
---|---|---|
committer | Jakov Smolić <jsmolic@gentoo.org> | 2023-08-27 12:18:51 +0200 |
commit | c0260aab9b0c75a9e1cc12beb6e99825fc779333 (patch) | |
tree | 3a5ffaf28a501b5cc601955753d5c6ea105518bf /dev-libs/json-c | |
parent | dev-ruby/oauth: Keyword 0.6.2-r1 riscv, #913034 (diff) | |
download | gentoo-c0260aab9b0c75a9e1cc12beb6e99825fc779333.tar.gz gentoo-c0260aab9b0c75a9e1cc12beb6e99825fc779333.tar.bz2 gentoo-c0260aab9b0c75a9e1cc12beb6e99825fc779333.zip |
dev-libs/json-c: add 0.17
* Documentation is prebuilt in tarball, so doc use flag and doxygen bdep
are redundant.
Closes: https://bugs.gentoo.org/912232
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'dev-libs/json-c')
-rw-r--r-- | dev-libs/json-c/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/json-c/json-c-0.17.ebuild | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-libs/json-c/Manifest b/dev-libs/json-c/Manifest index 9b849e98dc5f..e421914e9088 100644 --- a/dev-libs/json-c/Manifest +++ b/dev-libs/json-c/Manifest @@ -1 +1,2 @@ DIST json-c-0.16.tar.gz 351916 BLAKE2B 11457fa39330338c85bfdfb0dd38fc703ad6942e730ba090c9fe017dfb81ef905d7b1bb1c768b9b51f6445a8cf3cf4007d7740be3a9878f8062edc62ba554c66 SHA512 255cff99033340b2c2678255d41dae7808f83ed0c102e693d2d9e186bd1f21dd1385fcaa360c0fc087a00965a9567fbda733370e6b518a9be2f1bb0a80439151 +DIST json-c-0.17.tar.gz 390045 BLAKE2B 26be25141447f2b652fa09d7096141a8bf7992469bcc53b275c1bc0108fc36a8898a8185c381218d3146d00fa03bdd0b837be073410fc93af943b5f083dbaa69 SHA512 4cbedd559502bf9014cfcd1d0bb8bb80d2abac4e969d95d4170123cd9cbafb0756b913fdbb83f666d14f674d6539a60ed1c5d0eb03c36b8037a2e00dc1636e19 diff --git a/dev-libs/json-c/json-c-0.17.ebuild b/dev-libs/json-c/json-c-0.17.ebuild new file mode 100644 index 000000000000..9d4e9b6e31a6 --- /dev/null +++ b/dev-libs/json-c/json-c-0.17.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="cpu_flags_x86_rdrand static-libs threads" + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/json-c/config.h +) + +multilib_src_configure() { + local mycmakeargs=( + # apps are not installed, so disable unconditionally. + # https://github.com/json-c/json-c/blob/json-c-0.17-20230812/apps/CMakeLists.txt#L119...L121 + -DBUILD_APPS=OFF + -DBUILD_STATIC_LIBS=$(usex static-libs) + -DDISABLE_EXTRA_LIBS=ON + -DDISABLE_WERROR=ON + -DENABLE_RDRAND=$(usex cpu_flags_x86_rdrand) + -DENABLE_THREADING=$(usex threads) + ) + + cmake_src_configure +} + +multilib_src_test() { + multilib_is_native_abi && cmake_src_test +} + +multilib_src_install_all() { + HTML_DOCS=( "${S}"/doc/html/. ) + einstalldocs +} |