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

categories-append   graphics math
maintainers         {michaelld @michaelld} openmaintainer
license             MIT
supported_archs     noarch
platforms           {darwin any}

description         Scientific Graphics and Qt GUI library for Python

long_description    PyQtGraph is a pure-python graphics and GUI library \
                    built on PyQt4/PyQt5 and numpy. It is intended for use in \
                    mathematics / scientific / engineering applications. \
                    It is very fast due to its heavy leverage of numpy \
                    for number crunching and Qt’s GraphicsView framework \
                    for fast display.

version             0.13.7
checksums           rmd160  dcc61a485d23320e58c7ff5a9b5a15035d0381fc \
                    sha256  64f84f1935c6996d0e09b1ee66fe478a7771e3ca6f3aaa05f00f6e068321d9e3 \
                    size    2343380
revision            0

homepage            https://pyqtgraph.org/

python.versions     310 311 312 313

if {${subport} ne ${name}} {
    if {[variant_isset pyqt4] || [variant_isset pyside]} {
        version     0.11.1
        checksums   rmd160  dd120edb7b6199222713dd67d01387edc52277b0 \
                    sha256  7d1417f36b5b92d1365671633a91711513e5afbcc82f32475d0690317607714e \
                    size    789229
    }

    depends_lib-append      port:py${python.version}-scipy

    variant pyqt4 conflicts pyqt5 pyside description "Qt interface via PyQt4" {
        depends_lib-append  port:py${python.version}-pyqt4
    }

    variant pyqt5 conflicts pyqt4 pyside description "Qt interface via PyQt5" {
        depends_lib-append  port:py${python.version}-pyqt5
    }

    variant pyside conflicts pyqt4 pyqt5 description "Qt interface via PySide" {
        depends_lib-append  port:py${python.version}-pyside
    }

    variant opengl description "support for 3D graphics" {
        depends_lib-append  port:py${python.version}-opengl
    }

    if {![variant_isset pyside] && ![variant_isset pyqt4]} {
        default_variants +pyqt5
    }

    default_variants-append +opengl
}
