commit:     77a66a86deea6c11b681437bd66e38df7c93b280
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sat Dec 19 13:36:07 2015 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Dec 20 15:47:34 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77a66a86

kde-apps/kdeartwork-weatherwallpapers: Port to kf5

Package-Manager: portage-2.2.24

 ...rtwork-weatherwallpapers-15.08.3-kf5-port.patch | 49 ++++++++++++++++++++++
 .../kdeartwork-weatherwallpapers-15.08.3-r1.ebuild | 31 ++++++++++++++
 2 files changed, 80 insertions(+)

diff --git 
a/kde-apps/kdeartwork-weatherwallpapers/files/kdeartwork-weatherwallpapers-15.08.3-kf5-port.patch
 
b/kde-apps/kdeartwork-weatherwallpapers/files/kdeartwork-weatherwallpapers-15.08.3-kf5-port.patch
new file mode 100644
index 0000000..925560d
--- /dev/null
+++ 
b/kde-apps/kdeartwork-weatherwallpapers/files/kdeartwork-weatherwallpapers-15.08.3-kf5-port.patch
@@ -0,0 +1,49 @@
+--- a/CMakeLists.txt   2013-10-18 18:04:24.000000000 +0200
++++ b/CMakeLists.txt   2015-12-19 14:20:50.523356947 +0100
+@@ -3,9 +3,14 @@
+ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
+ 
+ # search packages used by KDE
+-find_package(KDE4 REQUIRED)
+-include (KDE4Defaults)
+-include (MacroLibrary)
++cmake_minimum_required(VERSION 2.8.12)
++
++find_package(ECM 0.0.9 REQUIRED NO_MODULE)
++set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
++
++include(KDEInstallDirs)
++include(KDECMakeSettings)
++include(ECMOptionalAddSubdirectory)
+ 
+ add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
+ add_definitions( -DQT_NO_CAST_FROM_ASCII )
+@@ -14,18 +19,17 @@
+ include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
+ 
+ 
+-macro_optional_add_subdirectory(ColorSchemes)
+-macro_optional_add_subdirectory(IconThemes)
+-macro_optional_add_subdirectory(emoticons)
+-macro_optional_add_subdirectory(kscreensaver)
++ecm_optional_add_subdirectory(ColorSchemes)
++ecm_optional_add_subdirectory(IconThemes)
++ecm_optional_add_subdirectory(emoticons)
++ecm_optional_add_subdirectory(kscreensaver)
+ if (Q_WS_X11)
+-   macro_optional_add_subdirectory(kwin-styles)
++   ecm_optional_add_subdirectory(kwin-styles)
+ endif (Q_WS_X11)
+-macro_optional_add_subdirectory(styles)
+-macro_optional_add_subdirectory(wallpapers)
+-macro_optional_add_subdirectory(HighResolutionWallpapers)
+-macro_optional_add_subdirectory(WeatherWallpapers)
+-macro_optional_add_subdirectory(desktopthemes)
++ecm_optional_add_subdirectory(styles)
++ecm_optional_add_subdirectory(wallpapers)
++ecm_optional_add_subdirectory(HighResolutionWallpapers)
++ecm_optional_add_subdirectory(WeatherWallpapers)
++ecm_optional_add_subdirectory(desktopthemes)
+ 
+-macro_display_feature_log()
+ 

diff --git 
a/kde-apps/kdeartwork-weatherwallpapers/kdeartwork-weatherwallpapers-15.08.3-r1.ebuild
 
b/kde-apps/kdeartwork-weatherwallpapers/kdeartwork-weatherwallpapers-15.08.3-r1.ebuild
new file mode 100644
index 0000000..5adef36
--- /dev/null
+++ 
b/kde-apps/kdeartwork-weatherwallpapers/kdeartwork-weatherwallpapers-15.08.3-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kdeartwork"
+KDE_AUTODEPS="false"
+KDE_SCM="svn"
+inherit kde5
+
+DESCRIPTION="Weather aware wallpapers. Changes with weather outside"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="$(add_frameworks_dep extra-cmake-modules)"
+RDEPEND="
+       $(add_kdeapps_dep kdeartwork-wallpapers)
+       !kde-apps/kdeartwork-weatherwallpapers:4
+"
+
+PATCHES=( "${FILESDIR}/${P}-kf5-port.patch" )
+
+src_configure() {
+       local mycmakeargs=(
+               -DDISABLE_ALL_OPTIONAL_SUBDIRECTORIES=TRUE
+               -DBUILD_WeatherWallpapers=TRUE
+       )
+
+       kde5_src_configure
+}

Reply via email to