# -*- 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-pylsqpack
version             0.3.24
revision            0

license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         pylsqpack is a wrapper around the ls-qpack library.
long_description    {*}${description} It provides Python Decoder and Encoder objects \
                    to read or write HTTP/3 headers compressed with QPACK.
homepage            https://github.com/aiortc/pylsqpack

checksums           rmd160  a96559caf9f8a63d54ccd717a267c73042dc4cd4 \
                    sha256  8ec455f44614228f89e38d40c1b1e37895620e20ec6b21e3b562fa8b79a23890 \
                    size    677187

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_build-append \
                    port:ls-qpack

    # error: #pragma GCC diagnostic not allowed inside functions
    compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2

    patchfiles      patch-pyproject.toml.diff 

    configure.env-append \
                    MP_PREFIX=${prefix}
}
