media-libs/simage: Fix build w/ cmake-4

Closes: https://bugs.gentoo.org/952022
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner 2025-06-26 22:25:54 +02:00
parent 723bd40c19
commit b2d47b8569
No known key found for this signature in database
GPG Key ID: AE591BBC73E4DD5E
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,19 @@
From 0d69e6f9e23a13406d49fe3dc855885046408162 Mon Sep 17 00:00:00 2001
From: Volker Enderlein <volkerenderlein@hotmail.com>
Date: Tue, 1 Apr 2025 20:22:45 +0200
Subject: [PATCH] Adapt cmake_minimum_required command for usage with CMake 4.0
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 835c498..276178d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.0...3.29)
set(SIMAGE_MAJOR_VERSION 1)
set(SIMAGE_MINOR_VERSION 8)

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
@ -48,6 +48,7 @@ BDEPEND="test? ( media-libs/libsndfile )"
PATCHES=(
"${FILESDIR}"/${PN}-1.8.1-0001-Gentoo-specific-remove-RELEASE-flag-from-pkg-config.patch
"${FILESDIR}"/${P}-cmake4.patch # bug 952022
)
DOCS=( AUTHORS ChangeLog NEWS README )