dev-cpp/jsoncpp - 1.9.6 (nest)

Search

Package Information

Description:
CMake files for C++ JSON reader and writer
Homepage:
https://github.com/open-source-parsers/jsoncpp
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
1.9.6 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# shellcheck disable=SC2115

EAPI=8

inherit cmake

DESCRIPTION="CMake files for C++ JSON reader and writer"
HOMEPAGE="https://github.com/open-source-parsers/jsoncpp"
SRC_URI="https://github.com/open-source-parsers/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs test"
RESTRICT="!test? ( test )"

RDEPEND="dev-libs/jsoncpp:0="

src_configure() {
	local mycmakeargs=(
		-DJSONCPP_WITH_TESTS="$(usex test)"
		-DJSONCPP_WITH_POST_BUILD_UNITTEST="$(usex test)"
		-DBUILD_STATIC_LIBS="$(usex static-libs)"
		-DBUILD_OBJECT_LIBS=OFF
	)
	cmake_src_configure
}

src_install() {
	cmake_src_install

	# remove everyting except cmake files
	rm -rf "${ED}"/usr/{include,share,lib64/pkgconfig,lib64/lib*} \
		|| die "rm failed"
	dosym ./libjsoncpp.so usr/"$(get_libdir)"/libjsoncpp.so."${PV}"
}

USE Flags

Dependencies

RDEPEND

dev-libs/jsoncpp:0=

Manifest for 1.9.6

Type File Size Source URLs
DIST jsoncpp-1.9.6.tar.gz 212682 bytes https://github.com/open-source-parsers/jsoncpp/archive/1.9.6.tar.gz