# -*- 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 89493 2012-01-31 23:42:14Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-werkzeug
version             0.8.2
python.versions     24 25 26 27
revision            0
categories-append   www
maintainers         openmaintainer akitada
supported_archs     noarch

description         The Swiss Army knife of Python web development.
long_description    \
    Werkzeug \
    ======== \
    \
    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.). \
    \
    Details and example applications are available on the \
    `Werkzeug website <http://werkzeug.pocoo.org/>`_. \
    \
    \
    Features \
    -------- \
    \
    -   unicode awareness \
    -   request and response objects \
    -   various utility functions for dealing with HTTP headers such as \
        `Accept` and `Cache-Control` headers. \
    -   thread local objects with proper cleanup at request end \
    -   an interactive debugger \
    -   wrapper around wsgiref that works around some of the limitations \
        and bugs, adds threading and fork support for test environments \
        and adds an automatic reloader. \
    -   a flexible URL routing system with REST support. \
    -   fully WSGI compatible \
    \
    \
    Development Version \
    ------------------- \
    \
    The `Werkzeug tip <http://dev.pocoo.org/hg/werkzeug-main/archive/tip.zip#egg=Werkzeug-dev>`_ \
    is installable via `easy_install` with ``easy_install Werkzeug==dev``.

platforms           darwin

homepage            http://werkzeug.pocoo.org/
master_sites        http://pypi.python.org/packages/source/W/Werkzeug/
distname            Werkzeug-${version}

checksums           rmd160  d685f6911261a5c2e82c14e396dd161687299035 \
                    sha256  15bbc16f586a9ec6606e8a6005373491270901ef8fd47a91898f5183cd383a28

if {$subport != $name} {
    depends_lib-append  port:py${python.version}-distribute

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${subport}
    xinstall -m 755 -d ${docdir}/examples
    foreach f [glob -directory ${worksrcpath}/docs *] {
        copy $f ${docdir}/[file tail $f]
    }
    foreach f [glob -directory ${worksrcpath}/examples *] {
        copy $f ${docdir}/examples/[file tail $f]
    }
    delete ${docdir}/Makefile
}

}
