Diff rapidjson-1.1.0-r4 with a rapidjson-9999

/usr/portage/dev-libs/rapidjson/rapidjson-9999.ebuild 2023-10-09 14:52:29.756368357 +0300
29 29
"
30 30

  
31 31
PATCHES=(
32
	"${FILESDIR}/${P}-gcc-7.patch"
33
	"${FILESDIR}/${P}-system_gtest.patch"
34
	"${FILESDIR}/${P}-valgrind_optional.patch"
35
	"${FILESDIR}/${P}-gcc14-const.patch"
32
	"${FILESDIR}/${PN}-1.1.0-system_gtest.patch"
33
	"${FILESDIR}/${PN}-1.1.1-valgrind_optional.patch"
36 34
)
37 35

  
38 36
src_prepare() {
39 37
	cmake_src_prepare
40 38

  
41 39
	sed -i -e 's| -march=native||g' CMakeLists.txt || die
42
	sed -i -e 's| -Werror||g' CMakeLists.txt example/CMakeLists.txt test/unittest/CMakeLists.txt || die
40
	sed -i -e 's| -mcpu=native||g' CMakeLists.txt || die
41
	sed -i -e 's| -Werror||g' CMakeLists.txt || die
43 42
}
44 43

  
45 44
src_configure() {
......
47 46
		-DDOC_INSTALL_DIR="${EPREFIX}/usr/share/doc/${PF}"
48 47
		-DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
49 48
		-DRAPIDJSON_BUILD_CXX11=OFF # latest gtest requires C++14 or later
49
		-DRAPIDJSON_BUILD_CXX17=ON
50 50
		-DRAPIDJSON_BUILD_DOC=$(usex doc)
51 51
		-DRAPIDJSON_BUILD_EXAMPLES=$(usex examples)
52 52
		-DRAPIDJSON_BUILD_TESTS=$(usex test)
Thank you!