# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python24 1.0

name                py-jinja2
version             2.1.1
categories-append   devel
maintainers         arthurkoziel.com:arthur openmaintainer
description         A small but fast and easy to use stand-alone template\
                    engine written in pure python.
long_description    Jinja2 is a template engine written in pure Python. It\
                    provides a Django inspired non-XML syntax but supports\
                    inline expressions and an optional sandboxed environment.

platforms           darwin

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

checksums           md5 b37fc262e4f613eec57c3defe6aea97c \
                    sha1 7776001de0269df324bd80ffeecd6e6c19382e8e \
                    rmd160 4a24259599484b823af42d476fbf004b2de7f7ca

depends_lib-append  port:py-setuptools

patchfiles          patch-setup.py.diff
post-patch {
   reinplace "s|@@NAME@@|${name}|g" ${worksrcpath}/setup.py
}

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