commit:     0e246033634e9bd6d11ee5ac2d119559ca21f7f5
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  9 12:24:57 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Dec  9 12:26:09 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e246033

x11-libs/snorenotify: Switch to ecm.eclass

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

 x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild | 33 ++++++++++--------------
 1 file changed, 14 insertions(+), 19 deletions(-)

diff --git a/x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild 
b/x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild
index f814dda6bb2..2b479bcaab9 100644
--- a/x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild
+++ b/x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild
@@ -1,9 +1,10 @@
-# Copyright 1999-2018 Gentoo Foundation
+# 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 virtualx
+VIRTUALX_REQUIRED="test"
+inherit ecm
 
 DESCRIPTION="Multi platform Qt notification framework"
 HOMEPAGE="https://techbase.kde.org/Projects/Snorenotify";
@@ -14,8 +15,10 @@ SLOT="0"
 KEYWORDS="amd64 ~arm x86"
 IUSE="sound test"
 
+BDEPEND="
+       dev-qt/linguist-tools:5
+"
 RDEPEND="
-       dev-qt/qtcore:5
        dev-qt/qtdbus:5
        dev-qt/qtdeclarative:5
        dev-qt/qtgui:5
@@ -25,8 +28,6 @@ RDEPEND="
        sound? ( dev-qt/qtmultimedia:5 )
 "
 DEPEND="${RDEPEND}
-       dev-qt/linguist-tools:5
-       kde-frameworks/extra-cmake-modules
        test? ( dev-qt/qttest:5 )
 "
 
@@ -35,23 +36,17 @@ PATCHES=(
        "${FILESDIR}/${P}-include.patch"
 )
 
+src_prepare() {
+       ecm_src_prepare
+       sed -e "/Categories/s/;Qt//" \
+               -i src/{settings/snoresettings,daemon/snorenotify}.desktop.in 
|| die
+}
+
 src_configure() {
        local mycmakeargs=(
                $(cmake-utils_use_find_package sound Qt5Multimedia)
                $(cmake-utils_use_find_package test Qt5Test)
        )
 
-       cmake-utils_src_configure
-}
-
-src_test() {
-       virtx cmake-utils_src_test
-}
-
-pkg_postinst() {
-       gnome2_icon_cache_update
-}
-
-pkg_postrm() {
-       gnome2_icon_cache_update
+       ecm_src_configure
 }

Reply via email to