[72198] users/ryandesign/ports/games/PCLauncher
ryandesign at macports.org
ryandesign at macports.org
Wed Oct 6 06:48:43 PDT 2010
Revision: 72198
http://trac.macports.org/changeset/72198
Author: ryandesign at macports.org
Date: 2010-10-06 06:48:41 -0700 (Wed, 06 Oct 2010)
Log Message:
-----------
PCLauncher: properer app icon for PlasmaClient and Drizzle in Dock
Modified Paths:
--------------
users/ryandesign/ports/games/PCLauncher/Portfile
users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff
Added Paths:
-----------
users/ryandesign/ports/games/PCLauncher/files/PCDownloader.in
users/ryandesign/ports/games/PCLauncher/files/PCExtractor.in
Modified: users/ryandesign/ports/games/PCLauncher/Portfile
===================================================================
--- users/ryandesign/ports/games/PCLauncher/Portfile 2010-10-06 13:32:52 UTC (rev 72197)
+++ users/ryandesign/ports/games/PCLauncher/Portfile 2010-10-06 13:48:41 UTC (rev 72198)
@@ -5,8 +5,7 @@
PortGroup xcode 1.0
name PCLauncher
-version 0.0.1-72189
-revision 1
+version 0.0.1-72194
categories games
maintainers ryandesign
homepage http://plasmaclient.servegame.org/
@@ -25,13 +24,25 @@
depends_run port:PlasmaClient \
port:Drizzle
+post-extract {
+ foreach app {PCDownloader PCExtractor} {
+ copy ${filespath}/${app}.in ${worksrcpath}/${app}
+ }
+}
+
patchfiles patch-PCLauncher.applescript.diff
post-patch {
- reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/PCLauncher.applescript
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/PCLauncher.applescript ${worksrcpath}/PCDownloader ${worksrcpath}/PCExtractor
}
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
+ foreach app {PCDownloader PCExtractor} {
+ xinstall -d ${destroot}${applications_dir}/PCLauncher.app/Contents/Resources/${app}.app/Contents/MacOS
+ xinstall ${worksrcpath}/${app} ${destroot}${applications_dir}/PCLauncher.app/Contents/Resources/${app}.app/Contents/MacOS/${app}
+ }
+ foreach app {PCAuthenticator PlasmaClient} {
+ xinstall -d ${destroot}${applications_dir}/PCLauncher.app/Contents/Resources/${app}.app/Contents/MacOS
+ ln -s ${prefix}/bin/PlasmaClient ${destroot}${applications_dir}/PCLauncher.app/Contents/Resources/${app}.app/Contents/MacOS/${app}
+ }
}
Added: users/ryandesign/ports/games/PCLauncher/files/PCDownloader.in
===================================================================
--- users/ryandesign/ports/games/PCLauncher/files/PCDownloader.in (rev 0)
+++ users/ryandesign/ports/games/PCLauncher/files/PCDownloader.in 2010-10-06 13:48:41 UTC (rev 72198)
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+export DRIZZLE_NAME="PCDownloader"
+exec "@PREFIX@/bin/Drizzle" "$@"
Property changes on: users/ryandesign/ports/games/PCLauncher/files/PCDownloader.in
___________________________________________________________________
Added: svn:eol-style
+ native
Added: users/ryandesign/ports/games/PCLauncher/files/PCExtractor.in
===================================================================
--- users/ryandesign/ports/games/PCLauncher/files/PCExtractor.in (rev 0)
+++ users/ryandesign/ports/games/PCLauncher/files/PCExtractor.in 2010-10-06 13:48:41 UTC (rev 72198)
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+export DRIZZLE_NAME="PCExtractor"
+exec "@PREFIX@/bin/Drizzle" "$@"
Property changes on: users/ryandesign/ports/games/PCLauncher/files/PCExtractor.in
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff
===================================================================
--- users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff 2010-10-06 13:32:52 UTC (rev 72197)
+++ users/ryandesign/ports/games/PCLauncher/files/patch-PCLauncher.applescript.diff 2010-10-06 13:48:41 UTC (rev 72198)
@@ -1,5 +1,5 @@
---- PCLauncher.applescript (revision 72189)
-+++ PCLauncher.applescript (working copy)
+--- PCLauncher.applescript.orig 2010-10-06 07:46:21.000000000 -0500
++++ PCLauncher.applescript 2010-10-06 07:50:42.000000000 -0500
@@ -6,7 +6,7 @@
@@ -7,13 +7,16 @@
-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 gDrizzleForDownload : gDrizzle
+ property gDrizzleForExtract : gDrizzle
+@@ -33,6 +33,10 @@
property gPid : 0
on will finish launching theObject
-+ set gPlasmaClient to (resource path of main bundle) & "/PlasmaClient.app/Contents/MacOS/PlasmaClient"
++ 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"
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/c172df1e/attachment.html>
More information about the macports-changes
mailing list