# -*- 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.11.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  e7c3a8782b8402f89ec7658113e416dc6ccb087c \
                    sha256  075dc3ef4458a278e0195cbf6ac9d38808d9b906c5a6c7f7f79c3888276a3fb1 \
                    size    200139

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