commit:     23146bf3299c47c794b72d719818ee2d911df228
Author:     Yongxiang Liang <tanekliang <AT> gmail <DOT> com>
AuthorDate: Sun May 11 01:56:36 2025 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Mon May 12 10:54:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23146bf3

app-i18n/fcitx-sayura: fix cmake-4

Closes: https://bugs.gentoo.org/955467
Signed-off-by: Yongxiang Liang <tanekliang <AT> gmail.com>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 app-i18n/fcitx-sayura/fcitx-sayura-5.1.3.ebuild            |  4 ++++
 app-i18n/fcitx-sayura/files/fcitx-sayura-fix-cmake-4.patch | 12 ++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/app-i18n/fcitx-sayura/fcitx-sayura-5.1.3.ebuild 
b/app-i18n/fcitx-sayura/fcitx-sayura-5.1.3.ebuild
index 29b0caaf1335..e500c7603fd8 100644
--- a/app-i18n/fcitx-sayura/fcitx-sayura-5.1.3.ebuild
+++ b/app-i18n/fcitx-sayura/fcitx-sayura-5.1.3.ebuild
@@ -22,3 +22,7 @@ RDEPEND="${DEPEND}"
 BDEPEND="
        kde-frameworks/extra-cmake-modules:0
 "
+
+PATCHES=(
+       "${FILESDIR}/${PN}-fix-cmake-4.patch"
+)

diff --git a/app-i18n/fcitx-sayura/files/fcitx-sayura-fix-cmake-4.patch 
b/app-i18n/fcitx-sayura/files/fcitx-sayura-fix-cmake-4.patch
new file mode 100644
index 000000000000..049d6532ee62
--- /dev/null
+++ b/app-i18n/fcitx-sayura/files/fcitx-sayura-fix-cmake-4.patch
@@ -0,0 +1,12 @@
+Backport of https://github.com/fcitx/fcitx5-sayura/pull/4
+
+fix build with cmake 4.0.0
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.10)
+ project(fcitx5-sayura VERSION 5.1.3)
+ 
+ set(REQUIRED_FCITX_VERSION 5.1.12)

Reply via email to