diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-03-13 16:38:14 +0100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-03-14 05:54:24 +1100 |
commit | 55bbebf0dfc88476fe9858bfff0251c397307335 (patch) | |
tree | 471ec82ecb6280f0e9c3a0cf02403fa520f68d06 /kde-plasma/plasma-sdk/files | |
parent | profiles: Add kde-plasma/plasma-sdk[plasmate] to package.use.mask (diff) | |
download | gentoo-55bbebf0dfc88476fe9858bfff0251c397307335.tar.gz gentoo-55bbebf0dfc88476fe9858bfff0251c397307335.tar.bz2 gentoo-55bbebf0dfc88476fe9858bfff0251c397307335.zip |
kde-plasma/plasma-sdk: Add missing DEPENDs, fix bug 577004
Package-Manager: portage-2.2.27
Diffstat (limited to 'kde-plasma/plasma-sdk/files')
3 files changed, 222 insertions, 0 deletions
diff --git a/kde-plasma/plasma-sdk/files/plasma-sdk-5.5.5-dependencies.patch b/kde-plasma/plasma-sdk/files/plasma-sdk-5.5.5-dependencies.patch new file mode 100644 index 000000000000..e585eefceef8 --- /dev/null +++ b/kde-plasma/plasma-sdk/files/plasma-sdk-5.5.5-dependencies.patch @@ -0,0 +1,51 @@ +commit 56676709a8a0ecf51429bc1ac508513f72d0a761 +Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com> +Date: Sun Mar 13 14:43:50 2016 +0100 + + Make Qt5Test really optional, fix plasmate dependencies + + KF5NewStuff, KF5Parts are only required for plasmate. + Could not push KF5ItemModels down into plasmate without breaking + build. Is it a problem within KDevPlatform? + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b556de6..bc982ae 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -74,7 +74,7 @@ endif() + # Load CMake, Compiler and InstallDirs settings from KF5 and the following are already somewhat "done" tier1/tier2 libs from kdelibs: + find_package(KF5 REQUIRED COMPONENTS + Archive Completion Config ConfigWidgets CoreAddons DBusAddons Declarative I18n IconThemes ItemModels +- KIO NewStuff Parts Plasma PlasmaQuick Service TextEditor WidgetsAddons XmlGui WindowSystem) ++ KIO Plasma PlasmaQuick Service TextEditor WidgetsAddons XmlGui WindowSystem) + + ######################################################################### + +diff --git a/cuttlefish/CMakeLists.txt b/cuttlefish/CMakeLists.txt +index 6eaa78a..5b90fef 100644 +--- a/cuttlefish/CMakeLists.txt ++++ b/cuttlefish/CMakeLists.txt +@@ -2,7 +2,9 @@ project(cuttlefish) + add_definitions(-DTRANSLATION_DOMAIN=\"cuttlefish\") + + add_subdirectory(src) +-add_subdirectory(autotests) ++if(BUILD_TESTING) ++ add_subdirectory(autotests) ++endif() + + + plasma_install_package(package org.kde.plasma.cuttlefish packages package) +diff --git a/plasmate/CMakeLists.txt b/plasmate/CMakeLists.txt +index 8f28ec4..4586102 100644 +--- a/plasmate/CMakeLists.txt ++++ b/plasmate/CMakeLists.txt +@@ -13,6 +13,8 @@ add_feature_info(GIT_EXECUTABLE_FOUND "Git" "Distributed Revision Control System + + find_package(KF5 REQUIRED COMPONENTS + KDELibs4Support ++ NewStuff ++ Parts + ) + + #install( FILES previewer/windowswitcher/thumbnails/konqueror.png diff --git a/kde-plasma/plasma-sdk/files/plasma-sdk-5.5.5-kdevplatform-lookup.patch b/kde-plasma/plasma-sdk/files/plasma-sdk-5.5.5-kdevplatform-lookup.patch new file mode 100644 index 000000000000..83d3f2e77a82 --- /dev/null +++ b/kde-plasma/plasma-sdk/files/plasma-sdk-5.5.5-kdevplatform-lookup.patch @@ -0,0 +1,139 @@ +From: Kevin Funk <kfunk@kde.org> +Date: Tue, 22 Dec 2015 14:25:48 +0000 +Subject: CMake: KDevplatform integration fixes +X-Git-Tag: v5.5.95 +X-Git-Url: http://quickgit.kde.org/?p=plasma-sdk.git&a=commitdiff&h=616cd9c3cabff9b826fdba935b65b8dc45b05ac0 +--- +CMake: KDevplatform integration fixes + +Summary: +* Adapt to kdevplatform changes +* CMake: Simplify kdevplatform lookup + +Reviewers: mart + +Reviewed By: mart + +Differential Revision: https://phabricator.kde.org/D668 +--- + + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -36,6 +36,12 @@ + set(BUILD_TESTING OFF CACHE BOOL "Build the testing tree.") + endif() + ++find_package(KDevPlatform 4.90.90) ++set_package_properties(KDevPlatform PROPERTIES ++ PURPOSE "Required for plasmate" ++ TYPE OPTIONAL ++) ++ + add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0) + + include(KDEInstallDirs) +@@ -56,7 +62,7 @@ + + # Load CMake, Compiler and InstallDirs settings from KF5 and the following are already somewhat "done" tier1/tier2 libs from kdelibs: + find_package(KF5 REQUIRED COMPONENTS +- Archive Completion Config ConfigWidgets CoreAddons DBusAddons Declarative I18n IconThemes ++ Archive Completion Config ConfigWidgets CoreAddons DBusAddons Declarative I18n IconThemes ItemModels + KIO NewStuff Parts Plasma PlasmaQuick Service TextEditor WidgetsAddons XmlGui WindowSystem) + + ######################################################################### +@@ -66,18 +72,15 @@ + + remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_KEYWORDS) + +-option(PLASMATE_BUILD_WITH_KDEVPLATFORM "Build the plasmate repository with KDevPlatform Support" OFF) +-message("Plasmate depends on Kdevplatform. So since Kdevplatform has not been released yes, Plasmate's build is being disabled by default for the time being.") +-message("Please pass -DPLASMATE_BUILD_WITH_KDEVPLATFORM=ON in order to build the Plasmate") +- + add_subdirectory(cuttlefish) + add_subdirectory(engineexplorer) + add_subdirectory(plasmoidviewer) + add_subdirectory(themeexplorer) + #add_subdirectory(remote-widgets-browser) + #add_subdirectory(wallpaperviewer) +-if(PLASMATE_BUILD_WITH_KDEVPLATFORM) ++if (KDevPlatform_FOUND) + add_subdirectory(plasmate) + endif() + ++feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) + + +--- a/plasmate/CMakeLists.txt ++++ b/plasmate/CMakeLists.txt +@@ -11,16 +11,9 @@ + find_program(GIT_EXECUTABLE_FOUND git) + add_feature_info(GIT_EXECUTABLE_FOUND "Git" "Distributed Revision Control System" "http://git-scm.com/" FALSE "" "Runtime dependency needed to use the TimeLine feature.") + +-set( KDEVELOP_VERSION_MAJOR 4 ) +-set( KDEVELOP_VERSION_MINOR 90 ) +-set( KDEVELOP_VERSION_PATCH 60 ) +-# KDevplatform dependency version +-set( KDEVPLATFORM_VERSION "1.${KDEVELOP_VERSION_MINOR}.${KDEVELOP_VERSION_PATCH}" ) +- +-find_package(KDevPlatform ${KDEVPLATFORM_VERSION} REQUIRED) +- + find_package(KF5 REQUIRED COMPONENTS +- KDELibs4Support) ++ KDELibs4Support ++) + + #install( FILES previewer/windowswitcher/thumbnails/konqueror.png + #previewer/windowswitcher/thumbnails/kmail.png + +--- a/plasmate/app/CMakeLists.txt ++++ b/plasmate/app/CMakeLists.txt +@@ -31,8 +31,8 @@ + KF5::PlasmaQuick + KF5::Archive + #${KDEPIMLIBS_KPIMUTILS_LIBS} +- ${KDEVPLATFORM_INTERFACES_LIBRARIES} +- ${KDEVPLATFORM_SHELL_LIBRARIES} ++ KDev::Interfaces ++ KDev::Shell + ) + + install(TARGETS plasmate ${INSTALL_TARGETS_DEFAULT_ARGS}) + +--- a/plasmate/plugins/plasmaprojectmanager/CMakeLists.txt ++++ b/plasmate/plugins/plasmaprojectmanager/CMakeLists.txt +@@ -6,9 +6,9 @@ + + add_library(kdevplasmamanager MODULE ${kdevplasmamanager_SRCS}) + target_link_libraries(kdevplasmamanager +- KF5::KIOWidgets + KDev::Project + KDev::Util ++ KF5::KIOWidgets + KF5::Plasma + ) + + +--- a/plasmate/plugins/savesystemview/CMakeLists.txt ++++ b/plasmate/plugins/savesystemview/CMakeLists.txt +@@ -6,12 +6,13 @@ + ) + + add_library(kdevsavesystemview MODULE ${kdevsavesystemview_SRCS}) +-target_link_libraries(kdevsavesystemview ${KDEVPLATFORM_INTERFACES_LIBRARIES} +- ${KDEVPLATFORM_PROJECT_LIBRARIES} +- ${KDEVPLATFORM_UTIL_LIBRARIES} +- ${KDEVPLATFORM_VCS_LIBRARIES} +- Qt5::Quick +- KF5::Declarative ++target_link_libraries(kdevsavesystemview ++ KDev::Interfaces ++ KDev::Project ++ KDev::Util ++ KDev::Vcs ++ Qt5::Quick ++ KF5::Declarative + ) + + install(TARGETS kdevsavesystemview DESTINATION ${PLUGIN_INSTALL_DIR} ) + diff --git a/kde-plasma/plasma-sdk/files/plasma-sdk-5.5.5-qtwebkit-optional.patch b/kde-plasma/plasma-sdk/files/plasma-sdk-5.5.5-qtwebkit-optional.patch new file mode 100644 index 000000000000..7aa92ccbdb3c --- /dev/null +++ b/kde-plasma/plasma-sdk/files/plasma-sdk-5.5.5-qtwebkit-optional.patch @@ -0,0 +1,32 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -24,7 +24,18 @@ + # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) + +-find_package(Qt5 REQUIRED NO_MODULE COMPONENTS Core DBus Gui Qml Quick Svg WebKit WebKitWidgets Widgets Xml) ++find_package(Qt5 REQUIRED NO_MODULE COMPONENTS Core DBus Gui Qml Quick Svg Widgets Xml) ++ ++find_package(Qt5WebKit ${QT_MIN_VERSION} CONFIG) ++set_package_properties(Qt5WebKit PROPERTIES ++ PURPOSE "Required for plasmate" ++ TYPE OPTIONAL ++ ) ++find_package(Qt5WebKitWidgets ${QT_MIN_VERSION} CONFIG) ++set_package_properties(Qt5WebKitWidgets PROPERTIES ++ PURPOSE "Required for plasmate" ++ TYPE OPTIONAL ++ ) + + find_package(Qt5Test ${QT_MIN_VERSION} CONFIG QUIET) + set_package_properties(Qt5Test PROPERTIES +@@ -78,7 +89,7 @@ + add_subdirectory(themeexplorer) + #add_subdirectory(remote-widgets-browser) + #add_subdirectory(wallpaperviewer) +-if (KDevPlatform_FOUND) ++if (KDevPlatform_FOUND AND Qt5WebKit_FOUND AND Qt5WebKitWidgets_FOUND) + add_subdirectory(plasmate) + endif() + + |