From d809affb860cea7b55418a23b6c034096d914413 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 4 Aug 2024 16:43:36 +0200 Subject: [PATCH] sys-power/poweralertd: new package, add 0.3.0 --- README.md | 3 ++ .../md5-cache/sys-power/poweralertd-0.3.0 | 16 +++++++++ sys-power/poweralertd/Manifest | 1 + sys-power/poweralertd/metadata.xml | 11 ++++++ .../poweralertd/poweralertd-0.3.0.ebuild | 34 +++++++++++++++++++ 5 files changed, 65 insertions(+) create mode 100644 metadata/md5-cache/sys-power/poweralertd-0.3.0 create mode 100644 sys-power/poweralertd/Manifest create mode 100644 sys-power/poweralertd/metadata.xml create mode 100644 sys-power/poweralertd/poweralertd-0.3.0.ebuild diff --git a/README.md b/README.md index 8217b61..53c9129 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,9 @@ The following packages are available in this overlay: * sys-power/amd_s2idle * S0i3/s2idle analysis script for AMD systems * https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py +* sys-power/poweralertd + * UPower-powered power alerter + * https://sr.ht/~kennylevinsen/poweralertd * sys-power/sntrack * Tracks the battery discharge rate during sleep * https://github.com/xsmile/sntrack diff --git a/metadata/md5-cache/sys-power/poweralertd-0.3.0 b/metadata/md5-cache/sys-power/poweralertd-0.3.0 new file mode 100644 index 0000000..65c4f24 --- /dev/null +++ b/metadata/md5-cache/sys-power/poweralertd-0.3.0 @@ -0,0 +1,16 @@ +BDEPEND=man? ( app-text/scdoc ) >=dev-build/meson-1.2.3 app-alternatives/ninja dev-build/meson-format-array +DEFINED_PHASES=compile configure install test +DEPEND=sys-power/upower elogind? ( sys-auth/elogind ) systemd? ( sys-apps/systemd ) !elogind? ( !systemd? ( sys-libs/basu ) ) +DESCRIPTION=UPower-powered power alerter +EAPI=8 +HOMEPAGE=https://sr.ht/~kennylevinsen/poweralertd +INHERIT=meson +IUSE=elogind systemd man +KEYWORDS=~amd64 +LICENSE=GPL-3 +RDEPEND=sys-power/upower elogind? ( sys-auth/elogind ) systemd? ( sys-apps/systemd ) !elogind? ( !systemd? ( sys-libs/basu ) ) +REQUIRED_USE=?? ( elogind systemd ) +SLOT=0 +SRC_URI=https://git.sr.ht/~kennylevinsen/poweralertd/archive/0.3.0.tar.gz -> poweralertd-0.3.0.tar.gz +_eclasses_=toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0 flag-o-matic e503ea5acc20410237ba33ec3f7c857d multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 python-utils-r1 8b220bbce5c119fb1d4d5c2f5588f3ea meson 99466844dd8d4fcfb07578a76f5a9922 +_md5_=1ecf50b520e6278b02789b501d020091 diff --git a/sys-power/poweralertd/Manifest b/sys-power/poweralertd/Manifest new file mode 100644 index 0000000..e53513b --- /dev/null +++ b/sys-power/poweralertd/Manifest @@ -0,0 +1 @@ +DIST poweralertd-0.3.0.tar.gz 40774 BLAKE2B e53b2d2f3a041b95a5ce236ef4fabd5de60a125ed1c7ea6e1716148572077c3dccd14191dbb74b4c260598dd0ea55c25debf3a5984cafad19ab4af249361b481 SHA512 db1760b536059607677781b4ac91811aedebb083ca3af90c5b328a9dd4bdd916bb0d89f553a2bf6066f88b91dcf11cb7ded35cda9f7085467138aa29c12d4ea1 diff --git a/sys-power/poweralertd/metadata.xml b/sys-power/poweralertd/metadata.xml new file mode 100644 index 0000000..a00aa0b --- /dev/null +++ b/sys-power/poweralertd/metadata.xml @@ -0,0 +1,11 @@ + + + + + Benjamin Neff + gentoo@benjaminneff.ch + + + ~kennylevinsen/poweralertd + + diff --git a/sys-power/poweralertd/poweralertd-0.3.0.ebuild b/sys-power/poweralertd/poweralertd-0.3.0.ebuild new file mode 100644 index 0000000..9bf0337 --- /dev/null +++ b/sys-power/poweralertd/poweralertd-0.3.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="UPower-powered power alerter" +HOMEPAGE="https://sr.ht/~kennylevinsen/poweralertd" +SRC_URI="https://git.sr.ht/~kennylevinsen/poweralertd/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="elogind systemd man" +REQUIRED_USE="?? ( elogind systemd )" + +DEPEND=" + sys-power/upower + + elogind? ( sys-auth/elogind ) + systemd? ( sys-apps/systemd ) + !elogind? ( !systemd? ( sys-libs/basu ) ) +" +RDEPEND="${DEPEND}" +BDEPEND="man? ( app-text/scdoc )" + +src_configure() { + local emesonargs=( + $(meson_feature man man-pages) + ) + meson_src_configure +}