# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 84849 2011-10-03 16:28:42Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-jinja2
version             2.6
categories-append   devel
license             BSD
maintainers         jmr openmaintainer
supported_archs     noarch

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

checksums           md5 1c49a8825c993bfdcf55bb36897d28a2 \
                    sha1 f122aeb324b2009bbcee341d0f001a047ac4bbe5 \
                    rmd160 77829eabfc71dd6cf7eece1fe5d0b96b21de3b18

python.versions     24 25 26 27

if {$subport != $name} {
    depends_lib     port:py${python.version}-distribute \
                    port:py${python.version}-markupsafe
    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   http://pypi.python.org/pypi/Jinja2/
    livecheck.regex {Jinja2 ([0-9\.]+)}
}
