sys-power/system76-power: Replace systemd RDEPEND with postinst ewarn

This fixes a pkgcheck issue now that systemd is masked on
split-usr profiles, and is more consistent with how this
type of systemd runtime dependency is handled in ::gentoo.

Signed-off-by: Vivian Heisz (vhz) <demize@unstable.systems>
This commit is contained in:
Vivian Heisz (vhz)
2025-06-05 08:51:18 -04:00
parent 21faf65bb2
commit 9b7058f9b9
2 changed files with 12 additions and 6 deletions

View File

@@ -204,9 +204,6 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="sys-apps/systemd"
RDEPEND="${DEPEND}"
src_prepare() {
default
# Replace dynamic git dependency of 'sysfs-class' with a static one
@@ -218,3 +215,9 @@ src_install() {
default
elog "Enable the service: 'systemctl enable --now com.system76.PowerDaemon.service'"
}
pkg_postinst(){
if ! has_version sys-apps/systemd; then
ewarn "${PN} is not functional without sys-apps/systemd at this point."
fi
}

View File

@@ -13,9 +13,6 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
DEPEND="sys-apps/systemd"
RDEPEND="${DEPEND}"
src_unpack(){
git-r3_src_unpack
cargo_live_src_unpack
@@ -25,3 +22,9 @@ src_install(){
default
elog "Enable the service: 'systemctl enable --now com.system76.PowerDaemon.service'"
}
pkg_postinst(){
if ! has_version sys-apps/systemd; then
ewarn "${PN} is not functional without sys-apps/systemd at this point."
fi
}