<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/baf8d75c50d11c8dd4e84abd1bf79b0658f5f5ac">https://github.com/macports/macports-ports/commit/baf8d75c50d11c8dd4e84abd1bf79b0658f5f5ac</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new baf8d75c50d supertux: use launch script
</span>baf8d75c50d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit baf8d75c50d11c8dd4e84abd1bf79b0658f5f5ac
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Fri Dec 4 00:14:36 2020 -0800
<span style='display:block; white-space:pre;color:#404040;'> supertux: use launch script
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> this app requires assistance to locate it's
</span><span style='display:block; white-space:pre;color:#404040;'> datadir. We use a launch script to launch
</span><span style='display:block; white-space:pre;color:#404040;'> it therefore, setting an env var to the
</span><span style='display:block; white-space:pre;color:#404040;'> location of the data directory.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Initially it seemed to work properly as it
</span><span style='display:block; white-space:pre;color:#404040;'> will reference files in it's original build
</span><span style='display:block; white-space:pre;color:#404040;'> directory if they exist.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/61491
</span>---
games/supertux/Portfile | 7 ++++++-
games/supertux/files/supertux2 | 8 ++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/supertux/Portfile b/games/supertux/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d89050bb54c..6d756d4d447 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/games/supertux/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/supertux/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup cmake 1.1
</span> PortGroup github 1.0
github.setup SuperTux supertux 0.6.2 v
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
github.tarball_from releases
distname SuperTux-v${version}-Source
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -60,5 +60,10 @@ post-destroot {
</span> # fix case of icons file -- use the system command as much shorter
system -W ${destroot}${applications_dir}/SuperTux.app/Contents/Resources "mv supertux.icns SuperTux.icns"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # move the original binary out of the way so we can use a launch script
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # this is needed to set an env var to the location of the datadir
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${destroot}${applications_dir}/SuperTux.app/Contents/MacOS "mv supertux2 supertux2-bin"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${filespath}/supertux2 ${destroot}${applications_dir}/SuperTux.app/Contents/MacOS/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> delete ${destroot}${applications_dir}/share
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/supertux/files/supertux2 b/games/supertux/files/supertux2
</span>new file mode 100755
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c3c2d8de5a5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/supertux/files/supertux2
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#!/bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+SUPERTUX_BUNDLE="$(echo "$0" | sed -e 's/\/Contents\/MacOS\/supertux2//')"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+SUPERTUX_RESOURCES="$SUPERTUX_BUNDLE/Contents/Resources"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+export "SUPERTUX2_DATA_DIR=$SUPERTUX_RESOURCES/data"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+exec "$SUPERTUX_BUNDLE/Contents/MacOS/supertux2-bin"
</span></pre><pre style='margin:0'>
</pre>