public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/wally/, media-gfx/wally/files/
@ 2017-10-01 16:25 Andreas Sturmlechner
  0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2017-10-01 16:25 UTC (permalink / raw
  To: gentoo-commits

commit:     7562815cf329f4f3dea152e55bdad21ad6bd37ce
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  1 15:36:35 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Oct  1 16:15:46 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7562815c

media-gfx/wally: Drop USE=kde, ebuild makeover, bug #629032

Package-Manager: Portage-2.3.10, Repoman-2.3.3

 .../wally/files/wally-2.2.0-disable-kde4.patch     | 14 --------
 media-gfx/wally/wally-2.4.5.ebuild                 | 40 +++++++++-------------
 2 files changed, 16 insertions(+), 38 deletions(-)

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
index 95f471ce1cd..00000000000
--- a/media-gfx/wally/files/wally-2.2.0-disable-kde4.patch
+++ /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 )

diff --git a/media-gfx/wally/wally-2.4.5.ebuild b/media-gfx/wally/wally-2.4.5.ebuild
index 26ef94ccc9d..e22dcfe2f18 100644
--- a/media-gfx/wally/wally-2.4.5.ebuild
+++ b/media-gfx/wally/wally-2.4.5.ebuild
@@ -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
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-01 16:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-01 16:25 [gentoo-commits] repo/gentoo:master commit in: media-gfx/wally/, media-gfx/wally/files/ Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox