# $Id: Portfile 104672 2013-03-31 08:27:25Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       xcode 1.0

name            launch
version         1.1
revision        1
license         BSD
maintainers     nomaintainer

description     command-line launcher for OS X in the spirit of open

long_description \
    Apple provides a simple command-line launching program called open \
    with OS X. It offers few options - launching applications by name \
    or by path, launching TextEdit, or opening a number of applications, \
    documents, folders, or URLs. With the exception of special support for \
    TextEdit (open -a), launch does all this and more.

homepage        http://web.sabi.net/nriley/software/
master_sites    ${homepage}

checksums       md5 bcd5179d5b519248a717aa73f3819e00 \
                sha1 000d6f1063f1b9091a8b10de90cfa778ed6a6ed1 \
                rmd160 7eba376fdedd322ecfcc4d429bf608dcd1e79c34

patchfiles      patch-main.c.diff

xcode.destroot.path ${prefix}/bin

post-destroot {
    xinstall -m 0444 ${worksrcpath}/${name}.1 \
        ${destroot}${prefix}/share/man/man1

    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 ${worksrcpath}/README ${destroot}${docdir}
}

livecheck.type  none
