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

name                py-luma.emulator

github.setup        rm-hull luma.emulator 1.5.0
github.tarball_from archive

revision            0
maintainers         nomaintainer
platforms           {darwin any}
supported_archs     noarch
license             MIT

description         Drawing and text rendering for small displays, emulator \
                    module
long_description    luma.emulator provides a series of pseudo-display devices \
                    which allow the luma.core components to be used without \
                    running a physical device.

checksums           rmd160  3ead715baa2b76ee830f4409852370d42d3ba54e \
                    sha256  903da7fdb736822c69e6ce1e7141e37674cbb664567e04ef3b30b1bc3f261b5f \
                    size    903555
python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-luma.core \
                    port:py${python.version}-game
    depends_test-append \
                    port:py${python.version}-pytest-timeout
    test.run        yes
    test.env-append PYTHONPATH=${worksrcpath}/build/lib:${worksrcpath}
    test.args
}
