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

PortSystem          1.0
PortGroup           python24 1.0

name                py-werkzeug
version             0.4.1
categories-append   devel
depends_lib-append  port:py-setuptools
platforms           darwin
maintainers         arthurkoziel.com:arthur openmaintainer

homepage            http://werkzeug.pocoo.org/
description         The Swiss Army knife of Python web development
long_description    Werkzeug started as simple collection of various \
    utilities for WSGI applications and has become one of the most advanced \
    WSGI utility modules. It includes a powerful debugger, full featured \
    request and response objects, HTTP utilities to handle entity tags, \
    cache control headers, HTTP dates, cookie handling, file uploads, a \
    powerful URL routing system and a bunch of community contributed addon \
    modules.\
    \
    Werkzeug is unicode aware and doesn't enforce a specific template engine, \
    database adapter or anything else. It doesn't even enforce a specific way \
    of handling requests and leaves all that up to the developer. It's most \
    useful for end user applications which should work on as many server \
    environments as possible (such as blogs, wikis, bulletin boards, etc.).

master_sites        http://pypi.python.org/packages/source/W/Werkzeug/
distname            Werkzeug-${version}
checksums           md5     9bc096feb9fc43ea9f6c558b9c330c3e \
                    sha1    a0c9c4f203b8afd2c6ec0ca1e0b9c88acc92454b \
                    rmd160  c5489f3d45681996cc55d3b7badf28564038fb70

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/Werkzeug/
livecheck.regex     Jinja2 (0\.\[0-9\]+\.\[0-9\]+)
