# -*- 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-librt
version             0.12.0
revision            0
license             MIT
maintainers         {toby @tobypeterson} openmaintainer
description         mypyc runtime library
long_description    This library contains basic functionality that is useful in code \
                    compiled using mypyc, and efficient C implementations of various \
                    Python standard library classes and functions. Mypyc can produce \
                    faster extensions when you use librt in the code you compile. \
                    librt also contains some internal library features used by mypy.

homepage            https://github.com/mypyc/librt

checksums           rmd160  13687fbcaad463f8eaa06647842f8ede754cf720 \
                    sha256  cb26faedbd09c6130e9c1b64d8000efec5076ffd18d606c6cd1cf02730e6d8b0 \
                    size    203841

python.versions     310 311 312 313 314

if {${subport} ne ${name}} {
    platform darwin {
        # pythoncapi_compat.h:2113: error: ‘for’ loop initial declaration used outside C99 mode
        if {${python.version} < 312} {
            configure.cflags-append \
                    -std=c99
        }
    }
}
