[72192] users/ryandesign/ports/games/PCLauncher

ryandesign at macports.org ryandesign at macports.org
Wed Oct 6 05:43:08 PDT 2010


Revision: 72192
          http://trac.macports.org/changeset/72192
Author:   ryandesign at macports.org
Date:     2010-10-06 05:43:06 -0700 (Wed, 06 Oct 2010)
Log Message:
-----------
PCLauncher: proper app icon for PlasmaClient in Dock

Modified Paths:
--------------
    users/ryandesign/ports/games/PCLauncher/Portfile

Added Paths:
-----------
    users/ryandesign/ports/games/PCLauncher/files/
    users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff

Modified: users/ryandesign/ports/games/PCLauncher/Portfile
===================================================================
--- users/ryandesign/ports/games/PCLauncher/Portfile	2010-10-06 12:21:01 UTC (rev 72191)
+++ users/ryandesign/ports/games/PCLauncher/Portfile	2010-10-06 12:43:06 UTC (rev 72192)
@@ -6,6 +6,7 @@
 
 name                        PCLauncher
 version                     0.0.1-72189
+revision                    1
 categories                  games
 maintainers                 ryandesign
 homepage                    http://plasmaclient.servegame.org/
@@ -24,6 +25,13 @@
 depends_run                 port:PlasmaClient \
                             port:Drizzle
 
+patchfiles                  patch-PCLauncher.applescript.diff
+
 post-patch {
-    reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/PCLauncher.applescript
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/PCLauncher.applescript
 }
+
+post-destroot {
+    xinstall -d ${destroot}${applications_dir}/PCLauncher.app/Contents/Resources/PlasmaClient.app/Contents/MacOS
+    ln -s ${prefix}/bin/PlasmaClient ${destroot}${applications_dir}/PCLauncher.app/Contents/Resources/PlasmaClient.app/Contents/MacOS
+}

Added: users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff
===================================================================
--- users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff	                        (rev 0)
+++ users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff	2010-10-06 12:43:06 UTC (rev 72192)
@@ -0,0 +1,19 @@
+--- PCLauncher.applescript	(revision 72189)
++++ PCLauncher.applescript	(working copy)
+@@ -6,7 +6,7 @@
+ 
+ 
+ -- Paths
+-property gPrefix : "/opt/local"
++property gPrefix : "@PREFIX@"
+ property gDrizzle : gPrefix & "/bin/drizzle"
+ property gPlasmaClient : gPrefix & "/bin/PlasmaClient"
+ property gDataDirectory : gPrefix & "/share/mystonline/data"
+@@ -29,6 +29,7 @@
+ property gPid : 0
+ 
+ on will finish launching theObject
++	set gPlasmaClient to (resource path of main bundle) & "/PlasmaClient.app/Contents/MacOS/PlasmaClient"
+ 	make new default entry at end of default entries of user defaults with properties {name:"username", contents:""}
+ 	make new default entry at end of default entries of user defaults with properties {name:"password", contents:""}
+ end will finish launching
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101006/60021a2a/attachment.html>


More information about the macports-changes mailing list