# -*- 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-propcache
version             0.4.1
revision            0
categories-append   devel
license             Apache-2

maintainers         {toby @tobypeterson} openmaintainer

description         Fast implementation of cached properties
long_description    Accelerated versions of functools.cached_property

homepage            https://github.com/aio-libs/propcache

checksums           rmd160  ba120dda8ac347c5ebf4c7d0130186495285860b \
                    sha256  f48107a8c637e80362555f37ecf49abe20370e557cc4ab374f04ec4423c97c3d \
                    size    46442

python.versions     310 311 312 313 314

compiler.c_standard 1999

if {${subport} ne ${name}} {
    patchfiles-append       patch-cython.diff

    depends_build-append    port:py${python.version}-cython \
                            port:py${python.version}-expandvars

    # _helpers_c.c:11730: error: ‘for’ loop initial declaration used outside C99 mode
    if {${python.version} < 312} {
        configure.cflags-append \
                            -std=c99
    }

    if {${python.version} < 311} {
        depends_build-append \
                            port:py${python.version}-tomli
    }
}
