From eb8b0c7e78f4790ca4c2c7a6ef76ce22a0b8e704 Mon Sep 17 00:00:00 2001 From: Nicola Vitale Date: Fri, 17 Oct 2025 17:12:28 +0200 Subject: [PATCH] x11-fonts/py-FindSystemFontsFilename: Update to 0.3.3 - Add a post-patch target to fix build with devel/py-setuptools < 77.0.0, otherwise it fails with the error: /usr/local/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py:104: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*. warnings.warn(msg, _BetaConfiguration) configuration error: `project.license` must be valid exactly by one definition (2 matches found): - keys: 'file': {type: string} required: ['file'] - keys: 'text': {type: string} required: ['text'] Release changes: https://github.com/moi15moi/FindSystemFontsFilename/releases/tag/0.3.3 Reported by: portscout! --- x11-fonts/py-FindSystemFontsFilename/Makefile | 9 ++++++++- x11-fonts/py-FindSystemFontsFilename/distinfo | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/x11-fonts/py-FindSystemFontsFilename/Makefile b/x11-fonts/py-FindSystemFontsFilename/Makefile index 3edc40c312e0..c522f89fbd86 100644 --- a/x11-fonts/py-FindSystemFontsFilename/Makefile +++ b/x11-fonts/py-FindSystemFontsFilename/Makefile @@ -1,5 +1,5 @@ PORTNAME= FindSystemFontsFilename -DISTVERSION= 0.3.2 +DISTVERSION= 0.3.3 CATEGORIES= x11-fonts python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -20,4 +20,11 @@ USE_PYTHON= autoplist pep517 NO_ARCH= yes +# fix build with devel/py-setuptools < 77.0.0 +post-patch: + @${REINPLACE_CMD} -e 's,^\(license = \)\("MIT"\),\1{ text = \2 },1' \ + -e 's,\(setuptools>=\)77.0.0,\163.1.0,1' \ + -e '/^license-files/d' \ + ${WRKSRC}/pyproject.toml + .include diff --git a/x11-fonts/py-FindSystemFontsFilename/distinfo b/x11-fonts/py-FindSystemFontsFilename/distinfo index 9bdb587ef6fc..ff171700d2ca 100644 --- a/x11-fonts/py-FindSystemFontsFilename/distinfo +++ b/x11-fonts/py-FindSystemFontsFilename/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1750495456 -SHA256 (findsystemfontsfilename-0.3.2.tar.gz) = d2d9bad5156bb5f97c1f64d185a3fc40f83b27a95b4421e65f7bbe518e177c20 -SIZE (findsystemfontsfilename-0.3.2.tar.gz) = 20481 +TIMESTAMP = 1760712472 +SHA256 (findsystemfontsfilename-0.3.3.tar.gz) = c5b238da1690ea50676f318ba365d127b3b591aafd51834600160a242ab68498 +SIZE (findsystemfontsfilename-0.3.3.tar.gz) = 20639