# -*- 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.17.0
revision            0
categories-append   devel
platforms           {darwin any}
license             BSD
supported_archs     noarch

python.versions     27 36 37 38 39 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 726d2ed119255a011d248ac0c9caa24a \
                    rmd160 18b9acbc47ffe56cb97401e2f6484cffef0d3329 \
                    sha256 0c54cffb19f690cdcc52a3b50bcbf71e07a808d1c80d549f2459b9d2cf0afb9d \
                    size   9951852

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
    } elseif {${python.version} == 36} {
        version             2.11.0
        revision            0
        checksums           rmd160  1827b2e6f10ab38da79958f96cdf00ee17cd3c05 \
                            sha256  5ef4b3226b0180dedded4229651c8b0e1a3a6a2837d45a073272f313e4cf97f6 \
                            size    9346097
        depends_lib-append  port:py${python.version}-setuptools
    } elseif {${python.version} == 37} {
        version             2.15.0
        revision            0
        checksums           rmd160  f0bb0bfbe6502ae57031e4d11b5412bca1ad4d1b \
                            sha256  8daf0e265d05768bc6c7a314cf1321e9a123afc328cc635c18622a2f30a04413 \
                            size    9390000
        distname            babel-${version}
    } else {
        # for this release the filename is not capitalized
        distname            babel-${version}
        }

    if {${python.version} < 39} {
        depends_lib-append  port:py${python.version}-tz
    }

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

    test.run            yes

    livecheck.type      none
}
