# -*- 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 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-flup
license             BSD
version             1.0.3.dev-20110405
categories-append   www
platforms           darwin
maintainers         lightnin openmaintainer
supported_archs     noarch

description         Flup is a random collection of WSGI servers and \
                    middleware.
long_description    Flup offer three sets of WSGI servers/gateways, which \
                    speak AJP 1.3, FastCGI, and SCGI. Each server comes in \
                    two flavors: a threaded version, and a forking version.

homepage            http://www.saddi.com/software/flup
master_sites        http://pypi.python.org/packages/source/f/flup/
distname            flup-${version}
checksums           md5 a005b072d144fc0e44b0fa4c5a9ba029 \
                    sha1 d1be86226a46ef031bf813497aa5520e3792b8e2 \
                    rmd160 25f58df998a7e98810e32da02c5ea4ccaeb25e40

python.versions     24 25 26 27
python.default_version 27

if {${name} ne ${subport}} {
    post-destroot   {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} \
            ChangeLog \
            PKG-INFO \
            ${destroot}${docdir}
    }
}
