mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/rapidjson: cut 1.1.0_p20250205 snapshot
The last upstream release of rapidjson is almost 10 years old and our ebuild is only kept alive with occasional drive-by fixes. After renovating 9999 this seems like a good moment to cut a new snapshot from git that builds correctly and passes tests with gcc-16. Closes: https://bugs.gentoo.org/895560 Closes: https://bugs.gentoo.org/964537 Closes: https://bugs.gentoo.org/969615 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/801 Merges: https://codeberg.org/gentoo/gentoo/pulls/801 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
7075cae6f7
commit
c27c95f299
@@ -1 +1,2 @@
|
||||
DIST rapidjson-1.1.0.tar.gz 1019402 BLAKE2B e1564b3cfa020f76437b0a35048a42ff2cd98b5ce285e63f228e158885182e5cecda13407cdf30c03fa39b47cbc579ff0065f6c2682d04b806e8f9ea8d36fc4e SHA512 2e82a4bddcd6c4669541f5945c2d240fb1b4fdd6e239200246d3dd50ce98733f0a4f6d3daa56f865d8c88779c036099c52a9ae85d47ad263686b68a88d832dff
|
||||
DIST rapidjson-1.1.0_p20250205.tar.gz 1116703 BLAKE2B b4657b1a09437d947fea754f3de492993ae1335228b17d7fd7d4542e47009d7af64d0f8fa39923865accd6e7af86165e2545372bdeb425aef5480dcc96fb111e SHA512 50f8723414a6e63eadd45f97be5c44e9fff2d06216c8cc4df802f5bfc2a9416a039f2c69e9bb1882f7e756cd38a7097eea05cab76c739f45805dc41617140799
|
||||
|
||||
61
dev-libs/rapidjson/rapidjson-1.1.0_p20250205.ebuild
Normal file
61
dev-libs/rapidjson/rapidjson-1.1.0_p20250205.ebuild
Normal file
@@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="A fast JSON parser/generator for C++ with both SAX/DOM style API"
|
||||
HOMEPAGE="https://rapidjson.org/"
|
||||
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/Tencent/rapidjson.git"
|
||||
EGIT_SUBMODULES=()
|
||||
inherit git-r3
|
||||
else
|
||||
# no up-to-date releases or tags
|
||||
COMMIT="24b5e7a8b27f42fa16b96fc70aade9106cf7102f"
|
||||
SRC_URI="https://github.com/Tencent/rapidjson/archive/${COMMIT}.tar.gz -> rapidjson-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
S="${WORKDIR}/rapidjson-${COMMIT}"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="doc examples test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
doc? ( app-text/doxygen )
|
||||
test? ( dev-cpp/gtest )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.1.0-system_gtest.patch"
|
||||
"${FILESDIR}/${PN}-1.1.1-cmake4.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
sed -i -e 's| -march=native||g' CMakeLists.txt || die
|
||||
sed -i -e 's| -mcpu=native||g' CMakeLists.txt || die
|
||||
sed -i -e 's| -Werror||g' CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DDOC_INSTALL_DIR="${EPREFIX}/usr/share/doc/${PF}"
|
||||
-DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
|
||||
-DRAPIDJSON_BUILD_CXX11=OFF # latest gtest requires C++14 or later
|
||||
-DRAPIDJSON_BUILD_CXX17=ON
|
||||
-DRAPIDJSON_BUILD_DOC=$(usex doc)
|
||||
-DRAPIDJSON_BUILD_EXAMPLES=$(usex examples)
|
||||
-DRAPIDJSON_BUILD_TESTS=$(usex test)
|
||||
-DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF
|
||||
)
|
||||
use test && mycmakeargs+=(
|
||||
-DVALGRIND_EXECUTABLE=
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user