commit:     bd9abcbc482743d4e10785f1150b18eea998ddfa
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 20 07:21:39 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Mar 20 07:21:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd9abcbc

app-i18n/uchardet: fix build with cmake4

Closes: https://bugs.gentoo.org/951619
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-i18n/uchardet/files/uchardet-0.0.8-cmake4.patch | 7 +++++++
 app-i18n/uchardet/uchardet-0.0.8.ebuild             | 4 ++++
 2 files changed, 11 insertions(+)

diff --git a/app-i18n/uchardet/files/uchardet-0.0.8-cmake4.patch 
b/app-i18n/uchardet/files/uchardet-0.0.8-cmake4.patch
new file mode 100644
index 000000000000..ce5839db384d
--- /dev/null
+++ b/app-i18n/uchardet/files/uchardet-0.0.8-cmake4.patch
@@ -0,0 +1,7 @@
+https://bugs.gentoo.org/951619
+https://gitlab.freedesktop.org/uchardet/uchardet/-/merge_requests/18
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2 +2 @@
+-cmake_minimum_required(VERSION 3.1)
++cmake_minimum_required(VERSION 3.5)

diff --git a/app-i18n/uchardet/uchardet-0.0.8.ebuild 
b/app-i18n/uchardet/uchardet-0.0.8.ebuild
index 78ef1023c3aa..d8e6a8072d46 100644
--- a/app-i18n/uchardet/uchardet-0.0.8.ebuild
+++ b/app-i18n/uchardet/uchardet-0.0.8.ebuild
@@ -14,6 +14,10 @@ SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
 IUSE="cpu_flags_x86_sse2"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-cmake4.patch
+)
+
 src_configure() {
        local mycmakeargs=(
                -DBUILD_STATIC=no

Reply via email to