source: trunk/dports/aqua/Platypus/Portfile

Last change on this file was 114325, checked in by ryandesign@…, 4 years ago

use eq and ne instead of == and != when comparing ${os.platform} and ${os.subplatform}

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 114325 2013-12-05 09:20:31Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           xcode 1.0
5
6name                Platypus
7version             4.7
8license             GPL-2
9categories          aqua devel
10maintainers         me.com:tsupplis openmaintainer
11conflicts           Platypus44
12description         Program for creating application wrappers around scripts.
13
14long_description    Platypus is a program for creating application \
15    wrappers around scripts, i.e. creating Mac OS X applications that execute a \
16    script they are bundled with. Scripts can thus be run transparently from \
17    the graphical window environment without having to resort to using the \
18    command line interface. It supports drag and drop on created apps, running \
19    as 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     a2a24f6d4cd3da850bbfc54175e3332e \
27                    sha1    87b959b96df9221caacccba3e843558d6800ebec \
28                    rmd160  54dc72eb2af47523561d5140d0cbad842bcfd38c
29
30
31supported_archs     i386 x86_64
32
33build.target        platypus ScriptExec Platypus
34destroot.target     Platypus
35
36if {${os.platform} eq "darwin" && ${os.major} >= 10} {
37    universal_variant   no
38}
39
40set extracted_dir   "${name} ${version} Source Code"
41set target_dir      [string map {" " _} "$extracted_dir"]
42worksrcdir          $target_dir
43
44post-extract {
45    file rename ${workpath}/${extracted_dir} ${workpath}/${target_dir}
46}
47
48
49post-patch {
50    reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/CommandLineTool/platypus.1 ${worksrcpath}/Common.h
51    reinplace "s|build/Platypus/Build/Products/Development|build/Deployment|" ${worksrcpath}/Platypus.xcodeproj/project.pbxproj
52}
53
54post-destroot {
55    reinplace "s|/usr/local|${destroot}${prefix}|g" ${worksrcpath}/Scripts/InstallCommandLineTool.sh
56
57    # there is no English.lproj when building on Tiger and Leopard but there is one on SL
58    if {${os.platform} eq "darwin" && 10 > ${os.major}} {
59        reinplace "s|English.lproj/||g" ${worksrcpath}/Scripts/InstallCommandLineTool.sh
60    }
61
62    system -W ${worksrcpath}/Scripts "./InstallCommandLineTool.sh ${destroot}${applications_dir}/Platypus.app/Contents/Resources"
63}
64
65livecheck.type  regex
66livecheck.url   ${homepage}
67livecheck.regex "${name} (\\d+(?:\\.\\d+)*)"
68
Note: See TracBrowser for help on using the repository browser.