commit:     997c773fb537808f5c175e46987230cdbc352fae
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  9 11:50:41 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Dec  9 12:26:08 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=997c773f

media-gfx/photoqt: Switch to ecm.eclass, EAPI-7 bump

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-gfx/photoqt/photoqt-1.7.1-r1.ebuild | 26 ++++++++------------------
 1 file changed, 8 insertions(+), 18 deletions(-)

diff --git a/media-gfx/photoqt/photoqt-1.7.1-r1.ebuild 
b/media-gfx/photoqt/photoqt-1.7.1-r1.ebuild
index b8f003fbdbf..53e9fae1e60 100644
--- a/media-gfx/photoqt/photoqt-1.7.1-r1.ebuild
+++ b/media-gfx/photoqt/photoqt-1.7.1-r1.ebuild
@@ -1,9 +1,10 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit cmake-utils gnome2-utils xdg-utils
+ECM_KDEINSTALLDIRS=false
+inherit ecm
 
 DESCRIPTION="Simple but powerful Qt-based image viewer"
 HOMEPAGE="https://photoqt.org/";
@@ -14,8 +15,10 @@ SLOT="0"
 KEYWORDS="amd64 x86"
 IUSE="devil exif freeimage graphicsmagick pdf raw"
 
+BDEPEND="
+       dev-qt/linguist-tools:5
+"
 RDEPEND="
-       dev-qt/qtcore:5
        dev-qt/qtdeclarative:5
        dev-qt/qtgraphicaleffects:5
        dev-qt/qtgui:5
@@ -36,10 +39,7 @@ RDEPEND="
        pdf? ( app-text/poppler[qt5] )
        raw? ( media-libs/libraw:= )
 "
-DEPEND="${RDEPEND}
-       dev-qt/linguist-tools:5
-       kde-frameworks/extra-cmake-modules:5
-"
+DEPEND="${RDEPEND}"
 
 PATCHES=(
        "${FILESDIR}/${P}-cmake.patch"
@@ -55,15 +55,5 @@ src_configure() {
                -DPOPPLER=$(usex pdf)
                -DRAW=$(usex raw)
        )
-       cmake-utils_src_configure
-}
-
-pkg_postinst() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
-}
-
-pkg_postrm() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
+       ecm_src_configure
 }

Reply via email to