diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2023-08-15 10:59:31 +0300 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2023-08-15 11:00:40 +0300 |
commit | 38ce591f8ff78ad13ec3b03e5794b5f0673f873d (patch) | |
tree | 8722b90c2add107e314ec26a52cf564313452c31 /dev-libs/yyjson/yyjson-0.7.0-r1.ebuild | |
parent | dev-db/postgresql: Stabilize 15.4 ppc, #912253 (diff) | |
download | gentoo-38ce591f8ff78ad13ec3b03e5794b5f0673f873d.tar.gz gentoo-38ce591f8ff78ad13ec3b03e5794b5f0673f873d.tar.bz2 gentoo-38ce591f8ff78ad13ec3b03e5794b5f0673f873d.zip |
dev-libs/yyjson: fix for clang 16 + valgrind
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'dev-libs/yyjson/yyjson-0.7.0-r1.ebuild')
-rw-r--r-- | dev-libs/yyjson/yyjson-0.7.0-r1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-libs/yyjson/yyjson-0.7.0-r1.ebuild b/dev-libs/yyjson/yyjson-0.7.0-r1.ebuild new file mode 100644 index 000000000000..506382b3e617 --- /dev/null +++ b/dev-libs/yyjson/yyjson-0.7.0-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 2023 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" +KEYWORDS="~amd64" + +IUSE="doc test" + +RESTRICT="!test? ( test )" + +BDEPEND="doc? ( app-doc/doxygen )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.7.0-disable-werror.patch + "${FILESDIR}"/${PN}-0.7.0-fix-clang-16-valgrind.patch +) + +src_configure() { + local mycmakeargs=( + -DYYJSON_BUILD_DOC=$(usex doc) + -DYYJSON_BUILD_TESTS=$(usex test) + -DYYJSON_ENABLE_VALGRIND=$(usex test) + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + use doc && dodoc -r "${BUILD_DIR}"/doxygen/html +} |