mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
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:
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user