# -*- 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 107892 2013-07-08 15:46:13Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-webob
set real_name       WebOb
version             1.2.3
python.versions     25 26 27
categories-append   www
license             MIT
maintainers         nomaintainer
description         WSGI request and response object.
long_description    \
    WebOb provides wrappers around the WSGI request environment, and an \
    object to help create WSGI responses. \
    \
    The objects map much of the specified behavior of HTTP, including \
    header parsing and accessors for other standard parts of the \
    environment.

platforms           darwin
supported_archs     noarch

homepage            http://webob.org/
master_sites        https://pypi.python.org/packages/source/W/${real_name}/
distname            ${real_name}-${version}
checksums           md5    11825b7074ba7043e157805e4e6e0f55 \
                    rmd160 d97a2c3fdef966ee59179665ed87b5873a112a23 \
                    sha256 325c249f3ac35e72b75ba13b2c60317def0c986a24a413ebf700509ea4c73a13

if {$name != $subport} {
    depends_build       port:py${python.version}-setuptools
    if {${python.version} <= 25} {
        version             1.1.1
        distname            ${real_name}-${version}
        use_zip             yes
        checksums           rmd160 39284620aee3dc7e4063fb36a6298f25d3d7d6e9 \
                            sha256 21f3a2ecea66129b20ba757fafa087af8ba85e413c77972accdeb56a50f1eff6
    }
}
