PortSystem          1.0
PortGroup           ruby 1.0

ruby.setup          unicorn 1.0.0 gem {} rubygems ruby19
revision            1
description         HTTP server for Rack applications designed for Unix
long_description    \
    Unicorn is an HTTP server for Rack applications designed to only serve \
    fast clients on low-latency, high-bandwidth connections and take advantage \
    of features in Unix/Unix-like kernels. Slow clients should only be served \
    by placing a reverse proxy capable of fully buffering both the request \
    and response in between Unicorn and slow clients.
license             GPL-2 Ruby
maintainers         nomaintainer
homepage            http://unicorn.bogomips.org/
categories-append   www
platforms           darwin
checksums           md5     fddcb13591c7034186f80f571309cfa2 \
                    sha1    d01f0ec9c4349077eed9cacd303b3b9a38806b18 \
                    rmd160  79b86eb6109070d93b0ab7cc143015a8d8b1f878

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/man1/${ruby.module}.1 \
             ${gemdir}/man/man1/${ruby.module}_rails.1 \
             ${mandir}/man1/
    xinstall -W ${gemdir} CONTRIBUTORS COPYING ChangeLog DESIGN FAQ HACKING ISSUES KNOWN_ISSUES NEWS PHILOSOPHY README SIGNALS TODO TUNING ${docdir}
    xinstall {*}[glob  ${gemdir}/Documentation/*.txt] ${docdir}
}
