git: e46a21832654 - main - print/py-uharfbuzz: Update BUILD_DEPENDS: Add check for harfbuzz version

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 Aug 2022 10:32:35 UTC
The branch main has been updated by sunpoet:

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

commit e46a2183265448e9d9bd01d1fb554e3cba137d00
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:24:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-27 10:24:51 +0000

    print/py-uharfbuzz: Update BUILD_DEPENDS: Add check for harfbuzz version
---
 print/py-uharfbuzz/Makefile                                |  3 ++-
 print/py-uharfbuzz/files/patch-src-uharfbuzz-_harfbuzz.cpp | 11 +++++++++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/print/py-uharfbuzz/Makefile b/print/py-uharfbuzz/Makefile
index 90cac49a83c1..f255b84c2113 100644
--- a/print/py-uharfbuzz/Makefile
+++ b/print/py-uharfbuzz/Makefile
@@ -10,7 +10,8 @@ COMMENT=	Streamlined Cython bindings for the harfbuzz shaping engine
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
+BUILD_DEPENDS=	harfbuzz>=5.1.0:print/harfbuzz \
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
 LIB_DEPENDS=	libharfbuzz.so:print/harfbuzz
 
 USES=		compiler:c++11-lang python:3.6+ zip
diff --git a/print/py-uharfbuzz/files/patch-src-uharfbuzz-_harfbuzz.cpp b/print/py-uharfbuzz/files/patch-src-uharfbuzz-_harfbuzz.cpp
index f60669a0747f..133d69461964 100644
--- a/print/py-uharfbuzz/files/patch-src-uharfbuzz-_harfbuzz.cpp
+++ b/print/py-uharfbuzz/files/patch-src-uharfbuzz-_harfbuzz.cpp
@@ -1,6 +1,13 @@
---- src/uharfbuzz/_harfbuzz.cpp.orig	2022-07-31 12:40:22 UTC
+--- src/uharfbuzz/_harfbuzz.cpp.orig	2022-07-31 07:40:22 UTC
 +++ src/uharfbuzz/_harfbuzz.cpp
-@@ -36,9 +36,6 @@
+@@ -30,15 +30,12 @@
+             "-std=c++11"
+         ],
+         "include_dirs": [
+-            "harfbuzz/src"
++            "%%LOCALBASE%%/include/harfbuzz"
+         ],
+         "language": "c++",
          "name": "uharfbuzz._harfbuzz",
          "sources": [
              "src/uharfbuzz/_harfbuzz.pyx",