# -*- 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.0.9 v
revision            1
name                py-brotli
categories          python archivers
platforms           darwin
maintainers         {raimue @raimue} \
                    openmaintainer
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  3e2402d137fd75f898007d3730773b32025a4857 \
                    sha256  b56a4371636e063ad3695f7c53aed5c18fc2303034564534981e7d6a11b75138 \
                    size    487046

python.versions     27 36 37 38 39

if {$subport ne $name} {
    depends_build-append port:py${python.version}-setuptools

    patchfiles      CXXFLAGS.patch

    test.run yes

    livecheck.type  none
}
