# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 82553 2011-08-15 19:22:39Z jmr@macports.org $

PortSystem              1.0

name                    openbrowser
version                 1.0.1
revision                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.12-mac-propertylist

universal_variant       no

extract.mkdir           yes

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

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

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

livecheck.type          none
