# -*- 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        vispy vispy 0.15.1 v
revision            0
github.tarball_from archive
name                py-vispy
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         VisPy is a high-performance interactive 2D/3D data visualization \
                    library.
long_description    {*}${description} VisPy leverages the computational power of modern \
                    Graphics Processing Units (GPUs) through the OpenGL library to \
                    display very large datasets.
homepage            https://vispy.org/index.html

python.versions     39 310 311 312 313

checksums           rmd160  6cb7f7e2874fa5099a8fc9c0a431a47473d11499 \
                    sha256  65c13822b7756b02a0bcd01b601379a3aafbbf7eefd2e342ef85be619413b8ea \
                    size    2542481

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-cython \
                    port:py${python.version}-oldest-supported-numpy \
                    port:py${python.version}-pythran \
                    port:py${python.version}-setuptools_scm \
                    port:py${python.version}-setuptools_scm_git_archive

    depends_lib-append  \
                    port:py${python.version}-freetype \
                    port:py${python.version}-hsluv \
                    port:py${python.version}-kiwisolver \
                    port:py${python.version}-meshio \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pyqt5

    patchfiles      patch-pyproject.toml.diff
}
