commit:     1c4fa588ac3d7372a55345499849b76264579193
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 27 16:30:51 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Oct 27 16:31:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c4fa588

media-video/haruna: Raise CMake minimum to >=3.16

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/haruna-1.6.0-cmake-minreqver-3.16.patch  | 32 ++++++++++++++++++++++
 media-video/haruna/haruna-1.6.0.ebuild             |  2 ++
 2 files changed, 34 insertions(+)

diff --git a/media-video/haruna/files/haruna-1.6.0-cmake-minreqver-3.16.patch 
b/media-video/haruna/files/haruna-1.6.0-cmake-minreqver-3.16.patch
new file mode 100644
index 000000000000..5d47cca1df70
--- /dev/null
+++ b/media-video/haruna/files/haruna-1.6.0-cmake-minreqver-3.16.patch
@@ -0,0 +1,32 @@
+From 98e3fdb0308b1cebf986136cc44f0e7c42bdd708 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <[email protected]>
+Date: Mon, 27 Oct 2025 17:24:34 +0100
+Subject: [PATCH] Raise CMake minimum to 3.16...3.31 range
+
+ECM Find* and Qt6 CMake modules already require 3.16, so it is a good
+base line. CMake 3.16 was released in 2019. At the same time, defining
+the range to 3.31 (last release before CMake 4) means the build system
+is already being tested with all the latest Policy changes up to build
+time CMake version <=3.31 enacted. Tested with CMake 4.1.2.
+
+Signed-off-by: Andreas Sturmlechner <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1e533e1f..ad5dac88 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -4,7 +4,7 @@
+ # SPDX-License-Identifier: BSD-3-Clause
+ #
+ 
+-cmake_minimum_required(VERSION 3.15)
++cmake_minimum_required(VERSION 3.16...3.31)
+ 
+ cmake_policy(SET CMP0048 NEW)
+ project(haruna VERSION 1.6.0 LANGUAGES CXX)
+-- 
+2.51.1
+

diff --git a/media-video/haruna/haruna-1.6.0.ebuild 
b/media-video/haruna/haruna-1.6.0.ebuild
index 5bbbe67227ec..68afd5bcc5c1 100644
--- a/media-video/haruna/haruna-1.6.0.ebuild
+++ b/media-video/haruna/haruna-1.6.0.ebuild
@@ -46,3 +46,5 @@ DEPEND="
 RDEPEND="${DEPEND}
        net-misc/yt-dlp
 "
+
+PATCHES=( "${FILESDIR}"/${P}-cmake-minreqver-3.16.patch )

Reply via email to