# -*- 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-contourpy
version             1.4.0
revision            0

categories-append   math
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Python library for calculating contours of 2D quadrilateral grids
long_description    {*}${description}

homepage            https://github.com/contourpy/contourpy

checksums           rmd160  3486e12919906585622a81d9891c29e0db2a6b83 \
                    sha256  20156f5a1ac4f8ce02656e39a61e82164a3d359796dc8026f75b062783d500e1 \
                    size    13323726

python.versions     310 311 312 313 314
python.pep517_backend   meson

if {${name} ne ${subport}} {
    if {${python.version} == 310} {
        version     1.3.2
        revision    0
        checksums   rmd160  601accd9adb86a11ff055957da0262fb2c9517a2 \
                    sha256  b6945942715a034c671b7fc54f9588126b0b8bf23db2696e3ca8328f3ff0ab54 \
                    size    13466130
    }

    patchfiles-append   patch-no-Werror-meson.build.diff

    compiler.cxx_standard   2017

    build.env-append    PATH=$env(PATH):${python.prefix}/bin

    depends_build-append \
                    port:py${python.version}-pybind11

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

    test.run        yes

    depends_test-append \
                    port:py${python.version}-wurlitzer

    livecheck.type  none
}
