summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2016-11-01 13:21:17 +0100
committerJohannes Huber <johu@gentoo.org>2016-11-01 13:21:50 +0100
commit5ced81909ccca68b76d28efa067cc2da7a2ba9f1 (patch)
tree8d8d512409edc60641aa465c584a1f803c92157c /kde-misc/kshutdown
parentpackage.mask: update Gnome 3.22 mask (diff)
downloadgentoo-5ced81909ccca68b76d28efa067cc2da7a2ba9f1.tar.gz
gentoo-5ced81909ccca68b76d28efa067cc2da7a2ba9f1.tar.bz2
gentoo-5ced81909ccca68b76d28efa067cc2da7a2ba9f1.zip
kde-misc/kshutdown: Add kde use flag
Gentoo-bug: 597100 Package-Manager: portage-2.3.2
Diffstat (limited to 'kde-misc/kshutdown')
-rw-r--r--kde-misc/kshutdown/kshutdown-4.0.ebuild53
1 files changed, 22 insertions, 31 deletions
diff --git a/kde-misc/kshutdown/kshutdown-4.0.ebuild b/kde-misc/kshutdown/kshutdown-4.0.ebuild
index 426aa05b4f11..62a531ee2d64 100644
--- a/kde-misc/kshutdown/kshutdown-4.0.ebuild
+++ b/kde-misc/kshutdown/kshutdown-4.0.ebuild
@@ -4,59 +4,50 @@
EAPI=6
-inherit cmake-utils gnome2-utils
-
+KDE_TEST="false"
+KDE_AUTODEPS="false"
MY_P=${PN}-source-${PV/_}
+inherit kde5
-DESCRIPTION="A shutdown manager for KDE"
+DESCRIPTION="Shutdown manager for desktop environmenmts like KDE Plasma"
HOMEPAGE="http://kshutdown.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
LICENSE="GPL-2+"
-SLOT="5"
KEYWORDS="~amd64 ~x86"
-IUSE="debug"
+IUSE="+kde"
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtdbus:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
- kde-frameworks/kconfig:5
- kde-frameworks/kconfigwidgets:5
- kde-frameworks/kcoreaddons:5
- kde-frameworks/kdbusaddons:5
- kde-frameworks/kglobalaccel:5
- kde-frameworks/ki18n:5
- kde-frameworks/kidletime:5
- kde-frameworks/knotifications:5
- kde-frameworks/knotifyconfig:5
- kde-frameworks/kwidgetsaddons:5
- kde-frameworks/kxmlgui:5
+ kde? (
+ kde-frameworks/kconfig:5
+ kde-frameworks/kconfigwidgets:5
+ kde-frameworks/kcoreaddons:5
+ kde-frameworks/kdbusaddons:5
+ kde-frameworks/kglobalaccel:5
+ kde-frameworks/ki18n:5
+ kde-frameworks/kidletime:5
+ kde-frameworks/knotifications:5
+ kde-frameworks/knotifyconfig:5
+ kde-frameworks/kwidgetsaddons:5
+ kde-frameworks/kxmlgui:5
+ )
!kde-misc/kshutdown:4
"
DEPEND="${RDEPEND}
app-arch/unzip
- kde-frameworks/extra-cmake-modules:5
+ kde? ( kde-frameworks/extra-cmake-modules:5 )
sys-devel/gettext
"
src_configure() {
local mycmakeargs=(
- -DKS_KF5=TRUE
+ -DKS_KF5=$(usex kde)
+ -DKS_PURE_QT=$(usex !kde)
)
- cmake-utils_src_configure
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- gnome2_icon_cache_update
-}
-
-pkg_postrm() {
- gnome2_icon_cache_update
+ kde5_src_configure
}