Changeset 73196


Ignore:
Timestamp:
Nov 6, 2010, 9:28:57 PM (7 years ago)
Author:
ryandesign@…
Message:

PCLauncher: update to 0.0.2 r73192

Location:
users/ryandesign/ports/games/PCLauncher
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • users/ryandesign/ports/games/PCLauncher/Portfile

    r72767 r73196  
    66
    77name                        PCLauncher
    8 version                     0.0.1-72534
     8version                     0.0.2-73192
    99categories                  games
    1010maintainers                 ryandesign
     
    2222worksrcdir                  ${name}
    2323
     24depends_lib                 port:libhsplasma
     25
    2426depends_run                 port:PlasmaClient \
    2527                            port:Drizzle
     
    3335}
    3436
    35 patchfiles                  patch-PCLauncher.applescript.diff
     37patchfiles                  patch-LoginWindowController.m.diff
    3638
    3739post-patch {
    38     reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/PCLauncher.applescript ${worksrcpath}/PCDownloader ${worksrcpath}/PCExtractor
     40    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/LoginWindowController.m ${worksrcpath}/PCDownloader ${worksrcpath}/PCExtractor
    3941}
    4042
  • users/ryandesign/ports/games/PCLauncher/files/patch-LoginWindowController.m.diff

    r72760 r73196  
    1 --- PCLauncher.applescript.orig 2010-10-10 07:49:36.000000000 -0500
    2 +++ PCLauncher.applescript      2010-10-10 07:52:08.000000000 -0500
    3 @@ -6,7 +6,7 @@
    4  
    5  
    6  -- Paths
    7 -property gPrefix : "/opt/local"
    8 +property gPrefix : "@PREFIX@"
    9  property gDrizzle : gPrefix & "/bin/drizzle"
    10  property gDrizzleForDownload : gDrizzle
    11  property gDrizzleForExtract : gDrizzle
    12 @@ -42,6 +42,10 @@
    13         make new default entry at end of default entries of user defaults with properties {name:"username", contents:""}
    14         make new default entry at end of default entries of user defaults with properties {name:"password", contents:""}
    15         set gLogFile to gLogDirectory & "/PlasmaClient." & timeSinceEpoch() & ".log"
    16 +       set gDrizzleForDownload to (resource path of main bundle) & "/PCDownloader.app/Contents/MacOS/PCDownloader"
    17 +       set gDrizzleForExtract to (resource path of main bundle) & "/PCExtractor.app/Contents/MacOS/PCExtractor"
    18 +       set gPlasmaClientForAuth to (resource path of main bundle) & "/PCAuthenticator.app/Contents/MacOS/PCAuthenticator"
    19 +       set gPlasmaClientForGame to (resource path of main bundle) & "/PlasmaClient.app/Contents/MacOS/PlasmaClient"
    20  end will finish launching
    21  
    22  on should quit after last window closed theObject
     1--- LoginWindowController.m.orig        2010-11-06 14:03:25.000000000 -0500
     2+++ LoginWindowController.m     2010-11-06 14:17:30.000000000 -0500
     3@@ -25,13 +25,13 @@
     4 - (id)init {
     5        self = [super init];
     6        if (self) {
     7-               kPrefix = @"/opt/local";
     8+               kPrefix = @"@PREFIX@";
     9                kDrizzle = [[kPrefix stringByAppendingString:@"/bin/drizzle"] retain];
     10-               kDrizzleForDownload = [[NSString alloc] initWithString:kDrizzle];
     11-               kDrizzleForExtract = [[NSString alloc] initWithString:kDrizzle];
     12+               kDrizzleForDownload = [[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"PCDownloader.app/Contents/MacOS/PCDownloader"] retain];
     13+               kDrizzleForExtract = [[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"PCExtractor.app/Contents/MacOS/PCExtractor"] retain];
     14                kPlasmaClient = [[kPrefix stringByAppendingString:@"/bin/PlasmaClient"] retain];
     15-               kPlasmaClientForAuth = [[NSString alloc] initWithString:kPlasmaClient];
     16-               kPlasmaClientForGame = [[NSString alloc] initWithString:kPlasmaClient];
     17+               kPlasmaClientForAuth = [[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"PCAuthenticator.app/Contents/MacOS/PCAuthenticator"] retain];
     18+               kPlasmaClientForGame = [[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"PlasmaClient.app/Contents/MacOS/PlasmaClient"] retain];
     19               
     20                kDataDirectory = [[kPrefix stringByAppendingString:@"/share/mystonline/data"] retain];
     21                kPythonDirectory = [[kDataDirectory stringByAppendingPathComponent:@"python"] retain];
Note: See TracChangeset for help on using the changeset viewer.