kde-apps/kde-dev-utils: Fix build with KF-5.48
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 14 Jul 2018 11:28:24 +0000 (13:28 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 14 Jul 2018 11:28:24 +0000 (13:28 +0200)
Package-Manager: Portage-2.3.41, Repoman-2.3.9

kde-apps/kde-dev-utils/files/kde-dev-utils-18.04.3-ki18n-5.48.patch [new file with mode: 0644]
kde-apps/kde-dev-utils/kde-dev-utils-18.04.3.ebuild

diff --git a/kde-apps/kde-dev-utils/files/kde-dev-utils-18.04.3-ki18n-5.48.patch b/kde-apps/kde-dev-utils/files/kde-dev-utils-18.04.3-ki18n-5.48.patch
new file mode 100644 (file)
index 0000000..3713839
--- /dev/null
@@ -0,0 +1,34 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -10,5 +10,8 @@
+ include(KDECompilerSettings NO_POLICY_SCOPE)
+ include(ECMQtDeclareLoggingCategory)
++# Required for ki18n_install(po) added on tarball generation
++find_package(KF5 REQUIRED COMPONENTS I18n)
++
+ add_subdirectory(kpartloader)
+ add_subdirectory(kuiviewer)
+diff --git a/kpartloader/CMakeLists.txt b/kpartloader/CMakeLists.txt
+--- a/kpartloader/CMakeLists.txt
++++ b/kpartloader/CMakeLists.txt
+@@ -11,7 +11,6 @@
+ find_package(KF5 REQUIRED
+     COMPONENTS
+     CoreAddons
+-    I18n
+     Parts
+     WidgetsAddons
+ )
+diff --git a/kuiviewer/CMakeLists.txt b/kuiviewer/CMakeLists.txt
+--- a/kuiviewer/CMakeLists.txt
++++ b/kuiviewer/CMakeLists.txt
+@@ -15,7 +15,6 @@
+     COMPONENTS
+     CoreAddons
+     KIO
+-    I18n
+     Parts
+ )
index fd428260d4a667b12fa8be9a68b5acb7a1510368..2db803cad042bf5060a9a6ebfb10a31c2352f5ad 100644 (file)
@@ -27,3 +27,5 @@ DEPEND="
 RDEPEND="${DEPEND}
        !<kde-apps/kde4-l10n-17.03.90:4
 "
+
+PATCHES=( "${FILESDIR}/${P}-ki18n-5.48.patch" )