# -*- 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           github 1.0
PortGroup           python 1.0

# keep this in sync with port brotli
github.setup        google brotli 1.1.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
name                py-brotli
categories          python archivers
maintainers         nomaintainer
license             MIT

description         Python module for brotli compression format

long_description    \
    Brotli is a generic-purpose lossless compression algorithm that is similar \
    in speed with deflate but offers more dense compression. This port installs \
    python modules, see also port brotli for the bro tool.

dist_subdir         brotli

checksums           rmd160  cb6909cbcc7c0bb19b8e985dbd7fcbca1b651772 \
                    sha256  10973f4b4199eafa1d5735ef661ddb2ec2f97319ee9fd1824d4aabe08cff5265 \
                    size    512036

python.versions     39 310 311 312 313 314

if {$subport ne $name} {
    patchfiles      CXXFLAGS.patch

    test.run yes
}

github.livecheck.regex {([0-9.]+)}
