# -*- 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-dateutil
set my_name       python-dateutil
version           1.5
revision          1
categories        python
platforms         darwin
supported_archs   noarch
maintainers       dh ram openmaintainer

description       powerful extensions to the standard python datetime module
long_description  ${description}

homepage          http://labix.org/python-dateutil
master_sites      http://labix.org/download/python-dateutil
distname          ${my_name}-${version}

checksums         md5 35f3732db3f2cc4afdc68a8533b60a52 \
                  sha1 f489e1a70e415731d401422f711670288571040b \
                  rmd160 5f7c80ec9bf68f1708213596a994130964e91e52

python.versions   24 25 26 27

if {${subport} != ${name}} {
    depends_run   path:${python.pkgd}/pytz:py${python.version}-tz \
                  port:py${python.version}-distribute

    test.run          yes
    test.cmd          ${python.bin} test.py
    test.target
    test.env          PYTHONPATH=${worksrcpath}/build/lib

    post-destroot {
      if {${name} != ${subport}} {
      set docdir ${prefix}/share/doc/${subport}
      xinstall -d ${destroot}${docdir}
      xinstall -m 0644 -W ${worksrcpath} LICENSE README NEWS ${destroot}${docdir}
      }
    }
}

if {${name} == ${subport}} {
    livecheck.type    regex
    livecheck.regex   /${my_name}-(1.(\\d+)*)
} else {
    livecheck.type    none
}