mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-02 23:48:17 -07:00
games-fps/redeclipse: revision bump, fix installation
This revision fixes the incorrect installation of the desktop file entry, and provides a wrapper script to address the runtime problem introduced by no longer using EAPI 5's games installation paths. Package-Manager: Portage-2.3.19, Repoman-2.3.6 Closes: https://github.com/gentoo/gentoo/pull/6979
This commit is contained in:
committed by
Andreas Sturmlechner
parent
19367bd30d
commit
ba7dd57454
10
games-fps/redeclipse/files/redeclipse
Normal file
10
games-fps/redeclipse/files/redeclipse
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# It is necessary to run the binary from the root of the data directory
|
||||
# for the binary to properly locate its assets and load properly.
|
||||
# Upstream's original install procedure is doing the same thing.
|
||||
|
||||
SERVER=/usr/bin/redeclipse_server_linux
|
||||
CLIENT=/usr/bin/redeclipse_linux
|
||||
cd /usr/share/redeclipse || exit 1
|
||||
[ "$0" = "redeclipse_server" ] && exec $SERVER || exec $CLIENT
|
||||
@@ -70,10 +70,14 @@ src_install() {
|
||||
if ! use dedicated; then
|
||||
dobin src/redeclipse_linux
|
||||
newicon "src/install/nix/${PN}_x128.png" "${PN}.png"
|
||||
make_desktop_entry "src/install/nix/${PN}.desktop"
|
||||
domenu "src/install/nix/${PN}.desktop"
|
||||
doman doc/man/redeclipse.6
|
||||
fi
|
||||
|
||||
dobin "${FILESDIR}/redeclipse"
|
||||
cd /usr/bin || die
|
||||
dosym redeclipse redeclipse_server
|
||||
|
||||
doman doc/man/redeclipse-server.6
|
||||
dodoc readme.txt doc/examples/servinit.cfg
|
||||
}
|
||||
Reference in New Issue
Block a user