summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-12-09 13:24:57 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-12-09 13:26:09 +0100
commit0e246033634e9bd6d11ee5ac2d119559ca21f7f5 (patch)
tree99b803591d53296fd5d99fac0fc93583e8d293a2 /x11-libs/snorenotify
parentmedia-gfx/photoqt: Switch to ecm.eclass, EAPI-7 bump (diff)
downloadgentoo-0e246033634e9bd6d11ee5ac2d119559ca21f7f5.tar.gz
gentoo-0e246033634e9bd6d11ee5ac2d119559ca21f7f5.tar.bz2
gentoo-0e246033634e9bd6d11ee5ac2d119559ca21f7f5.zip
x11-libs/snorenotify: Switch to ecm.eclass
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'x11-libs/snorenotify')
-rw-r--r--x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild33
1 files 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 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
}