summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2023-07-27 10:26:34 +0200
committerFlorian Schmaus <flow@gentoo.org>2023-07-27 10:27:38 +0200
commit19889d36b05fae14f96eb01ea09b609a5ff708e2 (patch)
tree395e5194f82b32a40c52a59e5ccffdf705deb4b6 /x11-misc
parentdev-python/statsmodels: add bug ref for <cython-3 dep (diff)
downloadgentoo-19889d36b05fae14f96eb01ea09b609a5ff708e2.tar.gz
gentoo-19889d36b05fae14f96eb01ea09b609a5ff708e2.tar.bz2
gentoo-19889d36b05fae14f96eb01ea09b609a5ff708e2.zip
x11-misc/xscreensaver: install xscreensaver's systemd user unit
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/xscreensaver/xscreensaver-6.06-r1.ebuild (renamed from x11-misc/xscreensaver/xscreensaver-6.06.ebuild)11
1 files changed, 7 insertions, 4 deletions
diff --git a/x11-misc/xscreensaver/xscreensaver-6.06.ebuild b/x11-misc/xscreensaver/xscreensaver-6.06-r1.ebuild
index 02ae75c68a51..48ddc842e1b5 100644
--- a/x11-misc/xscreensaver/xscreensaver-6.06.ebuild
+++ b/x11-misc/xscreensaver/xscreensaver-6.06-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit autotools flag-o-matic font optfeature pam strip-linguas xdg-utils
+inherit autotools flag-o-matic font optfeature pam strip-linguas systemd xdg-utils
DESCRIPTION="Modular screen saver and locker for the X Window System"
HOMEPAGE="https://www.jwz.org/xscreensaver/"
@@ -220,10 +220,13 @@ src_install() {
#if ! use gtk; then
# rm "${ED}/usr/bin/xscreensaver-demo" || die
#fi
- # Makefile installs xscreensaver.service regardless of --without-systemd
- if ! use systemd; then
- rm "${ED}/usr/share/${PN}/xscreensaver.service" || die
+ if use systemd; then
+ systemd_douserunit "${ED}/usr/share/${PN}/xscreensaver.service"
fi
+ # Makefile installs xscreensaver.service regardless of
+ # --without-systemd, and if USE=systemd, we will have installed the
+ # unit file already.
+ rm "${ED}/usr/share/${PN}/xscreensaver.service" || die
# bug #885989
fperms 4755 /usr/$(get_libdir)/misc/xscreensaver/xscreensaver-auth