commit:     acc6a28983e827a0d0ec70331c9e9f5e69a34112
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 22 20:30:50 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Apr 22 20:34:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acc6a289

dev-libs/miniz: Fix build w/ >=cmake-4

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

 dev-libs/miniz/files/miniz-3.0.2-cmake4.patch | 19 +++++++++++++++++++
 dev-libs/miniz/miniz-3.0.2.ebuild             |  4 +++-
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/dev-libs/miniz/files/miniz-3.0.2-cmake4.patch 
b/dev-libs/miniz/files/miniz-3.0.2-cmake4.patch
new file mode 100644
index 000000000000..2ca99c44216b
--- /dev/null
+++ b/dev-libs/miniz/files/miniz-3.0.2-cmake4.patch
@@ -0,0 +1,19 @@
+From d0190e5cdfb8af6bf825720e4360bd3aa34beb64 Mon Sep 17 00:00:00 2001
+From: Igor Alexey <[email protected]>
+Date: Thu, 28 Sep 2023 09:01:25 -0300
+Subject: [PATCH] bump cmake minimum version
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3cb344b..5ab3b66 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ 
+ # determine whether this is a standalone project or included by other projects
+ set (MINIZ_STANDALONE_PROJECT ON)

diff --git a/dev-libs/miniz/miniz-3.0.2.ebuild 
b/dev-libs/miniz/miniz-3.0.2.ebuild
index ca5c03b2b302..e2966721e6bc 100644
--- a/dev-libs/miniz/miniz-3.0.2.ebuild
+++ b/dev-libs/miniz/miniz-3.0.2.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 inherit cmake
 
-DESCRIPTION="A lossless, high performance data compression library"
+DESCRIPTION="Lossless, high performance data compression library"
 HOMEPAGE="https://github.com/richgel999/miniz";
 SRC_URI="https://github.com/richgel999/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
 
@@ -14,3 +14,5 @@ SLOT="0/${PV}"
 KEYWORDS="amd64 ~arm ~arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc 
x86"
 
 DOCS=( ChangeLog.md readme.md )
+
+PATCHES=( "${FILESDIR}/${P}-cmake4.patch" ) # bug 951684

Reply via email to