# $Id: Portfile 49169 2009-04-04 22:07:21Z ryandesign@macports.org $

PortSystem              1.0

name                    openbrowser
version                 1.0
categories              sysutils
platforms               macosx
maintainers             ryandesign

description             opens files and URLs into the default web browser

long_description        openbrowser opens files and URLs into your default \
                        web browser. Unlike \"open\", openbrowser will still \
                        open local .html files into your web browser even \
                        if you have configured LaunchServices to open .html \
                        files into e.g. a text editor.

homepage                http://www.macports.org/

distfiles

depends_run             port:p5-mac-carbon

universal_variant       no

extract.mkdir           yes

configure {
    copy ${filespath}/${name} ${worksrcpath}
}

build {
    reinplace "s|/usr/bin/env perl|${prefix}/bin/perl|g" ${worksrcpath}/${name}
}

destroot {
    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
}

livecheck.check         none
