summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Levine <plevine457@gmail.com>2023-02-07 21:42:28 -0500
committerAlfredo Tupone <tupone@gentoo.org>2023-02-08 09:02:40 +0100
commitfba8b18d86322eddfbde10f94609ac4ea1f66e69 (patch)
tree23dcffb792f8ee65cb5276b28aec06426799d3eb /dev-libs
parentdev-libs/cpuinfo: fix building against dev-cpp/gtest-1.13.0 (diff)
downloadgentoo-fba8b18d86322eddfbde10f94609ac4ea1f66e69.tar.gz
gentoo-fba8b18d86322eddfbde10f94609ac4ea1f66e69.tar.bz2
gentoo-fba8b18d86322eddfbde10f94609ac4ea1f66e69.zip
dev-libs/pthreadpool: fix building against dev-cpp/gtest-1.13.0
Closes: https://bugs.gentoo.org/893464 Closes: https://github.com/gentoo/gentoo/pull/29478 Signed-off-by: Peter Levine <plevine457@gmail.com> Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/pthreadpool/pthreadpool-2022.05.09-r1.ebuild (renamed from dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild)10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild b/dev-libs/pthreadpool/pthreadpool-2022.05.09-r1.ebuild
index b2331e976f63..9cfc03ed4564 100644
--- a/dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild
+++ b/dev-libs/pthreadpool/pthreadpool-2022.05.09-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
@@ -26,6 +26,14 @@ PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
)
+src_prepare() {
+ cmake_src_prepare
+
+ # >=dev-cpp/gtest-1.13.0 requires C++14 standard or later
+ sed -i -e 's/CXX_STANDARD 11/CXX_STANDARD 14/g' \
+ CMakeLists.txt || die "sed failed"
+}
+
src_configure() {
local mycmakeargs=(
-DPTHREADPOOL_BUILD_BENCHMARKS=OFF