Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

root/trunk/dports/aqua/launch/Portfile

Revision 28953, 1.6 KB (checked in by nox@…, 16 months ago)

launch:

  • Now uses xcode.destroot.path instead of installing the binary manually.
  • Added universal support.
  • Removed cd.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1# $Id$
2
3PortSystem      1.0
4PortGroup       xcode 1.0
5
6name            launch
7version         1.0.1
8categories      aqua
9maintainers     nomaintainer
10description     command-line launcher for Mac OS X in the spirit of open
11
12long_description \
13    Apple provides a simple command-line launching program called open \
14    with Mac OS X. It offers few options - launching applications by name \
15    or by path, launching TextEdit, or opening a number of applications, \
16    documents, folders, or URLs. With the exception of special support for \
17    TextEdit (open -a), launch does all this and more.
18
19homepage        http://web.sabi.net/nriley/software/
20master_sites    ${homepage}
21
22checksums       md5 0c9f963701cdbe3272e2634cc3693b0d \
23                sha1 fe22ea94418db5243bff8302596f12bdd0cc5c9f \
24                rmd160 b118756cc60fe25f89a5f34417b68afe67eaf3f5
25
26post-patch {
27    reinplace -E "/(MACOSX_DEPLOYMENT_TARGET|SDKROOT) =/d" \
28        ${worksrcpath}/${name}.pbproj/project.pbxproj
29}
30
31xcode.destroot.path ${prefix}/bin
32
33post-destroot {
34    xinstall -m 0444 ${worksrcpath}/${name}.1 \
35        ${destroot}${prefix}/share/man/man1
36
37    set docdir ${prefix}/share/doc/${name}-${version}
38    xinstall -d ${destroot}${docdir}
39    xinstall -m 0644 ${worksrcpath}/README ${destroot}${docdir}
40}
41
42variant universal {
43    post-patch {
44        reinplace -E "/OTHER_CFLAGS =/s|\"\"|\"${configure.universal_cflags}\"|" \
45            ${worksrcpath}/${name}.pbproj/project.pbxproj
46        reinplace -E "/OTHER_LDFLAGS =/s|\"\"|\"${configure.universal_ldflags}\"|" \
47            ${worksrcpath}/${name}.pbproj/project.pbxproj
48    }
49}
50
51livecheck.check none
Note: See TracBrowser for help on using the browser.