# $Id: Portfile 66112 2010-04-06 04:39:17Z jmr@macports.org $

PortSystem        1.0
PortGroup         python26 1.0

name              py26-dateutil
set my_name       python-dateutil
version           1.5
categories        python
platforms         darwin
if {[info exists supported_archs]} {
    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 35f3732db3f2cc4afdc68a8533b60a52 \
                  sha1 f489e1a70e415731d401422f711670288571040b \
                  rmd160 5f7c80ec9bf68f1708213596a994130964e91e52

depends_run       port:py26-tz \
                  port:py26-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}-${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+)*)
