git: 7f1d249c384a - main - math/py-fenics-ufl: update 2022.2.0 → 2026.1.0

Yuri Victorovich <[email protected]> Thu, 06 Aug 2026 02:18:56 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <6a73ef10.3d010.a97357a__28299.389062316$1785982795$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7f1d249c384a2931c7557b782ba232486c8d24f5

commit 7f1d249c384a2931c7557b782ba232486c8d24f5
Author:     Yuri Victorovich <[email protected]>
AuthorDate: 2026-08-06 00:52:06 +0000
Commit:     Yuri Victorovich <[email protected]>
CommitDate: 2026-08-06 02:18:49 +0000

    math/py-fenics-ufl: update 2022.2.0 → 2026.1.0
---
 math/py-fenics-ufl/Makefile                   | 14 ++++++++------
 math/py-fenics-ufl/distinfo                   |  6 +++---
 math/py-fenics-ufl/files/patch-pyproject.toml | 23 +++++++++++++++++++++++
 3 files changed, 34 insertions(+), 9 deletions(-)

diff --git a/math/py-fenics-ufl/Makefile b/math/py-fenics-ufl/Makefile
index 2269cec3693b..499b1d338403 100644
--- a/math/py-fenics-ufl/Makefile
+++ b/math/py-fenics-ufl/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	fenics-ufl
-DISTVERSION=	2022.2.0
-PORTREVISION=	1
+DISTVERSION=	2026.1.0
 CATEGORIES=	math
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -8,14 +7,15 @@ MAINTAINER=	[email protected]
 COMMENT=	FEniCS Unified Form Language
 WWW=		https://github.com/FEniCS/ufl
 
-LICENSE=	GPLv3
-LICENSE_FILE=	${WRKSRC}/COPYING
+LICENSE=	LGPL3+
+LICENSE_FILE=	${WRKSRC}/COPYING.LESSER
 
-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}numpy>0:math/py-numpy@${PY_FLAVOR}
 
 USES=		localbase python
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	pep517 autoplist pytest
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	FEniCS
@@ -23,4 +23,6 @@ GH_PROJECT=	ufl
 
 NO_ARCH=	yes
 
+# tests as of 2026.1.0: 969 passed in 47.95s
+
 .include <bsd.port.mk>
diff --git a/math/py-fenics-ufl/distinfo b/math/py-fenics-ufl/distinfo
index be526d384873..c63adf5ee17a 100644
--- a/math/py-fenics-ufl/distinfo
+++ b/math/py-fenics-ufl/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1661725896
-SHA256 (FEniCS-ufl-2022.2.0_GH0.tar.gz) = d6e18e06df5d7a626c3138d49a543914d68186afb6159c4d1a7cd72b2a199b02
-SIZE (FEniCS-ufl-2022.2.0_GH0.tar.gz) = 314546
+TIMESTAMP = 1785914160
+SHA256 (FEniCS-ufl-2026.1.0_GH0.tar.gz) = 72c0e4ac3d2f648f30f860fd4e895d96415a77318cb4551c5dbc53dc644b7c96
+SIZE (FEniCS-ufl-2026.1.0_GH0.tar.gz) = 337656
diff --git a/math/py-fenics-ufl/files/patch-pyproject.toml b/math/py-fenics-ufl/files/patch-pyproject.toml
new file mode 100644
index 000000000000..7f5e062a07b4
--- /dev/null
+++ b/math/py-fenics-ufl/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-08-05 07:17:12 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"
+@@ -15,8 +15,7 @@ readme = "README.md"
+ ]
+ description = "Unified Form Language"
+ readme = "README.md"
+-license = "LGPL-3.0-or-later"
+-license-files = ["COPYING*"]
++license = {text = "LGPL-3.0-or-later"}
+ requires-python = ">=3.11"
+ dependencies = ["numpy"]
+