# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-babel
version             1.3
revision            0
categories-append   devel
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     25 26 27 33

maintainers         stromnov openmaintainer

description         A collection of tools for internationalizing Python applications.

long_description    Babel is an integrated collection of utilities that \
                    assist in internationalizing and localizing Python \
                    applications, with an emphasis on web-based applications.

homepage            http://babel.pocoo.org/
master_sites        https://pypi.python.org/packages/source/B/Babel/

distname            Babel-${version}

checksums           rmd160  ea1796b29a8bd563d78e9848416e9c72332f8826 \
                    sha256  9f02d0357184de1f093c10012b52e7454a1008be6a5c185ab7a3307aceb1d12e

if {${subport} eq "py25-babel"} {
    version             0.9.6
    revision            0
    distname            Babel-${version}
    checksums           rmd160  a4867679703b618948f862fc417cca4b53c869e5 \
                        sha256  4a3a085ecf1fcd2736573538ffa114f1f4331b3bbbdd69381e6e172c49c9750f
}

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-tz

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {Babel-(\d+(?:\.\d+)*)\.[tz]}
}
