Ticket #24757: Portfile.2

File Portfile.2, 1.9 KB (added by elelay (Eric Le Lay), 14 years ago)

4.3 + build command line tool

Line 
1# $Id: Portfile 62016 2009-12-27 23:11:33Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               xcode 1.0
5
6name                    Platypus
7version                 4.3
8categories              aqua devel
9maintainers             me.com:tsupplis
10description             Program for creating application wrappers around scripts.
11
12long_description        Platypus is a program for creating application \
13                        wrappers around scripts, i.e. creating Mac OS X \
14                        applications that execute a script they are bundled \
15                        with. Scripts can thus be run transparently from the \
16                        graphical window environment without having to \
17                        resort to using the command line interface. It \
18                        supports drag and drop on created apps, running as \
19                        root using Authentication Manager and more.
20
21homepage                http://www.sveinbjorn.org/platypus/
22master_sites            http://www.sveinbjorn.org/files/software/platypus/
23distname                platypus${version}.src
24use_zip                 yes
25
26checksums           md5     93f8c478c85689d583c6e8912a1dd825 \
27                    sha1    f3435d3a084af97c8f5dcf7e26083c502fcd60b9 \
28                    rmd160  b8dee5582e897bd0d4467385566a919f75841735
29                               
30worksrcdir              "${name}-${version}-Source"
31
32# Dummy configure to enable universal variant.
33use_configure   yes
34configure               {}
35
36if {! [variant_isset universal]} {
37        set arch ${os.arch}
38        if {! [string compare ${os.arch} powerpc]} {
39                set arch ppc
40        }
41
42        xcode.build.settings-append             ARCHS=${arch}
43        xcode.destroot.settings-append  ARCHS=${arch}
44}
45
46build.target platypus ScriptExec Platypus
47destroot.target Platypus
48
49post-destroot {
50        reinplace "s|/usr/local|${destroot}${prefix}|g" ${worksrcpath}/Scripts/InstallCommandLineTool.sh
51        reinplace "s|English.lproj/||g" ${worksrcpath}/Scripts/InstallCommandLineTool.sh
52        exec /bin/bash ${worksrcpath}/Scripts/InstallCommandLineTool.sh ${destroot}/${applications_dir}/Platypus.app/Contents/Resources
53}
54
55livecheck.type  regex
56livecheck.url   ${homepage}
57livecheck.regex "${name} (\\d+(?:\\.\\d+)*)"
58