Ticket #32498: Portfile

File Portfile, 3.2 KB (added by singingwolfboy@…, 13 years ago)

unified portfile for werkzeug

Line 
1# -*- 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
2# $Id: Portfile 79350 2011-06-10 07:46:48Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-werkzeug
8version             0.8.1
9python.versions     24 25 26 27
10revision            0
11categories-append   www
12maintainers         openmaintainer akitada
13supported_archs     noarch
14
15description         The Swiss Army knife of Python web development.
16long_description    \
17    Werkzeug \
18    ======== \
19    \
20    Werkzeug started as simple collection of various utilities for WSGI \
21    applications and has become one of the most advanced WSGI utility \
22    modules.  It includes a powerful debugger, full featured request and \
23    response objects, HTTP utilities to handle entity tags, cache control \
24    headers, HTTP dates, cookie handling, file uploads, a powerful URL \
25    routing system and a bunch of community contributed addon modules. \
26    \
27    Werkzeug is unicode aware and doesn't enforce a specific template \
28    engine, database adapter or anything else.  It doesn't even enforce \
29    a specific way of handling requests and leaves all that up to the \
30    developer. It's most useful for end user applications which should work \
31    on as many server environments as possible (such as blogs, wikis, \
32    bulletin boards, etc.). \
33    \
34    Details and example applications are available on the \
35    `Werkzeug website <http://werkzeug.pocoo.org/>`_. \
36    \
37    \
38    Features \
39    -------- \
40    \
41    -   unicode awareness \
42    -   request and response objects \
43    -   various utility functions for dealing with HTTP headers such as \
44        `Accept` and `Cache-Control` headers. \
45    -   thread local objects with proper cleanup at request end \
46    -   an interactive debugger \
47    -   wrapper around wsgiref that works around some of the limitations \
48        and bugs, adds threading and fork support for test environments \
49        and adds an automatic reloader. \
50    -   a flexible URL routing system with REST support. \
51    -   fully WSGI compatible \
52    \
53    \
54    Development Version \
55    ------------------- \
56    \
57    The `Werkzeug tip <http://dev.pocoo.org/hg/werkzeug-main/archive/tip.zip#egg=Werkzeug-dev>`_ \
58    is installable via `easy_install` with ``easy_install Werkzeug==dev``.
59
60platforms           darwin
61
62homepage            http://werkzeug.pocoo.org/
63master_sites        http://pypi.python.org/packages/source/W/Werkzeug/
64distname            Werkzeug-${version}
65
66checksums           rmd160  c09bb4b5fbdd19745ddb90d341171addbc81b362 \
67                    sha256  ec4122adcf3f6277c23f10128be1c2da9352b899a976a03245a698e83dfd95db
68
69if {$subport != $name} {
70    depends_lib        port:py${python.version}-distribute
71}
72
73post-destroot {
74    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
75    foreach f [glob -directory ${worksrcpath}/docs *] {
76        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
77    }
78    foreach f [glob -directory ${worksrcpath}/examples *] {
79        copy $f ${destroot}${prefix}/share/doc/${name}/examples/[file tail $f]
80    }
81}