commit:     8ec7ce2dd9be1cdf58df804be21cd608a32d20de
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 30 19:09:49 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Sep 30 19:14:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ec7ce2d

dev-libs/libgaminggear: Fix build w/ cmake-4

Closes: https://bugs.gentoo.org/957468
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../libgaminggear/files/libgaminggear-0.15.1-cmake4.patch  | 14 ++++++++++++++
 dev-libs/libgaminggear/libgaminggear-0.15.1.ebuild         |  3 ++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/dev-libs/libgaminggear/files/libgaminggear-0.15.1-cmake4.patch 
b/dev-libs/libgaminggear/files/libgaminggear-0.15.1-cmake4.patch
new file mode 100644
index 000000000000..a931af13688f
--- /dev/null
+++ b/dev-libs/libgaminggear/files/libgaminggear-0.15.1-cmake4.patch
@@ -0,0 +1,14 @@
+Source: 
https://aur.archlinux.org/cgit/aur.git/commit/cmake_min_version.patch?h=libgaminggear
+
+diff -aur a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt   2025-05-20 21:15:11.039131000 +0200
++++ b/CMakeLists.txt   2025-05-20 21:12:28.666031016 +0200
+@@ -1,7 +1,4 @@
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+-IF(POLICY CMP0022)
+-  CMAKE_POLICY(SET CMP0022 OLD)
+-ENDIF()
++CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
+ 
+ PROJECT(libgaminggear C)
+

diff --git a/dev-libs/libgaminggear/libgaminggear-0.15.1.ebuild 
b/dev-libs/libgaminggear/libgaminggear-0.15.1.ebuild
index 9c844d7032db..472fd47f4e58 100644
--- a/dev-libs/libgaminggear/libgaminggear-0.15.1.ebuild
+++ b/dev-libs/libgaminggear/libgaminggear-0.15.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -36,6 +36,7 @@ BDEPEND="
 PATCHES=(
        "${FILESDIR}"/${PN}-0.10.0-doc.patch
        "${FILESDIR}"/${P}-cmake-3.13.patch
+       "${FILESDIR}"/${P}-cmake4.patch # bug 957468
 )
 
 src_configure() {

Reply via email to