kde-apps/kde-wallpapers: It is slot 5, so port it to kf5
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Sun, 30 Aug 2015 12:31:33 +0000 (14:31 +0200)
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Sun, 27 Sep 2015 23:41:25 +0000 (01:41 +0200)
Fixes https://bugs.gentoo.org/show_bug.cgi?id=559156

Package-Manager: portage-2.2.20.1

kde-apps/kde-wallpapers/files/kde-wallpapers-15.08.0-kf5-port.patch [new file with mode: 0644]
kde-apps/kde-wallpapers/kde-wallpapers-15.08.0.ebuild
kde-apps/kde-wallpapers/kde-wallpapers-15.08.1.ebuild

diff --git a/kde-apps/kde-wallpapers/files/kde-wallpapers-15.08.0-kf5-port.patch b/kde-apps/kde-wallpapers/files/kde-wallpapers-15.08.0-kf5-port.patch
new file mode 100644 (file)
index 0000000..502837c
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/CMakeLists.txt   2015-08-30 14:18:57.169314811 +0200
++++ b/CMakeLists.txt   2015-08-30 14:17:34.534347890 +0200
+@@ -1,5 +1,10 @@
+-find_package(KDE4 REQUIRED)
+-include(KDE4Defaults)
++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)
+ install(DIRECTORY Ariya DESTINATION ${WALLPAPER_INSTALL_DIR} PATTERN .svn EXCLUDE)
index 8e2328c85f83b7dec22acadad2ec0ef0815a2e2c..96e4903d30192bdb4bc26a65bd1f8b88dd798ff7 100644 (file)
@@ -13,8 +13,11 @@ DESCRIPTION="KDE wallpapers"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
+DEPEND="$(add_frameworks_dep extra-cmake-modules)"
 RDEPEND="!kde-apps/kde-wallpapers:4"
 
+PATCHES=( "${FILESDIR}/${PN}-15.08.0-kf5-port.patch" ) # bug 559156
+
 src_configure() {
        local mycmakeargs=( -DWALLPAPER_INSTALL_DIR="${EPREFIX}/usr/share/wallpapers" )
 
index 8e2328c85f83b7dec22acadad2ec0ef0815a2e2c..96e4903d30192bdb4bc26a65bd1f8b88dd798ff7 100644 (file)
@@ -13,8 +13,11 @@ DESCRIPTION="KDE wallpapers"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
+DEPEND="$(add_frameworks_dep extra-cmake-modules)"
 RDEPEND="!kde-apps/kde-wallpapers:4"
 
+PATCHES=( "${FILESDIR}/${PN}-15.08.0-kf5-port.patch" ) # bug 559156
+
 src_configure() {
        local mycmakeargs=( -DWALLPAPER_INSTALL_DIR="${EPREFIX}/usr/share/wallpapers" )