# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 105722 2013-05-03 21:30:44Z macsforever2000@macports.org $

PortSystem          1.0
PortGroup           perl5 1.0

perl5.branches      5.8 5.10 5.12 5.14 5.16
perl5.setup         Template-Toolkit 2.24

license             {Artistic-1 GPL}
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           rmd160  88d0bf6f7838a38fc9c41fe4181595c0e7cc1a5b \
                    sha256  38834aa8c249f7b7fb8b7238f086a08947ea7d472d78f1f5e2b9f3dbf49d01c8

if {${perl5.major} != ""} {
    depends_lib-append  port:p${perl5.major}-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/${subport}
        xinstall -m 644 -W ${worksrcpath} INSTALL README \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
