# -*- 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 49973 2009-04-21 17:39:47Z jmr@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-jinja2
version             2.1.1
revision            1
categories-append   devel
maintainers         jmr openmaintainer
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 b37fc262e4f613eec57c3defe6aea97c \
                    sha1 7776001de0269df324bd80ffeecd6e6c19382e8e \
                    rmd160 4a24259599484b823af42d476fbf004b2de7f7ca

depends_lib-append  port:py26-setuptools

post-patch {
   reinplace "s|data_files.append(('docs',|data_files.append(('docs/${name}',|g" \
        ${worksrcpath}/setup.py
}

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