cad/py-pygmsh: New port: Python frontend for Gmsh (on top of Gmsh's own binding)

This commit is contained in:
Yuri Victorovich 2022-12-20 00:12:31 -08:00
parent f429ff827c
commit 33e01a0d93
4 changed files with 46 additions and 0 deletions

View File

@ -111,6 +111,7 @@
SUBDIR += py-ocp
SUBDIR += py-phidl
SUBDIR += py-pyfda
SUBDIR += py-pygmsh
SUBDIR += py-pymtl
SUBDIR += python-gdsii
SUBDIR += qcad

31
cad/py-pygmsh/Makefile Normal file
View File

@ -0,0 +1,31 @@
PORTNAME= pygmsh
DISTVERSION= 7.1.17
CATEGORIES= cad python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python frontend for Gmsh (on top of Gmsh's own binding)
WWW= https://github.com/meshpro/pygmsh
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gmsh>0:cad/py-gmsh@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}meshio>=4.3.2:science/py-meshio@${PY_FLAVOR} \
${PYNUMPY}
BUILD_DEPENDS= ${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}
USES= python:3.7+
USE_PYTHON= distutils autoplist pytest # 1 error and many warnings in tests, see https://github.com/meshpro/pygmsh/issues/564
NO_ARCH= yes
pre-configure:
@( \
${ECHO} "from setuptools import setup" && \
${ECHO} "setup()" \
) > ${WRKSRC}/setup.py
.include <bsd.port.mk>

3
cad/py-pygmsh/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1671510101
SHA256 (pygmsh-7.1.17.tar.gz) = 563724abff4f8517598d3354b9c795feddbe0675786145bfeaf20cbee6691c1d
SIZE (pygmsh-7.1.17.tar.gz) = 61707

11
cad/py-pygmsh/pkg-descr Normal file
View File

@ -0,0 +1,11 @@
Gmsh is a free 3D finite element grid generator with a build-in CAD engine and
post-processor. Its design goal is to provide a fast, light and user-friendly
meshing tool with parametric input and advanced visualization capabilities. Gmsh
is built around four modules: geometry, mesh, solver and post-processing. The
specification of any input to these modules is done either interactively using
the graphical user interface or in ASCII text files using Gmsh's own scripting
language.
pygmsh combines the power of Gmsh with the versatility of Python. It provides
useful abstractions from Gmsh's own Python interface (cad/py-gmsh) so you can
create complex geometries more easily.