# $Id: Portfile 91590 2012-04-06 12:39:48Z mmoll@macports.org $

PortSystem 1.0
PortGroup python 1.0

set realname        empy
name                py-${realname}
version             3.3
revision            1
categories          python
maintainers         openmaintainer mmoll
license             LGPL
platforms           darwin freebsd
description         powerful and robust templating system for python
long_description    py-empy is a system for embedding Python expressions \
                    and statements in template text. It takes an EmPy \
                    source file, processes it, and produces output. This \
                    is accomplished via expansions, which are special \
                    signals to the py-empy system and are set off by a \
                    special prefix.

homepage            http://www.alcyone.com/software/empy/
master_sites        ${homepage}
distname            empy-${version}
checksums           md5     e7b518a6fc4fd28fef87726cdb003118 \
                    sha1    dfc82202231143b9aabc81bd735c6f8a559b5109 \
                    rmd160  0a9ef8d8c25a4784769a0de283108fe0ddca1289

python.versions     24 25 26 27 31 32
python.default_version 24

if {${name} == ${subport}} {
    livecheck.type      regex
    livecheck.url       ${homepage}
    livecheck.regex     The current version of empy is (\[0-9.\]+\[0-9\])
} else {
    post-destroot {
        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type      none
}
