From 0e246033634e9bd6d11ee5ac2d119559ca21f7f5 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Mon, 9 Dec 2019 13:24:57 +0100 Subject: x11-libs/snorenotify: Switch to ecm.eclass Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner --- x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild | 33 ++++++++++-------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'x11-libs') diff --git a/x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild b/x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild index f814dda6bb2c..2b479bcaab97 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 } -- cgit v1.2.3-65-gdbad