commit:     cddffad0d00b5a4b82dd981c0446489ee29e019c
Author:     Peter Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Tue Feb  7 21:01:59 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Feb  8 07:12:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cddffad0

dev-libs/FXdiv: fix building with dev-cpp/gtest-1.13.0

Closes: https://bugs.gentoo.org/893340
Closes: https://github.com/gentoo/gentoo/pull/29471
Signed-off-by: Peter Levine <plevine457 <AT> gmail.com>
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 .../{FXdiv-2020.12.09.ebuild => FXdiv-2020.12.09-r1.ebuild}    | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/dev-libs/FXdiv/FXdiv-2020.12.09.ebuild 
b/dev-libs/FXdiv/FXdiv-2020.12.09-r1.ebuild
similarity index 76%
rename from dev-libs/FXdiv/FXdiv-2020.12.09.ebuild
rename to dev-libs/FXdiv/FXdiv-2020.12.09-r1.ebuild
index b55cbcd18709..454495945d21 100644
--- a/dev-libs/FXdiv/FXdiv-2020.12.09.ebuild
+++ b/dev-libs/FXdiv/FXdiv-2020.12.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=(
                -DFXDIV_BUILD_BENCHMARKS=OFF

Reply via email to