# -*- 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-ruamel-yaml-clib

version             0.2.12
checksums           rmd160  fed85406ed7b7de5c9399e8775b51236a3a143bb \
                    sha256  6c8fbb13ec503f99a91901ab46e0b07ae7941cd527393187039aec586fdfd36f \
                    size    225315
revision            0

license             MIT
maintainers         {michaelld @michaelld} openmaintainer

description         the C based reader/scanner and emitter for ruamel.yaml
long_description    {*}${description}.

homepage            https://yaml.readthedocs.io/

python.versions     38 39 310 311 312 313

if {${name} ne ${subport}} {
    if {${python.version} == 38} {
        version     0.2.8

        checksums   rmd160  58caef0372063cfa06e27a75fea1e85c43b1c891 \
                    sha256  beb2e0404003de9a4cab9753a8805a8fe9320ee6673136ed7f04255fe60bb512 \
                    size    213824

        patchfiles  clang16.patch
    }
    depends_build-append \
        port:py${python.version}-ruamel-yaml
}

# pypi requires "." not "-" in project names for fetching
regsub ^py- [option name] "" python_rootname
regsub -all {\-} ${python_rootname} "." python.rootname
