Skip to content

Commit

Permalink
games-fps/redeclipse: revision bump, fix installation
Browse files Browse the repository at this point in the history
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: gentoo#6979
  • Loading branch information
kitsunenokenja authored and a17r committed Feb 1, 2018
1 parent 19367bd commit ba7dd57
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions games-fps/redeclipse/files/redeclipse
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit ba7dd57

Please sign in to comment.