# $Id: Portfile 68389 2010-06-02 22:07:46Z singingwolfboy@macports.org $
PortSystem          1.0
PortGroup           ruby 1.0

ruby.setup          mustache 0.11.2 gem {} rubygems ruby19
conflicts           rb-mustache
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.
license             MIT
maintainers         singingwolfboy openmaintainer
homepage            http://mustache.github.com/
categories-append   www
checksums           md5     dfb47d8cb0f5bfb418b86e5d135c58be \
                    sha1    749ca4229922ef683a783e4ae69698b51b32ed6b \
                    rmd160  108288fc3a319614c29e6c921dbbee0b0d3501e8

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/${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}
}


