# -*- 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 66112 2010-04-06 04:39:17Z jmr@macports.org $

PortSystem        1.0
PortGroup         python24 1.0

name              py-dateutil
set my_name       python-dateutil
version           1.4.1
categories        python
platforms         darwin
if {[info exists supported_archs]} {
    supported_archs noarch
}
maintainers       dh 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 2a5f25ab12fcefcf0b21348f2d47595a \
                  sha1 0d06926ac127b8db333d91b3afb0eeb100ac7cac \
                  rmd160 51caf0b0c7bfbf16044437e3b93af22829180dca

depends_run       port:py-tz \
                  port:py-setuptools

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

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

universal_variant no

livecheck.type    regex
livecheck.regex   /${my_name}-(\\d+(?:\\.\\d+)*)
