aboutsummaryrefslogtreecommitdiff
path: root/multimedia/k9copy-reloaded/patches/k9copy-installdirs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/k9copy-reloaded/patches/k9copy-installdirs.patch')
-rw-r--r--multimedia/k9copy-reloaded/patches/k9copy-installdirs.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/multimedia/k9copy-reloaded/patches/k9copy-installdirs.patch b/multimedia/k9copy-reloaded/patches/k9copy-installdirs.patch
new file mode 100644
index 0000000000000..ec923d1706ac9
--- /dev/null
+++ b/multimedia/k9copy-reloaded/patches/k9copy-installdirs.patch
@@ -0,0 +1,29 @@
+diff -Naur k9copy.orig/CMakeLists.txt k9copy/CMakeLists.txt
+--- k9copy.orig/CMakeLists.txt 2014-10-16 07:58:20.000000000 -0400
++++ k9copy/CMakeLists.txt 2020-12-24 10:48:11.088907284 -0500
+@@ -1,3 +1,4 @@
++cmake_minimum_required(VERSION 3.1)
+ project(k9copy)
+ set (VERSION 3.0.3)
+
+@@ -38,7 +38,7 @@ find_package(Qt5DBus REQUIRED)
+ find_package(Qt5Gui REQUIRED)
+ find_package(Qt5Widgets REQUIRED)
+
+-find_package(KF5 COMPONENTS REQUIRED I18n Config Su CoreAddons WidgetsAddons DocTools XmlGui Solid KIO IconThemes)
++find_package(KF5 COMPONENTS REQUIRED Auth I18n Config Su CoreAddons WidgetsAddons DocTools XmlGui Solid KIO IconThemes)
+
+ else()
+ SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
+@@ -568,7 +569,11 @@
+
+ install( FILES k9copy.desktop k9copy_assistant.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+ #install( FILES k9copy.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
++if(QT5_BUILD)
++install( FILES k9copyui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/k9copy )
++else()
+ install( FILES k9copyui.rc DESTINATION ${DATA_INSTALL_DIR}/k9copy )
++endif()
+
+ install(FILES k9copy_open.desktop DESTINATION ${DATA_INSTALL_DIR}/solid/actions)
+ install(FILES k9copy_assistant_open.desktop DESTINATION ${DATA_INSTALL_DIR}/solid/actions)