# -*- 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 117473 2014-02-28 10:19:50Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-iso8601
version             0.1.10
revision            0
categories-append   devel
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     26 27 32 33 34

maintainers         stromnov openmaintainer

description         Simple module to parse ISO 8601 dates
long_description    ${description}

homepage            http://code.google.com/p/pyiso8601/
master_sites        http://pypi.python.org/packages/source/i/iso8601/

distname            iso8601-${version}

checksums           rmd160  dab2bd109891c7c76340dc6a5a18a86c5c95eee4 \
                    sha256  e712ff3a18604833f5073e836aad795b21170b19bbef70947c441ed89d0ac0e1

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     {iso8601-(\d+(?:\.\d+)*)\.[tz]}
}
