From f16b7196716fbeb369287c2e4143381fd02343d7 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 28 Aug 2021 15:38:16 -0700 Subject: [PATCH] dev-libs/cJSON: Version bump to 1.7.15 Signed-off-by: Matt Turner --- dev-libs/cJSON/Manifest | 1 + dev-libs/cJSON/cJSON-1.7.15.ebuild | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 dev-libs/cJSON/cJSON-1.7.15.ebuild diff --git a/dev-libs/cJSON/Manifest b/dev-libs/cJSON/Manifest index 49e04f7c610da..0436f3ad7f0d0 100644 --- a/dev-libs/cJSON/Manifest +++ b/dev-libs/cJSON/Manifest @@ -1 +1,2 @@ DIST cJSON-1.7.14.tar.gz 352028 BLAKE2B 203795f004496793fb04577df1e4a917df2424bf7866e32459584d3dc776ee13263c5e62ded01e3776973d2210e642d1066d3126e2c737bd0fa048464f3aed84 SHA512 8de1dedc123ed025a9cbe6764e5963eb0550f726d06a8f6bedfe05b84e852cd9c1587cd381669663073967f42be894a535ba239013f304ce544c3b15a6477c01 +DIST cJSON-1.7.15.tar.gz 352278 BLAKE2B e0de3b8d56020853d56f5512e6e7216adafd238b6f69bbf6965b153bfe8ebfc23593dfa7cfb8543d8730d90820153d263c8af276c8e9588ba8a5ad76a50f8b72 SHA512 0b32a758c597fcc90c8ed0af493c9bccd611b9d4f9a03e87de3f7337bb9a28990b810befd44bc321a0cb42cbcd0b026d45761f9bab7bd798f920b7b6975fb124 diff --git a/dev-libs/cJSON/cJSON-1.7.15.ebuild b/dev-libs/cJSON/cJSON-1.7.15.ebuild new file mode 100644 index 0000000000000..5e31a6ae07d5b --- /dev/null +++ b/dev-libs/cJSON/cJSON-1.7.15.ebuild @@ -0,0 +1,30 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION=" Ultralightweight JSON parser in ANSI C" +HOMEPAGE="https://github.com/DaveGamble/cJSON" +SRC_URI="https://github.com/DaveGamble/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +src_prepare() { + cmake_src_prepare + + sed -i -e '/-Werror/d' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DENABLE_CJSON_TEST=$(usex test) + ) + + cmake_src_configure +}