# -*- 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 92833 2012-05-08 23:46:29Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       python 1.0

name            py-errorhandler
version         1.1.1
platforms       darwin
python.versions 25 26 27
python.default_version  27

maintainers     jwa openmaintainer
description     Handler for Python error messages
long_description \
   This is a handler for the python standard logging framework that can be used to tell whether messages have been logged at or above a certain level.

homepage        http://www.python-excel.org
master_sites    http://pypi.python.org/packages/source/e/errorhandler/
distname        errorhandler-${version}
checksums       rmd160  3a60f826eb1bae0e249fdefd3d6c4eb3c598832f \
                sha256  2baa97a8a256fe72960d196bbdee4404162186f539c4d73b3f1c072db18463e9

if {$subport == $name} {
    livecheck.type  regex
    livecheck.url   http://pypi.python.org/pypi/errorhandler
    livecheck.regex errorhandler-(\[1-9\]\\.\[0-9.\]+)\\.tar\\.\[bg\]z
} else {
    depends_build-append port:py${python.version}-distribute
    
    livecheck.type  none
}

