[65754] users/ryandesign/ports/games/mystonline-cider

ryandesign at macports.org ryandesign at macports.org
Wed Mar 31 04:01:48 PDT 2010


Revision: 65754
          http://trac.macports.org/changeset/65754
Author:   ryandesign at macports.org
Date:     2010-03-31 04:01:44 -0700 (Wed, 31 Mar 2010)
Log Message:
-----------
mystonline-cider: fix auto-updating by also chowning the app bundle; fix failure of parent app to quit sometimes, and fix failure of app to start at all on Tiger for some reason, by opening cider directly

Modified Paths:
--------------
    users/ryandesign/ports/games/mystonline-cider/Portfile
    users/ryandesign/ports/games/mystonline-cider/files/MOUL.sh
    users/ryandesign/ports/games/mystonline-cider/files/chown-data.c

Modified: users/ryandesign/ports/games/mystonline-cider/Portfile
===================================================================
--- users/ryandesign/ports/games/mystonline-cider/Portfile	2010-03-31 08:55:20 UTC (rev 65753)
+++ users/ryandesign/ports/games/mystonline-cider/Portfile	2010-03-31 11:01:44 UTC (rev 65754)
@@ -5,6 +5,7 @@
 name                        mystonline-cider
 set my_name                 mystonline
 version                     2010
+revision                    1
 platforms                   darwin
 categories                  games x11
 maintainers                 ryandesign
@@ -50,6 +51,7 @@
     reinplace "s|@LIBEXEC@|${libexec_dir}|g" ${worksrcpath}/MOUL.sh
     reinplace "s|@WINEPREFIX@|${wineprefix}|g" ${worksrcpath}/MOUL.sh ${worksrcpath}/chown-data.c
     reinplace "s|@ASSETS@|${assets_dir}|g" ${worksrcpath}/chown-data.c
+    reinplace "s|@APP_PACKAGE@|${app_package}|g" ${worksrcpath}/chown-data.c
 }
 
 use_configure               no
@@ -100,7 +102,6 @@
                             GameTap version of Myst Online a few years ago. \
                             Peculiarities of this method of running Myst Online include: \
                             \n\n* Several icons appear and disappear in the dock while the game is starting. \
-                            \n* The game doesn't always quit itself when it's done. Often you have to force-quit it. \
                             \n* If you need to force-quit the game while in fullscreen mode, press Command-Option-Escape. \
                             \n* The game starts in fullscreen mode at 800x600 resolution. To switch to a \
                             higher resolution, use the in-game graphics settings. \

Modified: users/ryandesign/ports/games/mystonline-cider/files/MOUL.sh
===================================================================
--- users/ryandesign/ports/games/mystonline-cider/files/MOUL.sh	2010-03-31 08:55:20 UTC (rev 65753)
+++ users/ryandesign/ports/games/mystonline-cider/files/MOUL.sh	2010-03-31 11:01:44 UTC (rev 65754)
@@ -18,4 +18,4 @@
     cp -p "$BOOTSTRAP_LAUNCHER" "$LAUNCHER"
 fi
 
-open -a "$(dirname "$0")/../Resources/Myst Online.app"
+"$(dirname "$0")/../Resources/Myst Online.app/Contents/MacOS/cider"

Modified: users/ryandesign/ports/games/mystonline-cider/files/chown-data.c
===================================================================
--- users/ryandesign/ports/games/mystonline-cider/files/chown-data.c	2010-03-31 08:55:20 UTC (rev 65753)
+++ users/ryandesign/ports/games/mystonline-cider/files/chown-data.c	2010-03-31 11:01:44 UTC (rev 65754)
@@ -24,7 +24,7 @@
     extern char **environ;
     if (argc > 1)
         argc = 1;
-    new_argv = malloc(sizeof(*new_argv) * (argc + 3 + 1));
+    new_argv = malloc(sizeof(*new_argv) * (argc + 4 + 1));
     j = 0;
     new_argv[j++] = "chown";
     new_argv[j++] = "-R";
@@ -32,6 +32,7 @@
         new_argv[j++] = argv[i];
     new_argv[j++] = "@WINEPREFIX@";
     new_argv[j++] = "@ASSETS@";
+    new_argv[j++] = "@APP_PACKAGE@";
     execve(real_exec, new_argv, environ);
     printErr();
     return 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100331/2f2875e0/attachment.html>


More information about the macports-changes mailing list