# -*- 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 80113 2011-07-04 15:30:09Z ram@macports.org $

PortSystem      1.0
PortGroup       python26 1.0

name            py26-tz
set my_name     pytz
version         2011h
categories      python devel
platforms       darwin
supported_archs noarch
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_zip         yes

checksums       md5 37248de48c28e1ae4ffb5ee47a298e4c \
                sha1 46d8c71eb06631bc50fc1671b7a071758655a236 \
                rmd160 30fb4fb855615df2ac8ca10cd160b7286a14bd10

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