# -*- 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.1
revision            0

categories-append   lang
license             BSD
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

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

homepage            https://www.antlr.org

checksums           rmd160  262b60011a1f66cadd8040e1213749396f17b6aa \
                    sha256  3cd282f5ea7cfb841537fe01f143350fdb1c0b1ce7981443a2fa8513fddb6d1a \
                    size    117451

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

        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
    }
}
