# -*- 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-antlr4-python3-runtime
version             4.13.2

distname            [string map {- _} ${python.rootname}]-${version}

categories-append   lang
license             BSD
platforms           {darwin any}
supported_archs     noarch
maintainers         {pguyot @pguyot} openmaintainer

description         ANTLR4 runtime for Python 3
long_description    {*}${description}

homepage            https://www.antlr.org

checksums           rmd160  a3d729ea570f589416c9640dfd100a1fdaa79f8d \
                    sha256  909b647e1d2fc2b70180ac586df3933e38919c85f98ccc656a96cd3f25ef3916 \
                    size    117467

python.versions     310 311 312 313 314

foreach python_version ${python.versions} {
    subport py${python_version}-antlr4-python3-runtime-49 {
        version             4.9.3
        revision            0

        distname            ${python.rootname}-${version}

        checksums           rmd160  f765325a0f017d0fc8b2287a477869a3083535e4 \
                            sha256  f224469b4168294902bb1efa80a8bf7855f24c99aef99cbefc1bcd3cce77881b \
                            size    117034

        description         ANTLR4 runtime for Python 3 (4.9.x series)
        long_description    {*}${description} \
                            This is the 4.9.x series required by OmegaConf.

        conflicts           py${python_version}-antlr4-python3-runtime

        python.rootname     antlr4-python3-runtime

        livecheck.type      none
    }
}
