# -*- 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.3.1
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  c46a0ab645528590394739f63ddf84d84460b1e4 \
                    sha256  dfd97abd83335045a913e3bcc4a09c0ceadbe66580cf573fe961f4a825efa699 \
                    size    13465753

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

if {${name} ne ${subport}} {
    if {${python.version} == 39} {
        version     1.3.0
        revision    0
        checksums   rmd160  d59e1a10e81930959c3b7692e94fb5d98692fddc \
                    sha256  7ffa0db17717a8ffb127efd0c95a4362d996b892c2904db72428d5b52e1938a4 \
                    size    13464370
    }

    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
}
