git: 14a732314d10 - main - print/py-fontbakery: Update to 0.8.11

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 19 Apr 2023 18:54:56 UTC
The branch main has been updated by sunpoet:

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

commit 14a732314d1071515a4d72cba907900661a7f087
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-19 18:52:00 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-19 18:54:29 +0000

    print/py-fontbakery: Update to 0.8.11
    
    - Add FREETYPE option
    
    Changes:        https://github.com/googlefonts/fontbakery/releases
---
 print/py-fontbakery/Makefile             | 26 ++++++++++++++++++--------
 print/py-fontbakery/distinfo             |  6 +++---
 print/py-fontbakery/files/patch-setup.py | 20 +++++++++++++++++++-
 3 files changed, 40 insertions(+), 12 deletions(-)

diff --git a/print/py-fontbakery/Makefile b/print/py-fontbakery/Makefile
index 38b5545faa34..43f10d013011 100644
--- a/print/py-fontbakery/Makefile
+++ b/print/py-fontbakery/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	fontbakery
-PORTVERSION=	0.8.6
+PORTVERSION=	0.8.11
 DISTVERSIONPREFIX=	v
 CATEGORIES=	print python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,19 +11,24 @@ WWW=		https://github.com/googlefonts/fontbakery
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}beautifulsoup>=0:www/py-beautifulsoup@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}beziers>=0:graphics/py-beziers@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.2:devel/py-setuptools_scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}axisregistry>=0.3.0:x11-fonts/py-axisregistry@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}beautifulsoup>=0:www/py-beautifulsoup@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}beziers>=0.5.0:graphics/py-beziers@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cmarkgfm>=0:textproc/py-cmarkgfm@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}collidoscope>=0.4.1:print/py-collidoscope@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}collidoscope>=0.5.2:print/py-collidoscope@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}defcon>=0:x11-fonts/py-defcon@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}dehinter>=3.1.0:print/py-dehinter@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}font-v>=0:print/py-font-v@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}fonttools>=3.34:print/py-fonttools@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}glyphsets>=0:print/py-glyphsets@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}fonttools>=4.36.0:print/py-fonttools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}gflanguages>=0.3.0:x11-fonts/py-gflanguages@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}glyphsets>=0.5.0:print/py-glyphsets@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}munkres>=0:math/py-munkres@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}opentype-sanitizer>=7.1.9:x11-fonts/py-opentype-sanitizer@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}opentypespec>=0:x11-fonts/py-opentypespec@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pip-api>=0:devel/py-pip-api@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}protobuf>=3.7.0,1:devel/py-protobuf@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} \
@@ -31,9 +36,10 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}beautifulsoup>=0:www/py-beautifulsoup@${PY_F
 		${PYTHON_PKGNAMEPREFIX}rich>=0:textproc/py-rich@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}stringbrewer>=0:devel/py-stringbrewer@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}toml>=0:textproc/py-toml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ufo2ft>=2.25.2:x11-fonts/py-ufo2ft@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ufolint>=0:x11-fonts/py-ufolint@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}unicodedata2>=0:devel/py-unicodedata2@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}vharfbuzz>=0:print/py-vharfbuzz@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}vharfbuzz>=0.2.0:print/py-vharfbuzz@${PY_FLAVOR}
 
 USES=		python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
@@ -43,6 +49,10 @@ NO_ARCH=	yes
 GH_ACCOUNT=	googlefonts
 USE_GITHUB=	yes
 
+OPTIONS_DEFINE=	FREETYPE
+
+FREETYPE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}freetype-py>=0:print/py-freetype-py@${PY_FLAVOR}
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${WRKSRC}/setup.py
 
diff --git a/print/py-fontbakery/distinfo b/print/py-fontbakery/distinfo
index e42fd53ab8ea..6845494c0e0e 100644
--- a/print/py-fontbakery/distinfo
+++ b/print/py-fontbakery/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1643971116
-SHA256 (googlefonts-fontbakery-v0.8.6_GH0.tar.gz) = c57d6b8441c963321442b005dd4246361b741e053b4b9fe341f036cd864adf8e
-SIZE (googlefonts-fontbakery-v0.8.6_GH0.tar.gz) = 31922589
+TIMESTAMP = 1681588045
+SHA256 (googlefonts-fontbakery-v0.8.11_GH0.tar.gz) = c5c494c776cd195b76975b31f52684412fe22590fc013f226e08f24ad3d844be
+SIZE (googlefonts-fontbakery-v0.8.11_GH0.tar.gz) = 45017276
diff --git a/print/py-fontbakery/files/patch-setup.py b/print/py-fontbakery/files/patch-setup.py
index c39ddb4f5c2b..a8901bafcb48 100644
--- a/print/py-fontbakery/files/patch-setup.py
+++ b/print/py-fontbakery/files/patch-setup.py
@@ -1,4 +1,4 @@
---- setup.py.orig	2019-12-21 04:47:47 UTC
+--- setup.py.orig	2023-03-03 17:20:04 UTC
 +++ setup.py
 @@ -23,7 +23,7 @@ except IOError:
  
@@ -9,3 +9,21 @@
      url='https://github.com/googlefonts/fontbakery/',
      description='Well designed Font QA tool, written in Python 3',
      long_description=readme,
+@@ -66,7 +66,7 @@ setup(
+         'beautifulsoup4',
+         'beziers>=0.5.0', # Uses new fontTools glyph outline access
+         'cmarkgfm',
+-        'collidoscope==0.4.1', # 0.4.0 had a bug that failed to detect
++        'collidoscope>=0.5.2', # 0.4.0 had a bug that failed to detect
+                                # an ïï collision on Nunito Black.
+                                # (see https://github.com/googlefonts/fontbakery/issues/3554)
+         'defcon',
+@@ -84,7 +84,7 @@ setup(
+         'pip-api',    # needed for checking Font Bakery's version
+         # 3.7.0 fixed a bug on parsing some METADATA.pb files.
+         # We cannot use v4 because our protobuf files have been compiled with v3.
+-        'protobuf>=3.7.0, <4',  
++        'protobuf>=3.7.0',  
+                             # (see https://github.com/googlefonts/fontbakery/issues/2200)
+         'PyYAML',
+         'requests',