diff options
| author | Alexey Sokolov <alexey+gentoo@asokolov.org> | 2025-08-15 23:15:47 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-09-04 21:48:36 +0100 |
| commit | 58b3cfe23855e57e2f0aa7eda999803ad56b5a42 (patch) | |
| tree | 3e390c31e97f85d060210bd6f83c88c22029dd34 /dev-cpp/jsoncons/jsoncons-1.3.2.ebuild | |
| parent | 35c3e1bee8f56edf7445aed066af87d360118325 (diff) | |
| download | gentoo-58b3cfe23855e57e2f0aa7eda999803ad56b5a42.tar.gz gentoo-58b3cfe23855e57e2f0aa7eda999803ad56b5a42.tar.bz2 gentoo-58b3cfe23855e57e2f0aa7eda999803ad56b5a42.zip | |
dev-cpp/jsoncons: new package, add 1.3.2
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/43482
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/jsoncons/jsoncons-1.3.2.ebuild')
| -rw-r--r-- | dev-cpp/jsoncons/jsoncons-1.3.2.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-cpp/jsoncons/jsoncons-1.3.2.ebuild b/dev-cpp/jsoncons/jsoncons-1.3.2.ebuild new file mode 100644 index 000000000000..e1270e10679b --- /dev/null +++ b/dev-cpp/jsoncons/jsoncons-1.3.2.ebuild @@ -0,0 +1,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 +} |
