# -*- 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-pyppmd
version             1.3.1
revision            0

license             LGPL-2.1+
maintainers         nomaintainer

description         PPMd compression/decompression library
long_description    {*}${description}

homepage            https://github.com/miurahr/pyppmd

checksums           rmd160  db694d3c50b6a1b2f9ab935d150e9aca8b9ba4c4 \
                    sha256  ced527f08ade4408c1bfc5264e9f97ffac8d221c9d13eca4f35ec1ec0c7b6b2e \
                    size    1351815

python.versions     311 312 313 314 315

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

    depends_build-append \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-setuptools_scm

    # error: ‘for’ loop initial declaration used outside C99 mode
    compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2

    depends_test-append \
                    port:py${python.version}-coverage \
                    port:py${python.version}-hypothesis \
                    port:py${python.version}-pytest \
                    port:py${python.version}-pytest-benchmark \
                    port:py${python.version}-pytest-cov \
                    port:py${python.version}-pytest-timeout

    test.run        yes
    test.env-append PYTHONPATH=${destroot}${python.pkgd}
    test.args-append \
                    --benchmark-disable
}
