git: c60423f20abc - main - x11-fonts/py-babelfont: Update to 3.1.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 21 Nov 2024 13:43:07 UTC
The branch main has been updated by sunpoet:

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

commit c60423f20abcda4a7f944e569aa0f2db1ed0391e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-11-21 13:23:26 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-11-21 13:38:24 +0000

    x11-fonts/py-babelfont: Update to 3.1.0
    
    - Add READ_TTF and VFB options
    
    Changes:        https://github.com/simoncozens/babelfont/releases
---
 x11-fonts/py-babelfont/Makefile                   | 17 +++++++++++------
 x11-fonts/py-babelfont/distinfo                   |  6 +++---
 x11-fonts/py-babelfont/files/patch-pyproject.toml | 11 +----------
 3 files changed, 15 insertions(+), 19 deletions(-)

diff --git a/x11-fonts/py-babelfont/Makefile b/x11-fonts/py-babelfont/Makefile
index 26428b1aa183..7a1f8c6ca0c9 100644
--- a/x11-fonts/py-babelfont/Makefile
+++ b/x11-fonts/py-babelfont/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	babelfont
-PORTVERSION=	3.0.5
+PORTVERSION=	3.1.0
 CATEGORIES=	x11-fonts python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,17 +14,22 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8.0.4:devel/py-setuptools-scm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}fontfeatures>=1.8.0:x11-fonts/py-fontfeatures@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}fonttools>=4.40.0:print/py-fonttools@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}glyphsLib>=6.3.0:x11-fonts/py-glyphsLib@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}fonttools>=4.53.1:print/py-fonttools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}openstep-plist>=0.2.2:textproc/py-openstep-plist@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}orjson>=3.5.1:devel/py-orjson@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ufolib2>=0.11.1:print/py-ufolib2@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}vfblib>=0.6.4:x11-fonts/py-vfblib@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}ufolib2>=0.16.0:print/py-ufolib2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ufomerge>=1.8.0:print/py-ufomerge@${PY_FLAVOR}
 
 USES=		python
 USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=	READ_TTF VFB
+READ_TTF_DESC=	TrueType Font (TTF) files support
+VFB_DESC=	FontLab Studio 5 (VFB) files support
+
+READ_TTF_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}fontfeatures>=1.8.0:x11-fonts/py-fontfeatures@${PY_FLAVOR}
+VFB_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}vfblib>=0.7.1:x11-fonts/py-vfblib@${PY_FLAVOR}
+
 .include <bsd.port.mk>
diff --git a/x11-fonts/py-babelfont/distinfo b/x11-fonts/py-babelfont/distinfo
index 906f2dc4e4fd..ea30de085b96 100644
--- a/x11-fonts/py-babelfont/distinfo
+++ b/x11-fonts/py-babelfont/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1715842876
-SHA256 (babelfont-3.0.5.tar.gz) = 85f8a789c8533aa0822621f05e7c152b6a8949808b10034266b705baca996abc
-SIZE (babelfont-3.0.5.tar.gz) = 1440246
+TIMESTAMP = 1731679354
+SHA256 (babelfont-3.1.0.tar.gz) = 60b4ac870f81ccf49045671abee5d78f334121b96027b95d2eeb91740d831ec4
+SIZE (babelfont-3.1.0.tar.gz) = 1426896
diff --git a/x11-fonts/py-babelfont/files/patch-pyproject.toml b/x11-fonts/py-babelfont/files/patch-pyproject.toml
index 6bed9eb0f6e6..40e67617adbf 100644
--- a/x11-fonts/py-babelfont/files/patch-pyproject.toml
+++ b/x11-fonts/py-babelfont/files/patch-pyproject.toml
@@ -1,4 +1,4 @@
---- pyproject.toml.orig	2024-05-08 09:19:58 UTC
+--- pyproject.toml.orig	2024-11-13 13:55:27 UTC
 +++ pyproject.toml
 @@ -1,7 +1,7 @@ requires = [
  [build-system]
@@ -10,12 +10,3 @@
  ]
  build-backend = "setuptools.build_meta"
  
-@@ -22,7 +22,7 @@ dependencies = [
-     "fonttools >=4.40.0",
-     "ufoLib2 >=0.11.1",
-     "openstep-plist >=0.2.2",
--    "glyphsLib >=6.7.1",
-+    "glyphsLib >=6.3.0",
-     "fontfeatures >= 1.8.0",
-     "vfbLib >= 0.6.4",
- ]