commit: df2226ba0a2ea74a488dcfb996204654ef21d9ee Author: Peter Levine <plevine457 <AT> gmail <DOT> com> AuthorDate: Wed Feb 8 01:59:27 2023 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Wed Feb 8 07:57:40 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df2226ba
dev-libs/cpuinfo: fix building against dev-cpp/gtest-1.13.0 Closes: https://bugs.gentoo.org/893344 Closes: https://github.com/gentoo/gentoo/pull/29474 Signed-off-by: Peter Levine <plevine457 <AT> gmail.com> Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> ...{cpuinfo-2022.03.26.ebuild => cpuinfo-2022.03.26-r1.ebuild} | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dev-libs/cpuinfo/cpuinfo-2022.03.26.ebuild b/dev-libs/cpuinfo/cpuinfo-2022.03.26-r1.ebuild similarity index 74% rename from dev-libs/cpuinfo/cpuinfo-2022.03.26.ebuild rename to dev-libs/cpuinfo/cpuinfo-2022.03.26-r1.ebuild index 28a98cb4ef7f..03c742c31f6d 100644 --- a/dev-libs/cpuinfo/cpuinfo-2022.03.26.ebuild +++ b/dev-libs/cpuinfo/cpuinfo-2022.03.26-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -27,6 +27,14 @@ PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) +src_prepare() { + cmake_src_prepare + + # >=dev-cpp/gtest-1.13.0 depends on building with at least C++14 standard + sed -i -e 's/CXX_STANDARD 11/CXX_STANDARD 14/' \ + CMakeLists.txt || die "sed failed" +} + src_configure() { local mycmakeargs=( -DCPUINFO_BUILD_BENCHMARKS=OFF
