commit:     2d2dfebf0e7bc8bb71001095a8ab4e98ebf325b6
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  9 19:44:19 2017 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Thu Feb  9 19:44:19 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d2dfebf

kde-apps/kio-extras: Add missing patches from overlay

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../kio-extras-16.12.1-activities-optional.patch   | 52 ++++++++++++++++++++++
 .../files/kio-extras-16.12.1-man-optional.patch    | 48 ++++++++++++++++++++
 2 files changed, 100 insertions(+)

diff --git 
a/kde-apps/kio-extras/files/kio-extras-16.12.1-activities-optional.patch 
b/kde-apps/kio-extras/files/kio-extras-16.12.1-activities-optional.patch
new file mode 100644
index 0000000000..efa79a9d43
--- /dev/null
+++ b/kde-apps/kio-extras/files/kio-extras-16.12.1-activities-optional.patch
@@ -0,0 +1,52 @@
+From a84100dce8a32de89c6a854c965c0c54f1126563 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlech...@gmail.com>
+Date: Mon, 2 Jan 2017 02:16:40 +0100
+Subject: [PATCH 1/2] Make activities kioslave optional
+
+Not everyone builds this for a Plasma desktop, Qt5Sql is already only
+searched for in that subdirectory, so this gives some nice modularity.
+
+REVIEW: 129783
+---
+ CMakeLists.txt | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index edc2639..5ac418b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -39,7 +39,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
+     Solid
+     Bookmarks
+     GuiAddons
+-    Activities
+ )
+ # As this is the check used for linkage, only require it in the same 
location...
+ if (UNIX)
+@@ -56,6 +55,12 @@ include(ECMOptionalAddSubdirectory)
+ 
+ add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
+ 
++find_package(KF5Activities QUIET)
++set_package_properties(KF5Activities PROPERTIES
++    PURPOSE "Provides the activities:/ kioslave and fileitem plugin."
++    TYPE OPTIONAL
++)
++
+ find_package(SLP)
+ set_package_properties(SLP PROPERTIES DESCRIPTION "SLP (Service Location 
Protocol) implementation"
+                        URL "http://www.openslp.org/";
+@@ -126,7 +131,9 @@ endif()
+ add_subdirectory( doc )
+ 
+ add_subdirectory( about )
+-add_subdirectory( activities )
++if(KF5Activities_FOUND)
++  add_subdirectory( activities )
++endif()
+ add_subdirectory( bookmarks )
+ add_subdirectory( filter )
+ if(Phonon4Qt5_FOUND)
+-- 
+2.10.2
+

diff --git a/kde-apps/kio-extras/files/kio-extras-16.12.1-man-optional.patch 
b/kde-apps/kio-extras/files/kio-extras-16.12.1-man-optional.patch
new file mode 100644
index 0000000000..9c6452b103
--- /dev/null
+++ b/kde-apps/kio-extras/files/kio-extras-16.12.1-man-optional.patch
@@ -0,0 +1,48 @@
+From c9f618e75f4d84a8c48cb321a477c68c6dbf9f08 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlech...@gmail.com>
+Date: Mon, 2 Jan 2017 02:35:08 +0100
+Subject: [PATCH 2/2] Make KF5KHtml dependency optional, only used by man
+
+REVIEW: 129783
+---
+ CMakeLists.txt | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5ac418b..7de37ea 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -34,7 +34,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
+     IconThemes
+     I18n
+     KIO
+-    KHtml
+     KDELibs4Support
+     Solid
+     Bookmarks
+@@ -124,6 +123,11 @@ if(UNIX)
+     if(NOT OFFT_IS_64BIT)
+         message(FATAL_ERROR "Large file support is not enabled.")
+     endif()
++
++    find_package(KF5KHtml QUIET)
++    set_package_properties(KF5KHtml PROPERTIES TYPE OPTIONAL
++                           PURPOSE "Needed to build the man kioslave"
++                           )
+ else()
+     # FIXME: on windows we ignore support until trash gets integrated
+ endif()
+@@ -158,7 +162,9 @@ if (MTP_FOUND)
+ endif()
+ 
+ if(NOT WIN32)
+-   add_subdirectory( man )
++   if(KF5KHtml_FOUND)
++     add_subdirectory( man )
++   endif()
+    check_include_files(rpc/rpc.h HAVE_RPC_RPC_H)
+    add_feature_info("NFS kioslave" HAVE_RPC_RPC_H "The RPC library is needed 
to build the NFS kioslave")
+    if(HAVE_RPC_RPC_H)
+-- 
+2.10.2
+

Reply via email to