From c41ced4db10a856439580c51d97baeb7cfa897bc Mon Sep 17 00:00:00 2001 From: Niklaus 'vimja' Hofer Date: Tue, 20 Oct 2026 18:58:13 +0200 Subject: [PATCH] games-simulation/kittenspaceagency-bin: Move script to separate file This helps avoid excessive file lengths in the ebuild. Signed-off-by: Niklaus 'vimja' Hofer --- .../kittenspaceagency-bin/files/kittenspaceagency | 9 +++++++++ .../kittenspaceagency-bin-2026.10.19-r5638.ebuild | 14 +------------- 2 files changed, 10 insertions(+), 13 deletions(-) create mode 100644 games-simulation/kittenspaceagency-bin/files/kittenspaceagency diff --git a/games-simulation/kittenspaceagency-bin/files/kittenspaceagency b/games-simulation/kittenspaceagency-bin/files/kittenspaceagency new file mode 100644 index 0000000000..953c4c1d98 --- /dev/null +++ b/games-simulation/kittenspaceagency-bin/files/kittenspaceagency @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +cd /opt/kittenspaceagency +# KSA defaults to x11 protocol as of r5622, only falling back to wayland if x11 (eg xwayland) is unavailable +# "Changed KSA on Linux to start on X11 by default, using XWayland on a Wayland desktop, so detached windows work without any launch option." +# "If X11 can't start, such as on a Wayland desktop without XWayland, it falls back to the platform GLFW would have chosen." +# "Added the -wayland launch option to run on native Wayland instead. Detached windows are still turned off there, because Wayland can't position windows. -force-x11 is still accepted but no longer needed." +# "Changed the KSA launch profile for devs to no longer pass -force-x11, and added a "KSA (Wayland)" profile that passes -wayland." +exec ./KSA "$@" diff --git a/games-simulation/kittenspaceagency-bin/kittenspaceagency-bin-2026.10.19-r5638.ebuild b/games-simulation/kittenspaceagency-bin/kittenspaceagency-bin-2026.10.19-r5638.ebuild index 80ce01b086..2d2728d515 100644 --- a/games-simulation/kittenspaceagency-bin/kittenspaceagency-bin-2026.10.19-r5638.ebuild +++ b/games-simulation/kittenspaceagency-bin/kittenspaceagency-bin-2026.10.19-r5638.ebuild @@ -42,19 +42,7 @@ src_install() { doexe "KSA" doexe "Brutal.Monitor.Subprocess" - cat > kittenspaceagency <<- 'ENDWRAPPER' || die - #!/usr/bin/env bash - - cd /opt/kittenspaceagency - # KSA defaults to x11 protocol as of r5622, only falling back to wayland if x11 (eg xwayland) is unavailable - # "Changed KSA on Linux to start on X11 by default, using XWayland on a Wayland desktop, so detached windows work without any launch option." - # "If X11 can't start, such as on a Wayland desktop without XWayland, it falls back to the platform GLFW would have chosen." - # "Added the -wayland launch option to run on native Wayland instead. Detached windows are still turned off there, because Wayland can't position windows. -force-x11 is still accepted but no longer needed." - # "Changed the KSA launch profile for devs to no longer pass -force-x11, and added a "KSA (Wayland)" profile that passes -wayland." - exec ./KSA "$@" - ENDWRAPPER - - dobin kittenspaceagency + dobin "${FILESDIR}"/kittenspaceagency make_desktop_entry --eapi9 "/usr/bin/kittenspaceagency" \ -d "kittenspaceagency" \