media-gfx/wally: Drop USE=kde, ebuild makeover, bug #629032
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 1 Oct 2017 15:36:35 +0000 (17:36 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 1 Oct 2017 16:15:46 +0000 (18:15 +0200)
Package-Manager: Portage-2.3.10, Repoman-2.3.3

media-gfx/wally/files/wally-2.2.0-disable-kde4.patch [deleted file]
media-gfx/wally/wally-2.4.5.ebuild

diff --git a/media-gfx/wally/files/wally-2.2.0-disable-kde4.patch b/media-gfx/wally/files/wally-2.2.0-disable-kde4.patch
deleted file mode 100644 (file)
index 95f471c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -238,11 +238,6 @@ else( APPLE )
-     add_custom_command( TARGET ${PROGNAME} POST_BUILD COMMAND strip ARGS ${WALLY_PATH} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
-   endif( CMAKE_BUILD_TYPE STREQUAL Release )
--  find_package( KDE4 )
--  if ( KDE4_FOUND )
--    add_subdirectory( ${CMAKE_SOURCE_DIR}/wallyplugin )
--  endif( KDE4_FOUND )
--
- endif( APPLE )
- file( GLOB TS_FILES ${CMAKE_SOURCE_DIR}/res/lang/*.ts )
index 26ef94ccc9d071c356eac3bd14691370fc6e7d0f..e22dcfe2f182d16889ea3fe7485fbed2d9f82d8f 100644 (file)
@@ -1,20 +1,18 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-KDE_REQUIRED="optional"
-SQL_REQUIRED="always"
-inherit eutils kde4-base readme.gentoo
+inherit cmake-utils eutils xdg-utils
 
-DESCRIPTION="A Qt4/KDE4 wallpaper changer"
+DESCRIPTION="Qt4 wallpaper changer"
 HOMEPAGE="http://www.becrux.com/index.php?page=projects&name=wally"
 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="4"
 KEYWORDS="amd64 x86"
-IUSE="debug kde"
+IUSE="debug"
 
 DEPEND="
        dev-qt/qtcore:4
@@ -24,28 +22,17 @@ DEPEND="
        dev-qt/qtsvg:4
        media-libs/libexif
        x11-libs/libX11
-       kde? ( kde-frameworks/kdelibs:4[plasma(+)] )
 "
 RDEPEND="${DEPEND}"
 
-DOCS=(
-       "AUTHORS" "ChangeLog" "README" "README.XFCE4"
-       "README.shortcuts" "TODO"
-)
-PATCHES=(
-       "${FILESDIR}"/${PN}-2.2.0-disable_popup.patch
-)
-
-src_prepare() {
-       DOC_CONTENTS="In order to use wallyplugin you need to
-               restart plasma in your KDE4 enviroment."
-       kde4-base_src_prepare
-       use kde || epatch "${FILESDIR}"/${PN}-2.2.0-disable-kde4.patch
-}
+DOCS=( AUTHORS ChangeLog README README.XFCE4 README.shortcuts TODO )
+
+PATCHES=( "${FILESDIR}"/${PN}-2.2.0-disable_popup.patch )
 
 src_configure() {
-       mycmakeargs=(
+       local mycmakeargs=(
                -DSTATIC=FALSE
+               -DCMAKE_DISABLE_FIND_PACKAGE_KDE4=ON
        )
        cmake-utils_src_configure
 }
@@ -54,9 +41,14 @@ src_install() {
        cmake-utils_src_install
        newicon "${S}"/res/images/idle.png wally.png
        make_desktop_entry wally Wally wally "Graphics;Qt"
-       use kde && readme.gentoo_create_doc
 }
 
 pkg_postinst() {
-       use kde && readme.gentoo_print_elog
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
 }