source: trunk/dports/games/PCLauncher/Portfile

Last change on this file was 97980, checked in by ryandesign@…, 5 years ago

PCLauncher: update repository URL (#36247)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 97980 2012-09-21 08:15:46Z ryandesign@macports.org $
3
4PortSystem                  1.0
5PortGroup                   xcode 1.0
6
7name                        PCLauncher
8version                     0.0.3-75358
9categories                  games
10maintainers                 ryandesign
11homepage                    http://plasmaclient.servegame.org/
12
13description                 launcher for PlasmaClient
14
15long_description            ${name} verifies your Myst Online: URU Live again \
16                            username and password, downloads the secure files \
17                            if necessary, and then launches PlasmaClient.
18
19fetch.type                  svn
20svn.url                     http://svn.macports.org/repository/macports/users/ryandesign/${name}
21svn.revision                [lindex [split ${version} -] 1]
22worksrcdir                  ${name}
23
24# Use a working copy so the Xcode project can insert the current revision into the about box
25svn.method                  checkout
26
27depends_lib                 port:libhsplasma
28
29depends_run                 port:PlasmaClient \
30                            port:Drizzle
31
32depends_skip_archcheck      PlasmaClient Drizzle
33
34post-extract {
35    foreach app {PCDownloader PCExtractor} {
36        copy ${filespath}/${app}.in ${worksrcpath}/${app}
37    }
38}
39
40patchfiles                  patch-LoginWindowController.m.diff \
41                            patch-PCLauncher.xcodeproj-project.pbxproj.diff
42
43post-patch {
44    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/LoginWindowController.m ${worksrcpath}/PCLauncher.xcodeproj/project.pbxproj ${worksrcpath}/PCDownloader ${worksrcpath}/PCExtractor
45}
46
47post-destroot {
48    fs-traverse dir ${destroot} {
49        if {[file isdirectory ${dir}]} {
50            file attributes ${dir} -permissions u+w
51        }
52    }
53    foreach app {PCDownloader PCExtractor} {
54        xinstall -d ${destroot}${applications_dir}/PCLauncher.app/Contents/Resources/${app}.app/Contents/MacOS
55        xinstall ${worksrcpath}/${app} ${destroot}${applications_dir}/PCLauncher.app/Contents/Resources/${app}.app/Contents/MacOS/${app}
56    }
57    foreach app {PCAuthenticator PlasmaClient} {
58        xinstall -d ${destroot}${applications_dir}/PCLauncher.app/Contents/Resources/${app}.app/Contents/MacOS
59        ln -s ${prefix}/bin/PlasmaClient ${destroot}${applications_dir}/PCLauncher.app/Contents/Resources/${app}.app/Contents/MacOS/${app}
60    }
61}
62
63set docdir ${prefix}/share/doc/PlasmaClient
64
65notes "
66To start PlasmaClient, run PCLauncher in ${applications_dir}
67
68Instructions for using PlasmaClient are in the files ${docdir}/README and ${docdir}/README.mac
69
70For more information, please visit the Guild of Writers' IRC channel at irc://irc.guildofwriters.com/#writers
71"
72
73platform darwin powerpc {
74    notes-append "\n\nPlasmaClient probably does not work at all on PowerPC Macs at this time; try an Intel Mac."
75}
76
77platform darwin 8 {
78    depends_run-delete      port:Drizzle
79    if {![file isdirectory ${prefix}/share/mystonline/data/python] || ![file isdirectory ${prefix}/share/mystonline/data/SDL]} {
80        notes-append "\n\nOn Mac OS X 10.4 Tiger, ${name} cannot download the secure files for you. Manually copy the python and SDL directories into ${prefix}/share/mystonline/data from another Mac that has PlasmaClient."
81    }
82}
83
84livecheck.type              none
Note: See TracBrowser for help on using the repository browser.