# -*- 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.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  d59e1a10e81930959c3b7692e94fb5d98692fddc \
                    sha256  7ffa0db17717a8ffb127efd0c95a4362d996b892c2904db72428d5b52e1938a4 \
                    size    13464370

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

if {${name} ne ${subport}} {
    if {${python.version} == 38} {
        version     1.1.1
        revision    0
        checksums   rmd160  9f177de1a5a224ad6fa2c22f26829d25c09486f7 \
                    sha256  96ba37c2e24b7212a77da85004c38e7c4d155d3e72a45eeaf22c1f03f607e8ab \
                    size    13433167
    }

    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
}
