media-gfx/photoqt: Switch to ecm.eclass, EAPI-7 bump
authorAndreas Sturmlechner <asturm@gentoo.org>
Mon, 9 Dec 2019 11:50:41 +0000 (12:50 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 9 Dec 2019 12:26:08 +0000 (13:26 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-gfx/photoqt/photoqt-1.7.1-r1.ebuild

index b8f003fbdbfae8323489390a931408de2b8759bc..53e9fae1e6053d517412c7b15e5d60405b391954 100644 (file)
@@ -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
 }