1 |
commit: ba7dd574540c3edb0bb129fabe1be7dd38859e84 |
2 |
Author: Rob Levitsky <kitsunenokenja <AT> protonmail <DOT> ch> |
3 |
AuthorDate: Sun Jan 28 00:29:20 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 1 17:45:40 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba7dd574 |
7 |
|
8 |
games-fps/redeclipse: revision bump, fix installation |
9 |
|
10 |
This revision fixes the incorrect installation of the desktop file |
11 |
entry, and provides a wrapper script to address the runtime problem |
12 |
introduced by no longer using EAPI 5's games installation paths. |
13 |
|
14 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
15 |
Closes: https://github.com/gentoo/gentoo/pull/6979 |
16 |
|
17 |
games-fps/redeclipse/files/redeclipse | 10 ++++++++++ |
18 |
.../{redeclipse-1.6.0.ebuild => redeclipse-1.6.0-r1.ebuild} | 6 +++++- |
19 |
2 files changed, 15 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/games-fps/redeclipse/files/redeclipse b/games-fps/redeclipse/files/redeclipse |
22 |
new file mode 100644 |
23 |
index 00000000000..667765d11d9 |
24 |
--- /dev/null |
25 |
+++ b/games-fps/redeclipse/files/redeclipse |
26 |
@@ -0,0 +1,10 @@ |
27 |
+#!/bin/sh |
28 |
+ |
29 |
+# It is necessary to run the binary from the root of the data directory |
30 |
+# for the binary to properly locate its assets and load properly. |
31 |
+# Upstream's original install procedure is doing the same thing. |
32 |
+ |
33 |
+SERVER=/usr/bin/redeclipse_server_linux |
34 |
+CLIENT=/usr/bin/redeclipse_linux |
35 |
+cd /usr/share/redeclipse || exit 1 |
36 |
+[ "$0" = "redeclipse_server" ] && exec $SERVER || exec $CLIENT |
37 |
|
38 |
diff --git a/games-fps/redeclipse/redeclipse-1.6.0.ebuild b/games-fps/redeclipse/redeclipse-1.6.0-r1.ebuild |
39 |
similarity index 93% |
40 |
rename from games-fps/redeclipse/redeclipse-1.6.0.ebuild |
41 |
rename to games-fps/redeclipse/redeclipse-1.6.0-r1.ebuild |
42 |
index 173ab9a6b75..5a45262fd90 100644 |
43 |
--- a/games-fps/redeclipse/redeclipse-1.6.0.ebuild |
44 |
+++ b/games-fps/redeclipse/redeclipse-1.6.0-r1.ebuild |
45 |
@@ -70,10 +70,14 @@ src_install() { |
46 |
if ! use dedicated; then |
47 |
dobin src/redeclipse_linux |
48 |
newicon "src/install/nix/${PN}_x128.png" "${PN}.png" |
49 |
- make_desktop_entry "src/install/nix/${PN}.desktop" |
50 |
+ domenu "src/install/nix/${PN}.desktop" |
51 |
doman doc/man/redeclipse.6 |
52 |
fi |
53 |
|
54 |
+ dobin "${FILESDIR}/redeclipse" |
55 |
+ cd /usr/bin || die |
56 |
+ dosym redeclipse redeclipse_server |
57 |
+ |
58 |
doman doc/man/redeclipse-server.6 |
59 |
dodoc readme.txt doc/examples/servinit.cfg |
60 |
} |