summaryrefslogtreecommitdiff
path: root/dev-cpp/jsoncons/jsoncons-1.4.0.ebuild
diff options
context:
space:
mode:
authorAlexey Sokolov <alexey+gentoo@asokolov.org>2025-09-17 00:39:13 +0100
committerSam James <sam@gentoo.org>2025-09-17 22:30:28 +0100
commitc984f6ceba3fbc884bb3a3323a7aa393701f6d5b (patch)
treedb8c75822e1e5573e43ca0fcb7cb3cc0ac0bd2b3 /dev-cpp/jsoncons/jsoncons-1.4.0.ebuild
parent6427fe8873a91e3e1fb2a2ca0a58255cffd7bdae (diff)
downloadgentoo-c984f6ceba3fbc884bb3a3323a7aa393701f6d5b.tar.gz
gentoo-c984f6ceba3fbc884bb3a3323a7aa393701f6d5b.tar.bz2
gentoo-c984f6ceba3fbc884bb3a3323a7aa393701f6d5b.zip
dev-cpp/jsoncons: add 1.4.0, drop 1.3.2
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Part-of: https://github.com/gentoo/gentoo/pull/43821 Closes: https://github.com/gentoo/gentoo/pull/43821 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/jsoncons/jsoncons-1.4.0.ebuild')
-rw-r--r--dev-cpp/jsoncons/jsoncons-1.4.0.ebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-cpp/jsoncons/jsoncons-1.4.0.ebuild b/dev-cpp/jsoncons/jsoncons-1.4.0.ebuild
new file mode 100644
index 000000000000..19801daab74f
--- /dev/null
+++ b/dev-cpp/jsoncons/jsoncons-1.4.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="C++ header-only library for JSON and JSON-like data formats"
+HOMEPAGE="https://danielaparker.github.io/jsoncons/ https://github.com/danielaparker/jsoncons"
+SRC_URI="https://github.com/danielaparker/jsoncons/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-uninit.patch
+)
+
+DOCS=( doc )
+
+# uses modified version of catch.hpp, doesn't work with upstream catch2
+
+src_configure() {
+ local mycmakeargs=(
+ -DJSONCONS_BUILD_TESTS=$(usex test)
+ )
+ cmake_src_configure
+}