Install this version:
emerge -a =dev-cpp/jsoncons-1.6.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-cpp/jsoncons-1.6.0
Or alternatively:
emerge --autounmask-write -a =dev-cpp/jsoncons-1.6.0
# Copyright 2025-2026 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 )"
DOCS=( doc )
PATCHES=(
"${FILESDIR}/jsoncons-1.5.0-werror.patch"
)
# uses modified version of catch.hpp, doesn't work with upstream catch2
src_configure() {
local mycmakeargs=(
-DJSONCONS_BUILD_TESTS=$(usex test)
)
cmake_src_configure
}
Manage flags for this package:
euse -i <flag> -p dev-cpp/jsoncons |
euse -E <flag> -p dev-cpp/jsoncons |
euse -D <flag> -p dev-cpp/jsoncons
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | jsoncons-1.6.0.tar.gz | 1603248 bytes | https://github.com/danielaparker/jsoncons/archive/refs/tags/v1.6.0.tar.gz |