summaryrefslogtreecommitdiff
path: root/kde-plasma/kdeplasma-addons/files/kdeplasma-addons-5.19.3-kross-optional.patch
blob: 485acd542a83aea8ab1a9e20684cd7f318c0464e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
From bbaaa3e2eac712887780c0849f955889e64ff358 Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Tue, 7 Jul 2020 22:22:13 +0200
Subject: [PATCH] Make KF5Kross optional, it is only used for comic applet

---
 CMakeLists.txt             | 7 ++++++-
 applets/CMakeLists.txt     | 4 +++-
 dataengines/CMakeLists.txt | 4 +++-
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9c4697a52..e5d14bc8c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,7 +48,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
     IconThemes
     KIO
     KCMUtils
-    Kross
     Notifications
     Plasma
     Runner
@@ -59,6 +58,12 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
     NewStuff
 )
 
+find_package(KF5Kross CONFIG QUIET)
+set_package_properties(KF5Kross PROPERTIES
+    PURPOSE "Needed for Comic applet"
+    TYPE OPTIONAL
+)
+
 find_package(KF5Purpose CONFIG QUIET)
 set_package_properties(KF5Purpose PROPERTIES
     DESCRIPTION "Framework for cross-application services and actions"
diff --git a/applets/CMakeLists.txt b/applets/CMakeLists.txt
index 93b637b1b..6af5ffc67 100644
--- a/applets/CMakeLists.txt
+++ b/applets/CMakeLists.txt
@@ -6,7 +6,9 @@ plasma_install_package(keyboardindicator org.kde.plasma.keyboardindicator)
 add_subdirectory(binary-clock)
 add_subdirectory(calculator)
 add_subdirectory(colorpicker)
-add_subdirectory(comic)
+if(KF5Kross_FOUND)
+    add_subdirectory(comic)
+endif()
 add_subdirectory(dict)
 if(NOT WIN32)
     # uses the command line tool 'quota', does not make sense on Windows
diff --git a/dataengines/CMakeLists.txt b/dataengines/CMakeLists.txt
index 8d91dd84f..38f715b11 100644
--- a/dataengines/CMakeLists.txt
+++ b/dataengines/CMakeLists.txt
@@ -1,3 +1,5 @@
- add_subdirectory(comic)
+if(KF5Kross_FOUND)
+    add_subdirectory(comic)
+endif()
 add_subdirectory(potd)
 add_subdirectory(konsoleprofiles)
-- 
2.27.0