# -*- 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

github.setup        NaturalHistoryMuseum pyzbar 0.1.9 v
name                py-zbar
revision            0

categories-append   devel graphics
platforms           darwin
supported_archs     noarch
license             MIT

maintainers         {@catap korins.ky:kirill} openmaintainer

description         Read one-dimensional barcodes and QR codes from Python 2 and 3.
long_description    ${description}

checksums           rmd160  abc63b3ca7899b011e12d69d2a7d46e3623ea827 \
                    sha256  439a5a1eb0ad5f12b96aeb275d7594a68915857a8690d124e190499a451b24b3 \
                    size    45784

python.versions     37 38 39 310

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

    depends_test-append \
                    port:py${python.version}-imageio \
                    port:py${python.version}-nose \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pytest \
                    port:py${python.version}-pytest-cov \
                    port:py${python.version}-python-coveralls

    depends_run-append \
                    port:py${python.version}-Pillow \
                    port:zbar

    test.run        yes

    livecheck.type  none
}
