dev-cpp/jsoncpp - 9999 (nest)

Search

Install

Install this version:

emerge -a =dev-cpp/jsoncpp-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-cpp/jsoncpp-9999

Or alternatively:

emerge --autounmask-write -a =dev-cpp/jsoncpp-9999

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
9999 8 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake edo git-r3

DESCRIPTION="CMake files for C++ JSON reader and writer"
HOMEPAGE="https://github.com/open-source-parsers/jsoncpp"
EGIT_REPO_URI="https://github.com/open-source-parsers/${PN}.git"

LICENSE="GPL-3"
SLOT="0"
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
	edo rm -rf "${ED}"/usr/{include,share,lib64/pkgconfig,lib64/lib*}
	dosym ./libjsoncpp.so usr/"$(get_libdir)"/libjsoncpp.so."${PV}"
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-cpp/jsoncpp | euse -E <flag> -p dev-cpp/jsoncpp | euse -D <flag> -p dev-cpp/jsoncpp

Global/Standard Flags

Inherited Eclasses

edo

Dependencies

RDEPEND

dev-libs/jsoncpp:0=