# -*- 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 52575 2009-06-19 04:18:22Z ram@macports.org $

PortSystem      1.0
PortGroup       python26 1.0

name            py26-tz
set my_name     pytz
version         2009j
categories      python devel
platforms       darwin
maintainers     ram openmaintainer
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_bzip2       yes

checksums       md5     dbd4a932c5fe753b51c7ea2323d7c177 \
                sha1    55ea04f67e09dee70d0075fc040fb7a099ab9f88 \
                rmd160  71ecabe353abef81acf0b5b3d864a947198a1c4f

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.check regex
livecheck.url   ${master_sites}?C=M&O=D
livecheck.regex ${my_name}-(\\d+\\w?)
