# -*- 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 66634 2010-04-18 15:10:28Z ram@macports.org $

PortSystem      1.0
PortGroup       python25 1.0

name            py25-tz
set my_name     pytz
version         2010h
categories      python devel
platforms       darwin
if {[info exists supported_archs]} {
    supported_archs noarch
}
maintainers     nox 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     3c24fd25971b730d6db0426487a21ae0 \
                sha1    807f09daf610b0e9e8d1d7ffec61a0631f35ea2c \
                rmd160  a95fb1effe3cf95854bea30c093d3d06959a9235

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?)
