# -*- 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.2.0
revision            0

license             LGPL-2.1+
maintainers         nomaintainer

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

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

checksums           rmd160  f8b219bd9aadd1c7158ebd6fc00ebb1e0cf1ef35 \
                    sha256  cc04af92f1d26831ec96963439dfb27c96467b5452b94436a6af696649a121fd \
                    size    1351286

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    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
}
