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         nomaintainer
platforms           any
supported_archs     noarch
license             MIT

homepage            https://rtomayko.github.io/bcat/

checksums           md5     d9dce15b21a68992158fd7e5fadc9b8b \
                    sha1    d02961767e510281b53cb5048a93b6ff5dba51da \
                    rmd160  6e48619298cd7b8a6fa6b379485048b16dff1ff2

post-destroot {
    set gemdir ${destroot}${ruby.gemdir}/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}
}
