# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-jinja2
version             2.7
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        https://pypi.python.org/packages/source/J/Jinja2/
distname            Jinja2-${version}

checksums           md5 c2fb12cbbb523c57d3d15bfe4dc0e8fe \
                    sha1 fe11167f17292a02e031efa8ad436bcb4ea9425e \
                    rmd160 bf0cf714fcd5dc03e15f1102552bd64eaf2f2895

python.versions     24 25 26 27 31 32 33

if {$subport != $name} {
    depends_lib     port:py${python.version}-setuptools \
                    port:py${python.version}-markupsafe
    if {${python.version} < 26 || (${python.version} >= 30 && ${python.version} < 33)} {
        version     2.6
        distname    Jinja2-${version}
        checksums   md5 1c49a8825c993bfdcf55bb36897d28a2 \
                    sha1 f122aeb324b2009bbcee341d0f001a047ac4bbe5 \
                    rmd160 77829eabfc71dd6cf7eece1fe5d0b96b21de3b18
    }
    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/Jinja2/
    livecheck.regex {Jinja2 ([0-9\.]+)}
}
