1 | # $Id: Portfile 62016 2009-12-27 23:11:33Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup xcode 1.0 |
---|
5 | |
---|
6 | name Platypus |
---|
7 | version 4.3 |
---|
8 | categories aqua devel |
---|
9 | maintainers me.com:tsupplis |
---|
10 | description Program for creating application wrappers around scripts. |
---|
11 | |
---|
12 | long_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 | |
---|
21 | homepage http://www.sveinbjorn.org/platypus/ |
---|
22 | master_sites http://www.sveinbjorn.org/files/software/platypus/ |
---|
23 | distname platypus${version}.src |
---|
24 | use_zip yes |
---|
25 | |
---|
26 | checksums md5 93f8c478c85689d583c6e8912a1dd825 \ |
---|
27 | sha1 f3435d3a084af97c8f5dcf7e26083c502fcd60b9 \ |
---|
28 | rmd160 b8dee5582e897bd0d4467385566a919f75841735 |
---|
29 | |
---|
30 | worksrcdir "${name}-${version}-Source" |
---|
31 | |
---|
32 | # Dummy configure to enable universal variant. |
---|
33 | use_configure yes |
---|
34 | configure {} |
---|
35 | |
---|
36 | if {! [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 | |
---|
46 | build.target platypus ScriptExec Platypus |
---|
47 | destroot.target Platypus |
---|
48 | |
---|
49 | post-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 | |
---|
55 | livecheck.type regex |
---|
56 | livecheck.url ${homepage} |
---|
57 | livecheck.regex "${name} (\\d+(?:\\.\\d+)*)" |
---|
58 | |
---|