commit:     2397bbb66c9735355db26be14d2dfbd1fcc0a3b2
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 15 18:57:37 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Apr 15 18:57:58 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2397bbb6

kde-apps/kmouth: Fix build with >=KF-5.93

Closes: https://bugs.gentoo.org/838193
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../kmouth-21.12.3-use-KDECompilerSettings.patch   | 53 ++++++++++++++++++++++
 kde-apps/kmouth/kmouth-21.12.3.ebuild              |  2 +
 2 files changed, 55 insertions(+)

diff --git a/kde-apps/kmouth/files/kmouth-21.12.3-use-KDECompilerSettings.patch 
b/kde-apps/kmouth/files/kmouth-21.12.3-use-KDECompilerSettings.patch
new file mode 100644
index 000000000000..b57440c53477
--- /dev/null
+++ b/kde-apps/kmouth/files/kmouth-21.12.3-use-KDECompilerSettings.patch
@@ -0,0 +1,53 @@
+From cfb889ab38befe1e378d92ab9915aed14ec5843b Mon Sep 17 00:00:00 2001
+From: "Friedrich W. H. Kossebau" <[email protected]>
+Date: Wed, 8 Dec 2021 20:29:29 +0100
+Subject: [PATCH] Use KDECompilerSettings instead of
+ KDEFrameworkCompilerSettings
+
+The latter is only for KF modules to use.
+
+Also include the KDE cmake modules as first thing, as their settings
+can influence other included macros.
+
+GIT_SILENT
+---
+ CMakeLists.txt | 15 +++++++++++----
+ 1 file changed, 11 insertions(+), 4 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9b89f16..42f1b5b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -14,18 +14,25 @@ set(QT_MIN_VERSION "5.15.0")
+ set(KF5_MIN_VERSION "5.85.0")
+ 
+ 
+-find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core PrintSupport 
TextToSpeech Xml Widgets)
+-
+ find_package(ECM ${KF5_MIN_VERSION} NO_MODULE REQUIRED)
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
+ 
+-include(ECMAddAppIcon)
+ include(KDEInstallDirs)
+ include(KDECMakeSettings)
+-include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
++include(KDECompilerSettings NO_POLICY_SCOPE)
++
++include(ECMAddAppIcon)
+ include(ECMInstallIcons)
+ include(ECMAddAppIcon)
+ 
++find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS
++    Core
++    PrintSupport
++    TextToSpeech
++    Xml
++    Widgets
++)
++
+ find_package(KF5  ${KF5_MIN_VERSION} REQUIRED COMPONENTS
+     Crash
+     Completion
+-- 
+GitLab
+

diff --git a/kde-apps/kmouth/kmouth-21.12.3.ebuild 
b/kde-apps/kmouth/kmouth-21.12.3.ebuild
index 1bd3c50ae49c..7e3dd81478e2 100644
--- a/kde-apps/kmouth/kmouth-21.12.3.ebuild
+++ b/kde-apps/kmouth/kmouth-21.12.3.ebuild
@@ -33,3 +33,5 @@ DEPEND="
        >=kde-frameworks/kxmlgui-${KFMIN}:5
 "
 RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-use-KDECompilerSettings.patch" ) # bug 838193

Reply via email to