# $Id: Portfile 84512 2011-09-27 14:19:06Z snc@macports.org $

PortSystem          1.0
PortGroup           ruby 1.0

ruby.setup          bcat 0.5.0 gem {} rubygems ruby19
description         pipe to browser utility
long_description    \
    bcat is a pipe to browser utility for use at the shell and within editors \
    like Vim or Emacs. It reads from standard input, or one or more files, \
    and streams output to a browser window.
maintainers         singingwolfboy openmaintainer
homepage            http://rtomayko.github.com/bcat/
platforms           darwin
license             MIT
checksums           md5     d9dce15b21a68992158fd7e5fadc9b8b \
                    sha1    d02961767e510281b53cb5048a93b6ff5dba51da \
                    rmd160  6e48619298cd7b8a6fa6b379485048b16dff1ff2

post-destroot {
    set gemdir ${destroot}${prefix}/lib/ruby${ruby.prog_suffix}/gems/${ruby.version}/gems/${worksrcdir}
    set mandir ${destroot}${prefix}/share/man/
    set docdir ${destroot}${prefix}/share/doc/${ruby.module}
    xinstall -d ${docdir}

    xinstall ${gemdir}/man/bcat.1 ${gemdir}/man/btee.1 ${gemdir}/man/a2h.1 \
             ${mandir}/man1/
    xinstall -W ${gemdir} \
             CONTRIBUTING COPYING INSTALLING README man/index.html \
             ${docdir}
}
