# $Id: Portfile 66555 2010-04-16 16:33:06Z singingwolfboy@macports.org $
PortSystem          1.0
PortGroup           ruby 1.0

ruby.setup          mustache 0.10.0 gem
revision            1
maintainers         singingwolfboy openmaintainer
description         Logic-less templates, implemented in Ruby.
long_description    \
    Inspired by ctemplate and et, Mustache is a framework-agnostic way to \
    render logic-free views.
categories-append   www
license             MIT
platforms           darwin
homepage            http://mustache.github.com/
master_sites        http://rubygems.org/downloads/
checksums           md5     fa107351a80265149de08e6af9b4f477 \
                    sha1    1ea270702d50745e0d6431cf212d81d18d0df916 \
                    rmd160  644455c6a734a0ce205f501e0ec6c3a36360e849

post-destroot {
    set gemdir ${destroot}${prefix}/lib/ruby/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/${ruby.module}.1 ${mandir}/man1/
    xinstall ${gemdir}/man/${ruby.module}.5 ${mandir}/man5/
    xinstall -W ${gemdir} README.md LICENSE ${docdir}
    eval xinstall [glob  ${gemdir}/man/*.html] ${docdir}
}


