# -*- 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 107150 2013-06-19 20:53:44Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-beaker
version             1.6.4
revision            0
python.versions     24 25 26 27 32 33
categories-append   www
license             BSD MIT
platforms           darwin
supported_archs     noarch

maintainers         openmaintainer akitada

description         A Session and Caching library with WSGI Middleware

long_description    \
    Beaker is a web session and general caching library that includes WSGI \
    middleware for use in web applications. \
    \
    As a general caching library, Beaker can handle storing for various times \
    any Python object that can be pickled with optional back-ends on a fine-\
    grained basis. \
    \
    Beaker was built largely on the code from MyghtyUtils, then refactored and \
    extended with database support. \
    \
    Beaker includes Cache and Session WSGI middleware to ease integration with \
    WSGI capable frameworks, and is automatically used by Pylons.

homepage            http://beaker.groovie.org
master_sites        http://pypi.python.org/packages/source/B/Beaker/

distname            Beaker-${version}

checksums           rmd160  3b755ea52e3f33faf5731bf8dfd82379672d88e3 \
                    sha256  5b06dcc9f7b1921bc962235c4051aa5f3f5d3609f42faa6064dc614ace031a3a

if {$name != $subport} {
    depends_lib-append  port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "Beaker-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
