1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="A fast JSON parser/generator for C++ with both SAX/DOM style API"
9 HOMEPAGE="http://rapidjson.org/"
12 IUSE="doc examples test"
13 RESTRICT="!test? ( test )"
16 if [[ ${PV} == *9999 ]] ; then
17 EGIT_REPO_URI="https://github.com/miloyip/rapidjson.git"
20 SRC_URI="https://github.com/miloyip/rapidjson/archive/v${PV}.tar.gz -> ${P}.tar.gz"
21 KEYWORDS="~amd64 ~x86"
22 S="${WORKDIR}/rapidjson-${PV}"
26 doc? ( app-doc/doxygen )
35 -DRAPIDJSON_BUILD_DOC=$(usex doc)
36 -DRAPIDJSON_BUILD_EXAMPLES=$(usex examples)
37 -DRAPIDJSON_BUILD_TESTS=$(usex test)
38 -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF
40 cmake-utils_src_configure