commit: cab22e0a5afd34e630c855bcca432cc2233576a5 Author: Johannes Huber <johu <AT> gentoo <DOT> org> AuthorDate: Mon May 26 12:07:33 2014 +0000 Commit: Johannes Huber <johu <AT> gentoo <DOT> org> CommitDate: Mon May 26 12:07:33 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=cab22e0a
[kde-base/powerdevil:5] Re-work, bug #511496 Based on the user closed pull request https://github.com/gentoo/kde/pull/27. Thanks to Elias Probst <mail <AT> eliasprobst.eu>. Package-Manager: portage-2.2.10 --- kde-base/powerdevil/metadata.xml | 1 + kde-base/powerdevil/powerdevil-4.96.0.ebuild | 48 ++++++++++++++++++++++++---- kde-base/powerdevil/powerdevil-9999.ebuild | 48 ++++++++++++++++++++++++---- 3 files changed, 83 insertions(+), 14 deletions(-) diff --git a/kde-base/powerdevil/metadata.xml b/kde-base/powerdevil/metadata.xml index 4116ba0..2a5cde4 100644 --- a/kde-base/powerdevil/metadata.xml +++ b/kde-base/powerdevil/metadata.xml @@ -4,5 +4,6 @@ <herd>kde</herd> <use> <flag name="pm-utils">Adds support for suspend/resume the system through <pkg>sys-power/pm-utils</pkg></flag> + <flag name="upower">Adds support for the <pkg>sys-power/upower</pkg> backend</flag> </use> </pkgmetadata> diff --git a/kde-base/powerdevil/powerdevil-4.96.0.ebuild b/kde-base/powerdevil/powerdevil-4.96.0.ebuild index 33bb718..b34db6e 100644 --- a/kde-base/powerdevil/powerdevil-4.96.0.ebuild +++ b/kde-base/powerdevil/powerdevil-4.96.0.ebuild @@ -6,18 +6,52 @@ EAPI=5 inherit kde5 -DESCRIPTION="Manages the power consumption settings of a Plasma Shell" +DESCRIPTION="Power management for KDE Plasma Shell" HOMEPAGE="https://projects.kde.org/projects/kde/workspace/powerdevil" - -LICENSE="GPL-2 LGPL-2.1" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="+upower X" DEPEND=" - $(add_frameworks_dep krunner) - dev-qt/qtdeclarative:5 + $(add_frameworks_dep kauth) + $(add_frameworks_dep kcompletion) + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kconfigwidgets) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep kdbusaddons) + $(add_frameworks_dep kdelibs4support) + $(add_frameworks_dep kglobalaccel) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep kidletime) + $(add_frameworks_dep kio) + $(add_frameworks_dep knotifications) + $(add_frameworks_dep knotifyconfig) + $(add_frameworks_dep kservice) + $(add_frameworks_dep kwidgetsaddons) + $(add_frameworks_dep kxmlgui) + $(add_frameworks_dep solid) + $(add_kdebase_dep plasma-workspace) + dev-qt/qtdbus:5 dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + upower? ( sys-power/upoweri:= ) + X? ( + dev-qt/qtx11extras:5 + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXrandr + ) " -RDEPEND="${DEPEND} + +RDEPEND=" + ${DEPEND} !kde-base/powerdevil:4 " + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_find_package upower UDev) + $(cmake-utils_use_find_package X X11) + ) + + kde5_src_configure +} diff --git a/kde-base/powerdevil/powerdevil-9999.ebuild b/kde-base/powerdevil/powerdevil-9999.ebuild index 9fcdef6..5bf23ce 100644 --- a/kde-base/powerdevil/powerdevil-9999.ebuild +++ b/kde-base/powerdevil/powerdevil-9999.ebuild @@ -6,18 +6,52 @@ EAPI=5 inherit kde5 -DESCRIPTION="Manages the power consumption settings of a Plasma Shell" +DESCRIPTION="Power management for KDE Plasma Shell" HOMEPAGE="https://projects.kde.org/projects/kde/workspace/powerdevil" - -LICENSE="GPL-2 LGPL-2.1" KEYWORDS="" -IUSE="" +IUSE="+upower X" DEPEND=" - $(add_frameworks_dep krunner) - dev-qt/qtdeclarative:5 + $(add_frameworks_dep kauth) + $(add_frameworks_dep kcompletion) + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kconfigwidgets) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep kdbusaddons) + $(add_frameworks_dep kdelibs4support) + $(add_frameworks_dep kglobalaccel) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep kidletime) + $(add_frameworks_dep kio) + $(add_frameworks_dep knotifications) + $(add_frameworks_dep knotifyconfig) + $(add_frameworks_dep kservice) + $(add_frameworks_dep kwidgetsaddons) + $(add_frameworks_dep kxmlgui) + $(add_frameworks_dep solid) + $(add_kdebase_dep plasma-workspace) + dev-qt/qtdbus:5 dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + upower? ( sys-power/upoweri:= ) + X? ( + dev-qt/qtx11extras:5 + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXrandr + ) " -RDEPEND="${DEPEND} + +RDEPEND=" + ${DEPEND} !kde-base/powerdevil:4 " + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_find_package upower UDev) + $(cmake-utils_use_find_package X X11) + ) + + kde5_src_configure +}