Skip to content

Commit

Permalink
sys-power/poweralertd: new package, add 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux88 committed Aug 4, 2024
1 parent 1231988 commit d809aff
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions metadata/md5-cache/sys-power/poweralertd-0.3.0
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions sys-power/poweralertd/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST poweralertd-0.3.0.tar.gz 40774 BLAKE2B e53b2d2f3a041b95a5ce236ef4fabd5de60a125ed1c7ea6e1716148572077c3dccd14191dbb74b4c260598dd0ea55c25debf3a5984cafad19ab4af249361b481 SHA512 db1760b536059607677781b4ac91811aedebb083ca3af90c5b328a9dd4bdd916bb0d89f553a2bf6066f88b91dcf11cb7ded35cda9f7085467138aa29c12d4ea1
11 changes: 11 additions & 0 deletions sys-power/poweralertd/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Benjamin Neff</name>
<email>[email protected]</email>
</maintainer>
<upstream>
<remote-id type="sourcehut">~kennylevinsen/poweralertd</remote-id>
</upstream>
</pkgmetadata>
34 changes: 34 additions & 0 deletions sys-power/poweralertd/poweralertd-0.3.0.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit d809aff

Please sign in to comment.