diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-10-08 22:56:13 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-10-08 22:57:12 +0200 |
commit | 34260b21a81f95de61c656a35643553d000de70e (patch) | |
tree | a379021ca02f7317f2ef214152d4e901250c715f /xfce-extra | |
parent | dev-python/passlib: Bump to 1.7.4 (diff) | |
download | gentoo-34260b21a81f95de61c656a35643553d000de70e.tar.gz gentoo-34260b21a81f95de61c656a35643553d000de70e.tar.bz2 gentoo-34260b21a81f95de61c656a35643553d000de70e.zip |
xfce-extra/xfce4-power-manager: Remove unnecessary dep on pm-utils
pm-utils are used only as a last resort fallback for suspend/hibernate
support. The preferred provider for these functions is logind.
However, both are entirely optional runtime deps, so just report missing
logind in postinst.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'xfce-extra')
-rw-r--r-- | xfce-extra/xfce4-power-manager/xfce4-power-manager-1.6.6-r1.ebuild (renamed from xfce-extra/xfce4-power-manager/xfce4-power-manager-1.6.6.ebuild) | 7 | ||||
-rw-r--r-- | xfce-extra/xfce4-power-manager/xfce4-power-manager-1.7.0-r1.ebuild (renamed from xfce-extra/xfce4-power-manager/xfce4-power-manager-1.7.0.ebuild) | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/xfce-extra/xfce4-power-manager/xfce4-power-manager-1.6.6.ebuild b/xfce-extra/xfce4-power-manager/xfce4-power-manager-1.6.6-r1.ebuild index 4b9aa22bbe90..641b2904d0af 100644 --- a/xfce-extra/xfce4-power-manager/xfce4-power-manager-1.6.6.ebuild +++ b/xfce-extra/xfce4-power-manager/xfce4-power-manager-1.6.6-r1.ebuild @@ -15,7 +15,6 @@ IUSE="kernel_linux networkmanager +panel-plugin policykit" COMMON_DEPEND=">=dev-libs/glib-2.42 >=sys-power/upower-0.99.0 - sys-power/pm-utils >=x11-libs/gtk+-3.14:3 >=x11-libs/libnotify-0.7 x11-libs/libX11 @@ -52,6 +51,12 @@ src_install() { pkg_postinst() { xdg_icon_cache_update + + if ! has_version sys-apps/systemd && ! has_version sys-auth/elogind + then + elog "Suspend/hibernate support requires a logind provider installed" + elog "(sys-apps/systemd or sys-auth/elogind)" + fi } pkg_postrm() { diff --git a/xfce-extra/xfce4-power-manager/xfce4-power-manager-1.7.0.ebuild b/xfce-extra/xfce4-power-manager/xfce4-power-manager-1.7.0-r1.ebuild index 9df144416fc2..3cc989ee9369 100644 --- a/xfce-extra/xfce4-power-manager/xfce4-power-manager-1.7.0.ebuild +++ b/xfce-extra/xfce4-power-manager/xfce4-power-manager-1.7.0-r1.ebuild @@ -15,7 +15,6 @@ IUSE="kernel_linux networkmanager +panel-plugin policykit" COMMON_DEPEND=">=dev-libs/glib-2.42 >=sys-power/upower-0.99.0 - sys-power/pm-utils >=x11-libs/gtk+-3.14:3 >=x11-libs/libnotify-0.7 x11-libs/libX11 @@ -52,6 +51,12 @@ src_install() { pkg_postinst() { xdg_icon_cache_update + + if ! has_version sys-apps/systemd && ! has_version sys-auth/elogind + then + elog "Suspend/hibernate support requires a logind provider installed" + elog "(sys-apps/systemd or sys-auth/elogind)" + fi } pkg_postrm() { |