# -*- 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 119030 2014-04-15 17:34:57Z macsforever2000@macports.org $

PortSystem          1.0
PortGroup python    1.0

name                py-isodate
version             0.5.0

license             BSD
platforms           darwin
maintainers         nomaintainer

description         An ISO 8601 date/time/duration parser and formatter

long_description    This module implements ISO 8601 date, time and duration \
                    parsing. The implementation follows ISO8601:2004 standard, \
                    and implements only date/time representations mentioned in \
                    the standard. If something is not mentioned there, then it \
                    is treated as non existent, and not as an allowed option.

homepage            https://pypi.python.org/pypi/isodate
master_sites        https://pypi.python.org/packages/source/i/isodate
distname            isodate-${version}

checksums           md5     9a267e9327feb3d021cae26002ba6e0e \
                    rmd160  4154ab9e03a9a35649569d4dc65bae1d40f58d88 \
                    sha256  f3e436a9c321882942a6c62e9d8ea49787b4c0ea7f7bb3cbd047bcf76bd0dfbe

python.versions     26 27 32 33

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

    test.run        yes
    test.cmd        ${python.bin} run_tests.py
    test.target

    post-destroot {
        xinstall -m 644 -W ${worksrcpath} CHANGES.txt MANIFEST.in \
            README.rst TODO.txt ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   ${homepage}
    livecheck.regex {isodate-([0-9\.]+)\.tar\.gz}
}
