commit: 2558ddaebc75727e79645d718aa3bb7113941e9d
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 21 10:05:41 2022 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Dec 21 10:07:02 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2558ddae
x11-misc/xsnow: install xscreensaver hack
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
.../xsnow/{xsnow-3.6.0.ebuild => xsnow-3.6.0-r1.ebuild} | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/x11-misc/xsnow/xsnow-3.6.0.ebuild
b/x11-misc/xsnow/xsnow-3.6.0-r1.ebuild
similarity index 65%
rename from x11-misc/xsnow/xsnow-3.6.0.ebuild
rename to x11-misc/xsnow/xsnow-3.6.0-r1.ebuild
index c8462ed48e95..b1390bb2529c 100644
--- a/x11-misc/xsnow/xsnow-3.6.0.ebuild
+++ b/x11-misc/xsnow/xsnow-3.6.0-r1.ebuild
@@ -38,3 +38,17 @@ src_prepare() {
default
eautoreconf
}
+
+src_install() {
+ default
+
+ # Install xscreensaver hack, which calls xsnow with the correct
+ # arguments. xscreensaver calls all hacks with --root, however xsnow
+ # only understands -root and will exit with an error if an unknown
+ # argument (--root) is provided.
+ exeinto usr/$(get_libdir)/misc/xscreensaver
+ newexe - xsnow <<-EOF
+ #/usr/bin/env bash
+ exec "${EPREFIX}/usr/bin/xsnow" -nomenu -root
+EOF
+}