git: beafd31389ec - main - x11-fonts/py-gflanguages: Update to 0.4.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 30 Dec 2022 09:13:23 UTC
The branch main has been updated by sunpoet:

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

commit beafd31389ec70b7d58821b67617e7cf42d4be40
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-12-30 08:47:02 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-12-30 09:05:16 +0000

    x11-fonts/py-gflanguages: Update to 0.4.3
    
    Changes:        https://github.com/googlefonts/lang/releases
---
 x11-fonts/py-gflanguages/Makefile             |  4 ++--
 x11-fonts/py-gflanguages/distinfo             |  6 +++---
 x11-fonts/py-gflanguages/files/patch-setup.py | 10 +++++++---
 3 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/x11-fonts/py-gflanguages/Makefile b/x11-fonts/py-gflanguages/Makefile
index 2e4fc4e9cbd8..26ba9ca82919 100644
--- a/x11-fonts/py-gflanguages/Makefile
+++ b/x11-fonts/py-gflanguages/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	gflanguages
-PORTVERSION=	0.4.0
+PORTVERSION=	0.4.3
 CATEGORIES=	x11-fonts python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,7 +12,7 @@ LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=4:devel/py-setuptools_scm@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}protobuf>=0,1:devel/py-protobuf@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}protobuf>=3.7.0,1:devel/py-protobuf@${PY_FLAVOR}
 
 USES=		python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
diff --git a/x11-fonts/py-gflanguages/distinfo b/x11-fonts/py-gflanguages/distinfo
index 088f7be282ad..97913589f145 100644
--- a/x11-fonts/py-gflanguages/distinfo
+++ b/x11-fonts/py-gflanguages/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1654774052
-SHA256 (gflanguages-0.4.0.tar.gz) = c1ef3c27b741fcf5064ebbf4e3d9ef2bef037e9ec620c9a9d0aa5c3add2124bf
-SIZE (gflanguages-0.4.0.tar.gz) = 673638
+TIMESTAMP = 1669058017
+SHA256 (gflanguages-0.4.3.tar.gz) = ba15b5e0b300d3357c37abcf62e4691d084b3fbc3d21d3c14d328d809b1b8082
+SIZE (gflanguages-0.4.3.tar.gz) = 675445
diff --git a/x11-fonts/py-gflanguages/files/patch-setup.py b/x11-fonts/py-gflanguages/files/patch-setup.py
index 14b5b6f0c94d..c8f5c279839d 100644
--- a/x11-fonts/py-gflanguages/files/patch-setup.py
+++ b/x11-fonts/py-gflanguages/files/patch-setup.py
@@ -1,11 +1,15 @@
---- setup.py.orig	2022-03-04 21:26:42 UTC
+--- setup.py.orig	2022-11-14 13:16:17 UTC
 +++ setup.py
-@@ -51,7 +51,7 @@ setup(
+@@ -51,10 +51,10 @@ setup(
          'Programming Language :: Python :: 3'
      ],
      python_requires=">=3.7",
 -    setup_requires=['setuptools_scm>=4,<6.1'],
 +    setup_requires=['setuptools_scm>=4'],
      install_requires=[
-         'protobuf'
+         # 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',
      ]
+ )