sys-power/poweralertd: new package, add 0.3.0

Signed-off-by: Hee-Suk Kim <hskim@dilluti0n.com>
This commit is contained in:
Hee-Suk Kim committed 2026-09-21 10:49:34 +09:00
1 parent 6e8a5cc748
commit 8c094c4f65
3 files changed
+68

No files matched your search

+1
View File
@@ -0,0 +1 @@
DIST poweralertd-0.3.0.tar.gz 40774 BLAKE2B e53b2d2f3a041b95a5ce236ef4fabd5de60a125ed1c7ea6e1716148572077c3dccd14191dbb74b4c260598dd0ea55c25debf3a5984cafad19ab4af249361b481 SHA512 db1760b536059607677781b4ac91811aedebb083ca3af90c5b328a9dd4bdd916bb0d89f553a2bf6066f88b91dcf11cb7ded35cda9f7085467138aa29c12d4ea1
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>hskim@dilluti0n.com</email>
<name>Hee-Suk Kim</name>
</maintainer>
<upstream>
<maintainer status="active">
<email>contact@kl.wtf</email>
<name>Kenny Levinsen</name>
</maintainer>
<bugs-to>https://todo.sr.ht/~kennylevinsen/poweralertd</bugs-to>
<remote-id type="sourcehut">~kennylevinsen/poweralertd</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,51 @@
# Copyright 2026 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/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="elogind systemd"
REQUIRED_USE="?? ( elogind systemd )"
RDEPEND="
sys-apps/dbus
sys-power/upower
elogind? ( sys-auth/elogind )
systemd? ( sys-apps/systemd )
!elogind? ( !systemd? ( sys-libs/basu ) )
"
DEPEND="${RDEPEND}"
BDEPEND="
app-text/scdoc
virtual/pkgconfig
"
src_prepare() {
default
# Upstream probes basu, libelogind and libsystemd in that order and
# links against whichever turns up first; make it follow the USE
# flag
if use systemd; then
sed -i -e 's/^if basu.found()/if false/' \
-e 's/^elif elogind.found()/elif false/' meson.build || die
elif use elogind; then
sed -i -e 's/^if basu.found()/if false/' meson.build || die
fi
}
src_configure() {
local emesonargs=(
-Dman-pages=enabled
)
meson_src_configure
}