# -*- 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.22
revision            1
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  0b12f1d6ba49aa1146a51d12eff87ada6323fb78 \
                    sha256  b67f711b3c8370d9f40f7f7f536aa6018d8900fa09fa49f72f0c3f13886cecda \
                    size    676356

python.versions     39 310 311 312 313

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 \
                    patch-setup.py.diff

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