# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 79229 2011-06-05 22:43:35Z ram@macports.org $

PortSystem      1.0
PortGroup       python25 1.0

name            py25-tz
set my_name     pytz
version         2011g
categories      python devel
platforms       darwin
supported_archs noarch
maintainers     nomaintainer
description     World Timezone Definitions for Python

long_description \
    pytz brings the Olson tz database into Python. This library allows \
    accurate and cross platform timezone calculations using Python 2.3 \
    or higher.

homepage        http://pytz.sourceforge.net/
master_sites    http://cheeseshop.python.org/packages/source/p/pytz/
distname        ${my_name}-${version}
#use_zip         yes

checksums       md5 9ffda6e87b5f067a7ca37c54629c9e58 \
                sha1 06a025691a0894d805d3b23da10ce374590b8561 \
                rmd160 5f67fc46e16edb9f19922b995ac64a5656116024

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W $worksrcpath CHANGES.txt LICENSE.txt README.txt \
        ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   ${master_sites}?C=M&O=D
livecheck.regex ${my_name}-(\\d+\\w?)
