summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-12-23 00:30:48 +0100
committerMichał Górny <mgorny@gentoo.org>2020-12-23 00:35:48 +0100
commit23d8e74a898598b0fdf8c4e07e30f20be9489a62 (patch)
tree159986de101d52d1109bdcab6f2283a273025c78 /xfce-extra
parentxfce-base/xfce4-settings: Bump to 4.16.0 (diff)
downloadgentoo-23d8e74a898598b0fdf8c4e07e30f20be9489a62.tar.gz
gentoo-23d8e74a898598b0fdf8c4e07e30f20be9489a62.tar.bz2
gentoo-23d8e74a898598b0fdf8c4e07e30f20be9489a62.zip
xfce-extra/xfce4-power-manager: Bump to 4.16.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'xfce-extra')
-rw-r--r--xfce-extra/xfce4-power-manager/Manifest1
-rw-r--r--xfce-extra/xfce4-power-manager/xfce4-power-manager-4.16.0.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/xfce-extra/xfce4-power-manager/Manifest b/xfce-extra/xfce4-power-manager/Manifest
index cee3f1aa88f4..7b4c202fe7c0 100644
--- a/xfce-extra/xfce4-power-manager/Manifest
+++ b/xfce-extra/xfce4-power-manager/Manifest
@@ -1,2 +1,3 @@
DIST xfce4-power-manager-1.6.6.tar.bz2 1227814 BLAKE2B c5f9ca3ff1f7bbed8c534cbba43355a62734b6e1553f852740fe332545df910ecba07be249365f9815b2467226d67a41cdb740e99d4f547ee86abf2d014211f6 SHA512 c9377619df9ebab64ed234659e5798f47448e26fae5b19eb15bcbc9416df1afec6b4de32bc272b81531d2643a215ea46892523077017dc6b232bfe802dba6cd9
DIST xfce4-power-manager-1.7.1.tar.bz2 1230284 BLAKE2B 7118f0a864bb50a2a9ed96da91d8196dd28c21f4b3e33a98226a7ad50f85bc81d5522255f454cccf9bf189acf2f3c45f7686580c2d6d397de740b77d277e13b2 SHA512 cc29902ee6f01983ba507c2ab961db4f2ae5e12539e954d58af3f71e85370243e252833cd835830a51d05e104316327ffc7af01fb09a436af2e00f4e06564785
+DIST xfce4-power-manager-4.16.0.tar.bz2 1234968 BLAKE2B 0299bc293769411384b34c81c907f75ba6503db11f1636366a599938d37eda0843e1850c584c37186529c0c97eaca73bc5d488d4916087a42c5c5f68ae8787c8 SHA512 1c6ecfb7696bc13c9b11fdfb4ad4e3278de2350bbc59c84c933b28c07c1a0c55b9954794e1f57e4407d2b54ffaace9ea5baed829bf0683332cf9d12bff7e71ec
diff --git a/xfce-extra/xfce4-power-manager/xfce4-power-manager-4.16.0.ebuild b/xfce-extra/xfce4-power-manager/xfce4-power-manager-4.16.0.ebuild
new file mode 100644
index 000000000000..afdc9e884f03
--- /dev/null
+++ b/xfce-extra/xfce4-power-manager/xfce4-power-manager-4.16.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit xdg-utils
+
+DESCRIPTION="Power manager for the Xfce desktop environment"
+HOMEPAGE="https://goodies.xfce.org/projects/applications/xfce4-power-manager"
+SRC_URI="https://archive.xfce.org/src/xfce/${PN}/${PV%.*}/${P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="kernel_linux networkmanager +panel-plugin policykit"
+
+DEPEND=">=dev-libs/glib-2.50
+ >=sys-power/upower-0.99.0
+ >=x11-libs/gtk+-3.14:3
+ >=x11-libs/libnotify-0.7
+ x11-libs/libX11
+ >=x11-libs/libXrandr-1.2
+ x11-libs/libXext
+ x11-libs/libXtst
+ >=xfce-base/xfconf-4.12:=
+ >=xfce-base/libxfce4ui-4.12:=[gtk3(+)]
+ >=xfce-base/libxfce4util-4.12:=
+ panel-plugin? ( >=xfce-base/xfce4-panel-4.12:= )
+ policykit? ( >=sys-auth/polkit-0.112 )"
+RDEPEND="${DEPEND}
+ networkmanager? ( net-misc/networkmanager )"
+DEPEND+="
+ x11-base/xorg-proto"
+BDEPEND="
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_configure() {
+ local myconf=(
+ $(use_enable policykit polkit)
+ $(use_enable networkmanager network-manager)
+ $(use_enable panel-plugin xfce4panel)
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
+
+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() {
+ xdg_icon_cache_update
+}