# -*- 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           active_variants 1.1
PortGroup           python 1.0

name                py-pygmsh
version             7.1.17
revision            0
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         PyGmsh combines power of Gmsh.
long_description    {*}${description} with the versatility of Python and to provide \
                    useful abstractions from the Gmsh scripting language so you can \
                    create complex geometries more easily.
categories-append   science
homepage            https://github.com/nschloe/pygmsh

python.versions     310

checksums           rmd160  4fe67707dcc30521f47ff8a21570d823a87c2655 \
                    sha256  563724abff4f8517598d3354b9c795feddbe0675786145bfeaf20cbee6691c1d \
                    size    61707

if {${name} ne ${subport}} {
    require_active_variants gmsh python${python.version}

    python.pep517_backend   flit

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

    depends_lib-append  \
                port:gmsh \
                port:py${python.version}-importlib-metadata \
                port:py${python.version}-meshio \
                port:py${python.version}-numpy \
                port:py${python.version}-rich
}
