# Distributed under the terms of the GNU General Public License v2 # Copyright 2018 Gluzskiy Alexandr SCM_EXTERNAL_REFS=" thirdparty/gtest:gtest " SCM_SECONDARY_REPOSITORIES="gtest" SCM_gtest_REPOSITORY="https://github.com/google/googletest.git" require github [ user=miloyip tag=v${PV} force_git_clone=true ] require cmake [ api=2 ] SUMMARY="A fast JSON parser/generator for C++ with both SAX/DOM style API" HOMEPAGE="http://rapidjson.org/" LICENCES="MIT" SLOT="0" #export_exlib_phases src_configure MYOPTIONS=" doc examples " DEPENDENCIES=" test: dev-cpp/gtest dev-util/valgrind build: doc? ( app-doc/doxygen ) " CMAKE_SRC_CONFIGURE_TESTS=( '-DRAPIDJSON_BUILD_TESTS=ON -DRAPIDJSON_BUILD_TESTS=OFF' ) CMAKE_SRC_CONFIGURE_OPTIONS=( 'doc RAPIDJSON_BUILD_DOC' 'examples RAPIDJSON_BUILD_EXAMPLES' ) CMAKE_SRC_CONFIGURE_PARAMS+=( -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF )