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

ryandesign at macports.org ryandesign at macports.org
Sat Nov 6 14:29:00 PDT 2010


Revision: 73196
          http://trac.macports.org/changeset/73196
Author:   ryandesign at macports.org
Date:     2010-11-06 14:28:57 -0700 (Sat, 06 Nov 2010)
Log Message:
-----------
PCLauncher: update to 0.0.2 r73192

Revision Links:
--------------
    http://trac.macports.org/changeset/73192

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

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

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

Modified: users/ryandesign/ports/games/PCLauncher/Portfile
===================================================================
--- users/ryandesign/ports/games/PCLauncher/Portfile	2010-11-06 20:58:06 UTC (rev 73195)
+++ users/ryandesign/ports/games/PCLauncher/Portfile	2010-11-06 21:28:57 UTC (rev 73196)
@@ -5,7 +5,7 @@
 PortGroup                   xcode 1.0
 
 name                        PCLauncher
-version                     0.0.1-72534
+version                     0.0.2-73192
 categories                  games
 maintainers                 ryandesign
 homepage                    http://plasmaclient.servegame.org/
@@ -21,6 +21,8 @@
 svn.revision                [lindex [split ${version} -] 1]
 worksrcdir                  ${name}
 
+depends_lib                 port:libhsplasma
+
 depends_run                 port:PlasmaClient \
                             port:Drizzle
 
@@ -32,10 +34,10 @@
     }
 }
 
-patchfiles                  patch-PCLauncher.applescript.diff
+patchfiles                  patch-LoginWindowController.m.diff
 
 post-patch {
-    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/PCLauncher.applescript ${worksrcpath}/PCDownloader ${worksrcpath}/PCExtractor
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/LoginWindowController.m ${worksrcpath}/PCDownloader ${worksrcpath}/PCExtractor
 }
 
 post-destroot {

Copied: users/ryandesign/ports/games/PCLauncher/files/patch-LoginWindowController.m.diff (from rev 72760, users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff)
===================================================================
--- users/ryandesign/ports/games/PCLauncher/files/patch-LoginWindowController.m.diff	                        (rev 0)
+++ users/ryandesign/ports/games/PCLauncher/files/patch-LoginWindowController.m.diff	2010-11-06 21:28:57 UTC (rev 73196)
@@ -0,0 +1,21 @@
+--- LoginWindowController.m.orig	2010-11-06 14:03:25.000000000 -0500
++++ LoginWindowController.m	2010-11-06 14:17:30.000000000 -0500
+@@ -25,13 +25,13 @@
+ - (id)init {
+ 	self = [super init];
+ 	if (self) {
+-		kPrefix = @"/opt/local";
++		kPrefix = @"@PREFIX@";
+ 		kDrizzle = [[kPrefix stringByAppendingString:@"/bin/drizzle"] retain];
+-		kDrizzleForDownload = [[NSString alloc] initWithString:kDrizzle];
+-		kDrizzleForExtract = [[NSString alloc] initWithString:kDrizzle];
++		kDrizzleForDownload = [[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"PCDownloader.app/Contents/MacOS/PCDownloader"] retain];
++		kDrizzleForExtract = [[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"PCExtractor.app/Contents/MacOS/PCExtractor"] retain];
+ 		kPlasmaClient = [[kPrefix stringByAppendingString:@"/bin/PlasmaClient"] retain];
+-		kPlasmaClientForAuth = [[NSString alloc] initWithString:kPlasmaClient];
+-		kPlasmaClientForGame = [[NSString alloc] initWithString:kPlasmaClient];
++		kPlasmaClientForAuth = [[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"PCAuthenticator.app/Contents/MacOS/PCAuthenticator"] retain];
++		kPlasmaClientForGame = [[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"PlasmaClient.app/Contents/MacOS/PlasmaClient"] retain];
+ 		
+ 		kDataDirectory = [[kPrefix stringByAppendingString:@"/share/mystonline/data"] retain];
+ 		kPythonDirectory = [[kDataDirectory stringByAppendingPathComponent:@"python"] retain];

Deleted: users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff
===================================================================
--- users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff	2010-11-06 20:58:06 UTC (rev 73195)
+++ users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff	2010-11-06 21:28:57 UTC (rev 73196)
@@ -1,22 +0,0 @@
---- PCLauncher.applescript.orig	2010-10-10 07:49:36.000000000 -0500
-+++ PCLauncher.applescript	2010-10-10 07:52:08.000000000 -0500
-@@ -6,7 +6,7 @@
- 
- 
- -- Paths
--property gPrefix : "/opt/local"
-+property gPrefix : "@PREFIX@"
- property gDrizzle : gPrefix & "/bin/drizzle"
- property gDrizzleForDownload : gDrizzle
- property gDrizzleForExtract : gDrizzle
-@@ -42,6 +42,10 @@
- 	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:""}
- 	set gLogFile to gLogDirectory & "/PlasmaClient." & timeSinceEpoch() & ".log"
-+	set gDrizzleForDownload to (resource path of main bundle) & "/PCDownloader.app/Contents/MacOS/PCDownloader"
-+	set gDrizzleForExtract to (resource path of main bundle) & "/PCExtractor.app/Contents/MacOS/PCExtractor"
-+	set gPlasmaClientForAuth to (resource path of main bundle) & "/PCAuthenticator.app/Contents/MacOS/PCAuthenticator"
-+	set gPlasmaClientForGame to (resource path of main bundle) & "/PlasmaClient.app/Contents/MacOS/PlasmaClient"
- end will finish launching
- 
- on should quit after last window closed theObject
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101106/8ec3c641/attachment.html>


More information about the macports-changes mailing list