dev-libs/cereal: include system rapidjson

Fixes build and tests.  Also fix tests on nomultilib systems by
disabling one of them.

rapidxml still needs to be unbundled.

Closes: https://bugs.gentoo.org/835614
Bug: https://bugs.gentoo.org/792444
Signed-off-by: Matthew Smith <matthew@gentoo.org>
This commit is contained in:
Matthew Smith
2022-04-03 09:52:11 +01:00
parent b99f34b85e
commit af5cbae5cf
@@ -25,6 +25,9 @@ src_prepare() {
# remove bundled rapidjson
rm -r include/cereal/external/rapidjson || die 'could not remove bundled rapidjson'
sed -e '/rapidjson/s|cereal/external/||' \
-e 's/CEREAL_RAPIDJSON_NAMESPACE/rapidjson/g' \
-i include/cereal/archives/json.hpp || die
cmake_src_prepare
}
@@ -39,6 +42,9 @@ src_configure() {
-DSKIP_PERFORMANCE_COMPARISON=ON
-DWITH_WERROR=OFF
# TODO: Enable if multilib?
-DSKIP_PORTABILITY_TEST=ON
)
cmake_src_configure