# -*- 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 82493 2011-08-14 17:51:24Z ram@macports.org $

PortSystem        1.0
PortGroup         python31 1.0

name              py31-dateutil
set my_name       python-dateutil
version           2.0
categories        python
platforms         darwin
supported_archs   noarch
maintainers       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 22297f7e891bcd79a80d9446d8b20542 \
                  sha1 946337a273866cc4f51d32c86cdbc4209ab84a43 \
                  rmd160 a7ae3c4948c69471c95466236a388d63fcdac120

depends_run       port:py31-tz \
                  port:py31-distribute

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}
  xinstall -d ${destroot}${docdir}
  xinstall -m 0644 -W ${worksrcpath} LICENSE README NEWS ${destroot}${docdir}
}

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