# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 120172 2014-05-18 12:56:13Z cal@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-aniso8601
python.versions     27 31 32 33 34
version             0.82
checksums           rmd160  309d4f27849d9db327f66f7911bae56b5bea57fa \
                    sha256  e33ffc4ff6882e6a318c07844e346cd6160abe2f48cc2e797d2fe5f36364789e

categories-append   devel textproc
platforms           darwin
maintainers         nomaintainer
license             BSD

description         A library for parsing ISO 8601 strings
long_description    ${description}

master_sites        http://pypi.python.org/packages/source/a/aniso8601/
distname            aniso8601-${version}

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

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "aniso8601-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
