# $Id: Portfile 58196 2009-09-23 23:59:26Z ryandesign@macports.org $

PortSystem              1.0

name                    openbrowser
version                 1.0.1
categories              sysutils
platforms               macosx
maintainers             ryandesign
license                 MIT

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-propertylist

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.type          none
