# $Id: Portfile 83230 2011-08-29 05:39:28Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-jinja
version             1.2
revision            1
categories-append   devel
license             BSD
maintainers         rickvanderzwet.nl:info
description         Python based sandboxed template engine
long_description \
    Jinja is a sandboxed template engine written in pure Python licensed\
    under the BSD license. It provides a Django-like non-XML syntax and\
    compiles templates into executable python code. It's basically a\
    combination of Django templates and python code.

platforms           darwin

homepage            http://jinja.pocoo.org/
master_sites        http://pypi.python.org/packages/source/J/Jinja/
distname            Jinja-${version}

checksums           md5 1235a005ade00b213800ff1e798c0241 \
                    sha1 46fcf22ce2a1d432296ebfe16bcf11ce17f5c097 \
                    rmd160 5b0a9ba2241e8ec6417b382384bbe3e1bf4dba8a

python.versions     25 26
python.default_version 26

if {$subport != $name} {
    depends_lib-append  port:py${python.version}-distribute
    patchfiles          patch-setup.py.diff
    post-patch {
       reinplace "s|@@NAME@@|${subport}|g" ${worksrcpath}/setup.py
    }
}

livecheck.type      regex
livecheck.url       http://pypi.python.org/pypi/Jinja/
livecheck.regex     {Jinja ([0-9.]+)}
