# $Id: Portfile 59745 2009-10-21 15:58:14Z jmr@macports.org $

PortSystem              1.0

PortGroup               perl5 1.0
perl5.setup             Template-Toolkit 2.22
maintainers             nomaintainer
platforms               darwin

description             Template processing system modules

long_description        The Template Toolkit is a collection of modules \
                        which implement a fast, flexible, powerful and \
                        extensible template processing system. It was \
                        originally designed and remains primarily useful \
                        for generating dynamic web content, but it can \
                        be used equally well for processing any other \
                        kind of text based documents: HTML, XML, POD, \
                        PostScript, LaTeX, and so on.

homepage                http://www.template-toolkit.org/

checksums               md5     d98277f6420e5da6b93d99a8db2b3934 \
                        sha1    5e553cdb97a594e0d81c5bd7c9b5664f963ffa4f \
                        rmd160  bcb15f3cf7de5f9ec6de31f9b427c22f30c1592e

depends_lib-append      port:p5-appconfig

configure.post_args     TT_PREFIX=${prefix}/share/tt2 \
                        TT_ACCEPT=y \
                        TT_QUIET=y

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} INSTALL README \
        ${destroot}${prefix}/share/doc/${name}
}
