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

Closes: https://bugs.gentoo.org/957468
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner 2025-09-30 21:09:49 +02:00
parent 9ca9c2bb26
commit 8ec7ce2dd9
No known key found for this signature in database
GPG Key ID: AE591BBC73E4DD5E
2 changed files with 16 additions and 1 deletions

View File

@ -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)

View File

@ -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() {