From 31a70a95d0c786320718aec3535e490435b31415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20F=C3=B6rster?= Date: Tue, 2 Jan 2024 17:50:38 +0100 Subject: [PATCH] [net-im/spectrum2] try a fix for newer protobuf --- net-im/spectrum2/files/spectrum2-cxx14.patch | 16 ++++++++++++++++ net-im/spectrum2/spectrum2-9999.ebuild | 6 ++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 net-im/spectrum2/files/spectrum2-cxx14.patch diff --git a/net-im/spectrum2/files/spectrum2-cxx14.patch b/net-im/spectrum2/files/spectrum2-cxx14.patch new file mode 100644 index 0000000..ef82ee7 --- /dev/null +++ b/net-im/spectrum2/files/spectrum2-cxx14.patch @@ -0,0 +1,16 @@ + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0c2ab857..1195c8b9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,7 +4,7 @@ cmake_policy(SET CMP0037 OLD) + + project(libtransport) + +-set(CMAKE_CXX_STANDARD 11) ++set(CMAKE_CXX_STANDARD 14) + if(WIN32) + set(CMAKE_CXX_STANDARD 17) + endif(WIN32) \ No newline at end of file diff --git a/net-im/spectrum2/spectrum2-9999.ebuild b/net-im/spectrum2/spectrum2-9999.ebuild index a9df846..7b89720 100644 --- a/net-im/spectrum2/spectrum2-9999.ebuild +++ b/net-im/spectrum2/spectrum2-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -64,7 +64,9 @@ DEPEND=" doc? ( app-doc/doxygen ) test? ( dev-util/cppunit ) " - +PATCHES=( + "${FILESDIR}/${PN}-cxx14.patch" +) src_prepare() { # Respect users LDFLAGS