# -*- 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$

PortSystem          1.0
PortGroup           python 1.0

name                py-logbook
version             0.9.1
revision            0
categories-append   devel
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 34

maintainers         stromnov openmaintainer

description         Python logging replacement module.
long_description    ${description}

homepage            http://packages.python.org/Logbook/
master_sites        https://pypi.python.org/packages/source/L/Logbook/

distname            Logbook-${version}

checksums           rmd160  b41a5ce7698e0a5a59397779583882ab3f7eda5f \
                    sha256  8efdb30db326810a0050119402d0a2471e2e7f941aad5f5143fd7f46a2a16356

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-setuptools

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://pypi.python.org/pypi/logbook/json
    livecheck.regex     {Logbook-(\d+(?:\.\d+)*)\.[tz]}
}