diff options
author | Michael Palimaka <kensington@gentoo.org> | 2015-10-09 02:40:36 +1100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2015-10-09 02:41:38 +1100 |
commit | f0a8b1ab7f50cdac0ec47a3cad5c7ba89d1c07b6 (patch) | |
tree | 8667e80541dcf5489c9421bcdd69b7e18f6b6bc6 /kde-plasma/powerdevil | |
parent | 2eedcda9c023ae574aa830ad10865abe36834c56 (diff) | |
download | gentoo-f0a8b1ab7f50cdac0ec47a3cad5c7ba89d1c07b6.tar.gz gentoo-f0a8b1ab7f50cdac0ec47a3cad5c7ba89d1c07b6.tar.xz |
kde-plasma: version bump 5.4.2
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'kde-plasma/powerdevil')
-rw-r--r-- | kde-plasma/powerdevil/Manifest | 1 | ||||
-rw-r--r-- | kde-plasma/powerdevil/powerdevil-5.4.2.ebuild | 70 |
2 files changed, 71 insertions, 0 deletions
diff --git a/kde-plasma/powerdevil/Manifest b/kde-plasma/powerdevil/Manifest index d2493181c2a..935d95bddca 100644 --- a/kde-plasma/powerdevil/Manifest +++ b/kde-plasma/powerdevil/Manifest @@ -1 +1,2 @@ DIST powerdevil-5.4.1.tar.xz 346588 SHA256 709b34fd63455a0f6699c0d10b6d9390b47ce5ed1be95a3658061e0b653c86d0 SHA512 1026b62ce8288ec6f19d082fbeec22dfbb7f6a132e39d5ef4c38cce872390130292ddc4094ec76ab2ef14f9f0127cd5db07dba4a8b285b75723ce4a136f637e5 WHIRLPOOL a0f5c5c3e4bc52610045ae163c52d9a8bf6e2d90fa06689fc9ee841af6c548d41627b62ad43f3157ce43bcadbc8f16feeab8f40dd48094989cabb722ac637147 +DIST powerdevil-5.4.2.tar.xz 346520 SHA256 5caabfe1672fb0d1838eac2b06199465d8bf665c669a0f17d5c6cbed17a81a07 SHA512 5c3141462b320830da01952405d4906b2c2e7aa46c5612d83dd193318a4d4eea599b638b9fc90be58a9e0c4efbf0039431d5b7d05ad00b1150660ed36836483a WHIRLPOOL 2661c8a14a1b5a9aa6aac8b2fd747f135b6d9b9ee27097c53321fc36ce683261e08618e0eab8cb0ec5686275532ae4b634a345c6b6f0347d180a912f3d11bb0e diff --git a/kde-plasma/powerdevil/powerdevil-5.4.2.ebuild b/kde-plasma/powerdevil/powerdevil-5.4.2.ebuild new file mode 100644 index 00000000000..615361ea11b --- /dev/null +++ b/kde-plasma/powerdevil/powerdevil-5.4.2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +KDE_HANDBOOK="true" +inherit kde5 + +DESCRIPTION="Power management for KDE Plasma Shell" +HOMEPAGE="https://projects.kde.org/projects/kde/workspace/powerdevil" +KEYWORDS="~amd64 ~x86" +IUSE="systemd" + +DEPEND=" + $(add_frameworks_dep kactivities) + $(add_frameworks_dep kauth policykit) + $(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_plasma_dep libkscreen) + $(add_plasma_dep plasma-workspace) + dev-qt/qtdbus:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + dev-qt/qtx11extras:5 + virtual/libudev:= + x11-libs/libxcb +" + +RDEPEND="${DEPEND} + $(add_plasma_dep kde-cli-tools) + || ( sys-power/upower-pm-utils >=sys-power/upower-0.9.23 ) + !systemd? ( sys-auth/polkit-pkla-compat ) + !kde-base/powerdevil:4 + !kde-base/systemsettings:4[handbook] +" + +src_install() { + kde5_src_install + + if ! use systemd ; then + insinto /etc/polkit-1/localauthority/10-vendor.d/ + doins "${FILESDIR}"/10-org.freedesktop.upower.pkla + doins "${FILESDIR}"/20-org.freedesktop.consolekit.system.stop-multiple-users.pkla + doins "${FILESDIR}"/30-org.freedesktop.consolekit.system.restart-multiple-users.pkla + fi +} + +pkg_postinst() { + kde5_pkg_postinst + + if ! has_version sys-power/upower-pm-utils && ! use systemd ; then + ewarn "Suspend and hibernate will not be available as it requires sys-power/upower-pm-utils" + ewarn "on non-systemd systems. Please install it if you require this functionality." + fi +} |