commit:     9e1aa3c5b1b8c516e309a2ddc5c099532507c551
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 10 04:34:29 2024 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Wed Jul 10 04:34:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e1aa3c5

dev-libs/yyjson: add 0.10.0

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 dev-libs/yyjson/Manifest             |  1 +
 dev-libs/yyjson/yyjson-0.10.0.ebuild | 40 ++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/dev-libs/yyjson/Manifest b/dev-libs/yyjson/Manifest
index 66f2cfb50cf3..8bfc6ed85508 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.9.0.tar.gz 1531794 BLAKE2B 
070b9921dbe897d345bae4fa653b48ec38a0d7a0b27a7dba476b7c62d18f0d0b79484d7a66e1fb80b0885a6ebf78a9e3a21240407736ae5106cbbc5a9bc5a677
 SHA512 
4b9ca85096ccfe2f513a5869eb63b175f44c67785940e02414f6a586d7dd7b772fed77a1775d9416a5f1bf17f20e18a31f0dc4e65be263019d9b95bf95366219

diff --git a/dev-libs/yyjson/yyjson-0.10.0.ebuild 
b/dev-libs/yyjson/yyjson-0.10.0.ebuild
new file mode 100644
index 000000000000..d9b3e44def4d
--- /dev/null
+++ b/dev-libs/yyjson/yyjson-0.10.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2023-2024 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 ~mips ~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
+}

Reply via email to