dev-libs/yyjson: add 0.11.0

Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu
2025-05-07 20:13:32 +03:00
parent 95ac407564
commit e2bed7f7d1
2 changed files with 41 additions and 0 deletions
+1
View File
@@ -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
+40
View File
@@ -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
}