git: 76003b0a2b00 - main - print/py-uharfbuzz: Update to 0.39.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 15:25:03 UTC
The branch main has been updated by sunpoet:

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

commit 76003b0a2b0057d8231a9b70b7e67d5ffc72c92e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-02-21 14:44:57 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-02-21 15:07:58 +0000

    print/py-uharfbuzz: Update to 0.39.0
    
    Changes:        https://github.com/harfbuzz/uharfbuzz/releases
---
 print/py-uharfbuzz/Makefile             |  5 ++---
 print/py-uharfbuzz/distinfo             |  6 +++---
 print/py-uharfbuzz/files/patch-setup.py | 20 ++++++++++----------
 3 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/print/py-uharfbuzz/Makefile b/print/py-uharfbuzz/Makefile
index 55ffbf88c5f2..2a568446d284 100644
--- a/print/py-uharfbuzz/Makefile
+++ b/print/py-uharfbuzz/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	uharfbuzz
-PORTVERSION=	0.37.3
+PORTVERSION=	0.39.0
 CATEGORIES=	print python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,7 +11,7 @@ WWW=		https://github.com/harfbuzz/uharfbuzz
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	harfbuzz>=8.2.0:print/harfbuzz \
+BUILD_DEPENDS=	harfbuzz>=8.3.0:print/harfbuzz \
 		${PYTHON_PKGNAMEPREFIX}setuptools>=36.4:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=2.1:devel/py-setuptools_scm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
@@ -22,7 +22,6 @@ USE_PYTHON=	autoplist concurrent cython pep517
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.py ${WRKSRC}/src/uharfbuzz/_harfbuzz.cpp
-	@${RM} ${WRKSRC}/src/uharfbuzz/_harfbuzz.cpp
 # Clean up bundled libraries
 	@${RM} -r ${WRKSRC}/harfbuzz/
 
diff --git a/print/py-uharfbuzz/distinfo b/print/py-uharfbuzz/distinfo
index a944114cb278..58971289b50c 100644
--- a/print/py-uharfbuzz/distinfo
+++ b/print/py-uharfbuzz/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1695143357
-SHA256 (uharfbuzz-0.37.3.zip) = f2b213386c1e1588c2c9baea436a85c4609902001cd21bc3065244b744223a6d
-SIZE (uharfbuzz-0.37.3.zip) = 1684765
+TIMESTAMP = 1708449432
+SHA256 (uharfbuzz-0.39.0.zip) = 06001ab50339003b04b194fd3804e3292c023b3f1d5b376f7e128891cc584491
+SIZE (uharfbuzz-0.39.0.zip) = 1842110
diff --git a/print/py-uharfbuzz/files/patch-setup.py b/print/py-uharfbuzz/files/patch-setup.py
index 94dbe247e8af..61d88af9f849 100644
--- a/print/py-uharfbuzz/files/patch-setup.py
+++ b/print/py-uharfbuzz/files/patch-setup.py
@@ -1,16 +1,16 @@
 --- setup.py.orig	2023-03-13 09:18:30 UTC
 +++ setup.py
-@@ -39,12 +39,8 @@ if platform.system() == 'Darwin':
+@@ -39,12 +39,8 @@ if platform.system() == "Darwin":
  extension = Extension(
-     'uharfbuzz._harfbuzz',
+     "uharfbuzz._harfbuzz",
      define_macros=define_macros,
--    include_dirs=['harfbuzz/src'],
-+    include_dirs=['%%LOCALBASE%%/include/harfbuzz'],
+-    include_dirs=["harfbuzz/src"],
++    include_dirs=["%%LOCALBASE%%/include/harfbuzz"],
      sources=[
--        'harfbuzz/src/harfbuzz-subset.cc',
--        'harfbuzz/src/hb-coretext.cc',
--        'harfbuzz/src/hb-directwrite.cc',
--        'harfbuzz/src/hb-uniscribe.cc',
-         'src/uharfbuzz/_harfbuzz.pyx',
+-        "harfbuzz/src/harfbuzz-subset.cc",
+-        "harfbuzz/src/hb-coretext.cc",
+-        "harfbuzz/src/hb-directwrite.cc",
+-        "harfbuzz/src/hb-uniscribe.cc",
+         "src/uharfbuzz/_harfbuzz.pyx",
      ],
-     language='c++',
+     language="c++",