# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-babel
python.rootname     Babel
version             2.18.0
revision            0
categories-append   devel
platforms           {darwin any}
license             BSD
supported_archs     noarch

python.versions     27 310 311 312 313 314

maintainers         {stromnov @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            https://babel.pocoo.org/

checksums           md5     b5ea9705c2ad6f8c630e4a66d3dd2cfa \
                    rmd160  6f3fc9a6fe855da19edc7e85e112a00e6167235c \
                    sha256  b80b99a14bd085fcacfa15c9165f651fbb3406e66cc603abf11c5750937c992d \
                    size    9959554

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version             2.9.1
        revision            0
        checksums           rmd160  b833ad421470429e1740f19dc79e02842e3ff4b1 \
                            sha256  bc0c176f9f6a994582230df350aa6e05ba2ebe4b3ac317eab29d9be5d2768da0 \
                            size    8683505
        depends_lib-append  port:py${python.version}-setuptools \
                            port:py${python.version}-tz
    } else {
        # for this release the filename is not capitalized
        distname            babel-${version}
    }

    depends_test-append port:py${python.version}-freezegun

    test.run            yes

    livecheck.type      none
}
