blob: e1270e10679bd59b5b53e72638fc34fd1ba74d9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# 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}"-uninitialized.patch
"${FILESDIR}/${P}"-cmake4.patch
"${FILESDIR}/${P}"-usrshare.patch
"${FILESDIR}/${P}"-namespace.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
}
|