From nobody Tue Dec 20 08:13:28 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Nbq8S34cWz1G7yp; Tue, 20 Dec 2022 08:13:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nbq8S2ZVNz3JS4; Tue, 20 Dec 2022 08:13:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671524008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7L0P4h/XFM4yzffLvUSRJq88bMgAMlbSDRILF+sQ4I4=; b=idx1UZU6wDV8CLA0ELotfFdQuNAXSGA8+OdHak6S2LYzP7GXsmYtNOlrJkmPnz5NZnmyuX baqrGYfkFmuMWe4TguKX2VcOzUw0p1QECRi+uKgdxT33iyKaaoAAeeIuy/DeBhyqcKBPOM I6z63KIP4fdPt5ZeheJJUCQW2Lr6N2pGbVF0tQLVPxbocS2dfRyMQHhgc8ZaWEWf+5mtct ottrxPrOFQg3jf2Vb0DC0nfpGqVku2hMtP8xpY27nh0dkd6R7z7ikUdMmifr17kWtsiIKO WThafymYsZ3W2ddfHPBSqxAAqX3bHfk+ZCuuLRY1fMDJYFqf3ZGQnqKo9/hBsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671524008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7L0P4h/XFM4yzffLvUSRJq88bMgAMlbSDRILF+sQ4I4=; b=ioCw0A4GxX8+4DsRxJV0nJVAZTNLMeEJ+8AExjng33sTAO1tPSuKvdzsXvsJNJ2ysoWG4r d7Uq+sEx5t0C7IICTJQiNztLWmLZ2M4X3W5Aa99oxQ0up0F5IPYCMVxjZh9zclRFO0047U nr//lf/PmcAJLFmwOcakilZN5RpD0HJ1XsgWlCkMPSFwNqV84Ff9coz+VdlQz8McNqy+Pu nlhfmrO+A9FmwNxOHQd+2r8rE4fpYj7cbn0Wq+3Bj7tvy/2csCJUPSqfUiRL/9bSEL63fS xKb750WjtN/poEw3WKgv4OmH8tus82QMIsHbSoB3KJvEVi4DVjSkf6U4/jiAJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671524008; a=rsa-sha256; cv=none; b=YHUX4NFpL4j6bvmdDWTBgvtPFiu4329aNuWhO6xRDu300NcBfT9jcGGEqRPyflVK005X45 CexuaYZGHyANXP52OFcQJ5hD/2Dn3572EiaPWPSlSmO3MeaNk/l7H3KrvDE4izpOxSTze7 tnG9Yc1dMGQNtiObDtgMf5JwguAE9gq+u75Ju/gRfZq3zmQTsYnjMIt9bK0NWZ2vnp/UU7 n60sJZkAFjQ08dHAh5aZuOurMLNqhTZXWTnG0s4NoaLjFyLxjQLObsmlh+VWSMITm8ujz8 xg9A2poIDOWduSHRyafC6CWTaH38Ja1NYecCe9MuUzjAjJgP/YmproWsewG6Rg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Nbq8S1MwtzT5Q; Tue, 20 Dec 2022 08:13:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BK8DSRu019382; Tue, 20 Dec 2022 08:13:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BK8DSOP019381; Tue, 20 Dec 2022 08:13:28 GMT (envelope-from git) Date: Tue, 20 Dec 2022 08:13:28 GMT Message-Id: <202212200813.2BK8DSOP019381@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 33e01a0d9392 - main - cad/py-pygmsh: New port: Python frontend for Gmsh (on top of Gmsh's own binding) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 33e01a0d93923258aae9c17ddee068c2190ea1fe Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=33e01a0d93923258aae9c17ddee068c2190ea1fe commit 33e01a0d93923258aae9c17ddee068c2190ea1fe Author: Yuri Victorovich AuthorDate: 2022-12-20 08:12:31 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-20 08:13:24 +0000 cad/py-pygmsh: New port: Python frontend for Gmsh (on top of Gmsh's own binding) --- cad/Makefile | 1 + cad/py-pygmsh/Makefile | 31 +++++++++++++++++++++++++++++++ cad/py-pygmsh/distinfo | 3 +++ cad/py-pygmsh/pkg-descr | 11 +++++++++++ 4 files changed, 46 insertions(+) diff --git a/cad/Makefile b/cad/Makefile index c0a9a1865503..9254083d4b54 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -111,6 +111,7 @@ SUBDIR += py-ocp SUBDIR += py-phidl SUBDIR += py-pyfda + SUBDIR += py-pygmsh SUBDIR += py-pymtl SUBDIR += python-gdsii SUBDIR += qcad diff --git a/cad/py-pygmsh/Makefile b/cad/py-pygmsh/Makefile new file mode 100644 index 000000000000..06da8a63cb7c --- /dev/null +++ b/cad/py-pygmsh/Makefile @@ -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 diff --git a/cad/py-pygmsh/distinfo b/cad/py-pygmsh/distinfo new file mode 100644 index 000000000000..f32761cac6ce --- /dev/null +++ b/cad/py-pygmsh/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1671510101 +SHA256 (pygmsh-7.1.17.tar.gz) = 563724abff4f8517598d3354b9c795feddbe0675786145bfeaf20cbee6691c1d +SIZE (pygmsh-7.1.17.tar.gz) = 61707 diff --git a/cad/py-pygmsh/pkg-descr b/cad/py-pygmsh/pkg-descr new file mode 100644 index 000000000000..47fa2458a083 --- /dev/null +++ b/cad/py-pygmsh/pkg-descr @@ -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.