summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Levitsky <kitsunenokenja@protonmail.ch>2018-02-09 18:15:51 -0500
committerMichał Górny <mgorny@gentoo.org>2018-02-11 10:05:48 +0100
commitb25f79b0e2aeee81877c83fb77dd11171e255ce5 (patch)
treea7eb1aaa917ef9dda537f102e57e2faea65a6cdb /games-fps/redeclipse
parentmail-mta/exim: version bump, bug #647240 (diff)
downloadgentoo-b25f79b0e2aeee81877c83fb77dd11171e255ce5.tar.gz
gentoo-b25f79b0e2aeee81877c83fb77dd11171e255ce5.tar.bz2
gentoo-b25f79b0e2aeee81877c83fb77dd11171e255ce5.zip
games-fps/redeclipse: fix dosym and wrapper, fix bug 647170
Fixed dosym syntax to install the symlink in the correct location. Fixed wrapper script conditional to evaluate script call name correctly. Closes: https://bugs.gentoo.org/647170 Closes: https://github.com/gentoo/gentoo/pull/7142 Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'games-fps/redeclipse')
-rw-r--r--games-fps/redeclipse/files/redeclipse2
-rw-r--r--games-fps/redeclipse/redeclipse-1.6.0-r2.ebuild (renamed from games-fps/redeclipse/redeclipse-1.6.0-r1.ebuild)3
2 files changed, 2 insertions, 3 deletions
diff --git a/games-fps/redeclipse/files/redeclipse b/games-fps/redeclipse/files/redeclipse
index 667765d11d93..9f2c62fead05 100644
--- a/games-fps/redeclipse/files/redeclipse
+++ b/games-fps/redeclipse/files/redeclipse
@@ -7,4 +7,4 @@
SERVER=/usr/bin/redeclipse_server_linux
CLIENT=/usr/bin/redeclipse_linux
cd /usr/share/redeclipse || exit 1
-[ "$0" = "redeclipse_server" ] && exec $SERVER || exec $CLIENT
+[ "${0##*/}" = "redeclipse_server" ] && exec "${SERVER}" || exec "${CLIENT}"
diff --git a/games-fps/redeclipse/redeclipse-1.6.0-r1.ebuild b/games-fps/redeclipse/redeclipse-1.6.0-r2.ebuild
index 8d7b902e19d7..f809f77f1513 100644
--- a/games-fps/redeclipse/redeclipse-1.6.0-r1.ebuild
+++ b/games-fps/redeclipse/redeclipse-1.6.0-r2.ebuild
@@ -78,6 +78,5 @@ src_install() {
dodoc readme.txt doc/examples/servinit.cfg
dobin "${FILESDIR}/redeclipse"
- cd /usr/bin || die
- dosym redeclipse redeclipse_server
+ dosym redeclipse /usr/bin/redeclipse_server
}