# -*- 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
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-zbar
revision            0

categories-append   devel graphics
platforms           {darwin any}
supported_archs     noarch
license             MIT

maintainers         nomaintainer

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     310 311 312 313

if {${name} ne ${subport}} {
    depends_test-append \
                    port:py${python.version}-imageio \
                    port:py${python.version}-numpy

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

    test.run        yes
    python.test_framework nose
}
