commit: e2bed7f7d11ae9ebdc34a445c816e256aab38fa2 Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> AuthorDate: Wed May 7 16:46:15 2025 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Wed May 7 17:13:32 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2bed7f7
dev-libs/yyjson: add 0.11.0 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> dev-libs/yyjson/Manifest | 1 + dev-libs/yyjson/yyjson-0.11.0.ebuild | 40 ++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/dev-libs/yyjson/Manifest b/dev-libs/yyjson/Manifest index c8984049fde3..ee70ac1d3bcc 100644 --- a/dev-libs/yyjson/Manifest +++ b/dev-libs/yyjson/Manifest @@ -1 +1,2 @@ DIST yyjson-0.10.0.tar.gz 1538409 BLAKE2B 84dbed32579a56a6051b7360d2ddec5b1d8991d1b6e818dcca943ee2a3b26d534c1a911995ae1b0c13fc1cdbfd45aab52e36327529405aa3d39622caa0eb75a9 SHA512 d0274bfdae6291cc54d7c306f7f9064333d3e0fd8d235428148fa5695e151e0fdd0982247a5e82fe60b27e9182ba27d5704aca4546a8dc9545117bd3a017bfb5 +DIST yyjson-0.11.0.tar.gz 1591254 BLAKE2B b03399f2348cf2916ba728fa719aaab5404f964cd232550c27d9b58d5ff2dce39c81b1b790ecc3a05db50f37927fe9528dd851327b8414afd57f2897ec3b4483 SHA512 a1abbc6c105c6b1cb1ca936ff148e7d4c3f77484397254952fc38ab2ebd7fab19cdd80648eb2bb7806508e83550628e0385f3c236ca815786da90ef36fae63a1 diff --git a/dev-libs/yyjson/yyjson-0.11.0.ebuild b/dev-libs/yyjson/yyjson-0.11.0.ebuild new file mode 100644 index 000000000000..b2f96f422a93 --- /dev/null +++ b/dev-libs/yyjson/yyjson-0.11.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Fast JSON library in C" +HOMEPAGE="https://github.com/ibireme/yyjson https://ibireme.github.io/yyjson/doc/doxygen/html/" +SRC_URI="https://github.com/ibireme/yyjson/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT test? ( BSD )" +SLOT="0/0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + +IUSE="doc test" + +RESTRICT="!test? ( test )" + +BDEPEND="doc? ( app-text/doxygen )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.7.0-disable-werror.patch +) + +src_configure() { + local mycmakeargs=( + -DYYJSON_BUILD_DOC=$(usex doc) + -DYYJSON_BUILD_TESTS=$(usex test) + -DYYJSON_ENABLE_VALGRIND=OFF + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + use doc && dodoc -r "${BUILD_DIR}"/doxygen/html +}
