git: 9406d40a55fc - main - math/py-fenics-ffcx: update 0.5.0.post0 → 0.11.0

Yuri Victorovich <[email protected]> Thu, 06 Aug 2026 02:18:57 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9406d40a55fc6cb47023be3bfa80c959719d0d82

commit 9406d40a55fc6cb47023be3bfa80c959719d0d82
Author:     Yuri Victorovich <[email protected]>
AuthorDate: 2026-08-06 00:56:36 +0000
Commit:     Yuri Victorovich <[email protected]>
CommitDate: 2026-08-06 02:18:49 +0000

    math/py-fenics-ffcx: update 0.5.0.post0 → 0.11.0
---
 math/py-fenics-ffcx/Makefile                   | 24 ++++++++++++++++++------
 math/py-fenics-ffcx/distinfo                   |  6 +++---
 math/py-fenics-ffcx/files/patch-pyproject.toml | 23 +++++++++++++++++++++++
 3 files changed, 44 insertions(+), 9 deletions(-)

diff --git a/math/py-fenics-ffcx/Makefile b/math/py-fenics-ffcx/Makefile
index d2d2281fa068..f8a39214d581 100644
--- a/math/py-fenics-ffcx/Makefile
+++ b/math/py-fenics-ffcx/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	fenics-ffcx
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.5.0.post0
-PORTREVISION=	1
+DISTVERSION=	0.11.0
 CATEGORIES=	math
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -9,14 +8,27 @@ MAINTAINER=	[email protected]
 COMMENT=	FEniCS Form Compiler for finite element forms
 WWW=		https://github.com/FEniCS/ffcx
 
-LICENSE=	GPLv3
-LICENSE_FILE=	${WRKSRC}/COPYING
+LICENSE=	LGPL3+
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>0:devel/py-cffi@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}fenics-basix>=0.11.0:math/py-fenics-basix@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}fenics-ufl>=2026.1.0:math/py-fenics-ufl@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=1.21:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numba>0:devel/py-numba@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sympy>0:math/py-sympy@${PY_FLAVOR}
 
 USES=		localbase python
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	pep517 autoplist pytest
+
+TEST_ENV=	${MAKE_ENV} PATH=${STAGEDIR}${PREFIX}/bin:${PATH} \
+		PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_ARGS=	-p no:cov -p no:black -p no:mypy -p no:xdist -p no:randomly
+
+# tests as of 0.11.0: 220 passed in 285.65s (0:04:45)
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	FEniCS
diff --git a/math/py-fenics-ffcx/distinfo b/math/py-fenics-ffcx/distinfo
index bdbfa7691350..7b16a91e6d6b 100644
--- a/math/py-fenics-ffcx/distinfo
+++ b/math/py-fenics-ffcx/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1661725741
-SHA256 (FEniCS-ffcx-v0.5.0.post0_GH0.tar.gz) = 039908c9998b51ba53e5deb3a97016062c262f0a4285218644304f7d3cd35882
-SIZE (FEniCS-ffcx-v0.5.0.post0_GH0.tar.gz) = 131940
+TIMESTAMP = 1785914347
+SHA256 (FEniCS-ffcx-v0.11.0_GH0.tar.gz) = 7df1c086c0398b72343a5f047c7e6aa17ea05f1ba123e3e0ca858d6a133b13bd
+SIZE (FEniCS-ffcx-v0.11.0_GH0.tar.gz) = 151505
diff --git a/math/py-fenics-ffcx/files/patch-pyproject.toml b/math/py-fenics-ffcx/files/patch-pyproject.toml
new file mode 100644
index 000000000000..61fdb1da3c51
--- /dev/null
+++ b/math/py-fenics-ffcx/files/patch-pyproject.toml
@@ -0,0 +1,23 @@
+-- Use the setuptools version available in FreeBSD ports and the legacy
+-- license form supported by older setuptools.
+
+--- pyproject.toml.orig	2026-06-08 15:39:21 UTC
++++ pyproject.toml
+@@ -1,6 +1,6 @@ requires = [
+ [build-system]
+ requires = [
+-    "setuptools>=77.0.3", # Ensuring license field is correctly parsed
++    "setuptools",
+     "wheel"
+ ]
+ build-backend = "setuptools.build_meta"
+@@ -11,8 +11,7 @@ requires-python = ">=3.11"
+ description = "The FEniCSx Form Compiler"
+ readme = "README.md"
+ requires-python = ">=3.11"
+-license = "LGPL-3.0-or-later"
+-license-files = ["LICENSE", "COPYING*", "UNLICENSE"]
++license = {text = "LGPL-3.0-or-later"}
+ authors = [
+     { email = "[email protected]" },
+     { name = "FEniCS Steering Council" },