# -*- 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 65908 2010-04-02 22:28:17Z jmr@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-werkzeug
version             0.5.1
revision            1
categories-append   www
maintainers         openmaintainer akitada
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           md5 620955f34b8424c92674fe76d5c47679 \
                    sha1 8145f16c86f31404ba30183a2040acfa21e6ee84 \
                    rmd160 4bbe46307f9a896a8203ca70dc2d8d298eae3381 \

use_zip             yes

depends_lib        port:py26-distribute

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