From owner-dev-commits-ports-all@freebsd.org Sun May 16 15:25:59 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8DDBA644F15; Sun, 16 May 2021 15:25:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FjmLb29Bxz4YwD; Sun, 16 May 2021 15:25:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 309DD1B231; Sun, 16 May 2021 15:25:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14GFPxqm065780; Sun, 16 May 2021 15:25:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14GFPxa9065779; Sun, 16 May 2021 15:25:59 GMT (envelope-from git) Date: Sun, 16 May 2021 15:25:59 GMT Message-Id: <202105161525.14GFPxa9065779@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: c7864c5a12e0 - main - print/py-uharfbuzz: Add print/py-uharfbuzz 0.16.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c7864c5a12e00502b72ecbe8275dafe3d4e7de30 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 May 2021 15:25:59 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c7864c5a12e00502b72ecbe8275dafe3d4e7de30 commit c7864c5a12e00502b72ecbe8275dafe3d4e7de30 Author: Po-Chuan Hsieh AuthorDate: 2021-05-16 15:12:57 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-05-16 15:23:48 +0000 print/py-uharfbuzz: Add print/py-uharfbuzz 0.16.0 uharfbuzz provides streamlined Cython bindings for the HarfBuzz shaping engine. WWW: https://github.com/harfbuzz/uharfbuzz --- print/Makefile | 1 + print/py-uharfbuzz/Makefile | 25 ++++++++++++++++++++++ print/py-uharfbuzz/distinfo | 3 +++ print/py-uharfbuzz/files/patch-setup.py | 16 ++++++++++++++ .../files/patch-src-uharfbuzz-_harfbuzz.cpp | 17 +++++++++++++++ print/py-uharfbuzz/pkg-descr | 3 +++ 6 files changed, 65 insertions(+) diff --git a/print/Makefile b/print/Makefile index a0ab32b9ea00..550ec7fa3165 100644 --- a/print/Makefile +++ b/print/Makefile @@ -195,6 +195,7 @@ SUBDIR += py-rtf SUBDIR += py-ttfautohint-py SUBDIR += py-ufolib2 + SUBDIR += py-uharfbuzz SUBDIR += py-weasyprint SUBDIR += qpdf SUBDIR += qpdfview diff --git a/print/py-uharfbuzz/Makefile b/print/py-uharfbuzz/Makefile new file mode 100644 index 000000000000..19fe9b8d261d --- /dev/null +++ b/print/py-uharfbuzz/Makefile @@ -0,0 +1,25 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= uharfbuzz +PORTVERSION= 0.16.0 +CATEGORIES= print python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +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} +LIB_DEPENDS= libharfbuzz.so:print/harfbuzz + +USES= compiler:c++11-lang python:3.6+ zip +USE_PYTHON= autoplist concurrent cython distutils + +post-patch: + @${RM} -fr ${WRKSRC}/harfbuzz/ + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.py ${WRKSRC}/src/uharfbuzz/_harfbuzz.cpp + +.include diff --git a/print/py-uharfbuzz/distinfo b/print/py-uharfbuzz/distinfo new file mode 100644 index 000000000000..f795973ad7c4 --- /dev/null +++ b/print/py-uharfbuzz/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1620928545 +SHA256 (uharfbuzz-0.16.0.zip) = 70f11ccfbb59028dec6ce768960ffcc4d44eee0e095d7b58421799d5e84cb17a +SIZE (uharfbuzz-0.16.0.zip) = 1128591 diff --git a/print/py-uharfbuzz/files/patch-setup.py b/print/py-uharfbuzz/files/patch-setup.py new file mode 100644 index 000000000000..694e58bff25e --- /dev/null +++ b/print/py-uharfbuzz/files/patch-setup.py @@ -0,0 +1,16 @@ +--- setup.py.orig 2021-05-09 03:05:20 UTC ++++ setup.py +@@ -28,10 +28,10 @@ if platform.system() == 'Darwin': + extra_link_args.extend(['-framework', 'ApplicationServices']) + + extension = Extension( +- 'uharfbuzz._harfbuzz', ++ 'uharfbuzz', + define_macros=define_macros, +- include_dirs=['harfbuzz/src'], +- sources=['src/uharfbuzz/_harfbuzz.pyx', 'harfbuzz/src/harfbuzz.cc'], ++ include_dirs=['%%LOCALBASE%%/include/harfbuzz'], ++ sources=['src/uharfbuzz/_harfbuzz.pyx'], + language='c++', + extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args, diff --git a/print/py-uharfbuzz/files/patch-src-uharfbuzz-_harfbuzz.cpp b/print/py-uharfbuzz/files/patch-src-uharfbuzz-_harfbuzz.cpp new file mode 100644 index 000000000000..67e37280fd56 --- /dev/null +++ b/print/py-uharfbuzz/files/patch-src-uharfbuzz-_harfbuzz.cpp @@ -0,0 +1,17 @@ +--- src/uharfbuzz/_harfbuzz.cpp.orig 2021-05-09 03:05:40 UTC ++++ src/uharfbuzz/_harfbuzz.cpp +@@ -18,13 +18,12 @@ + "-std=c++11" + ], + "include_dirs": [ +- "harfbuzz/src" ++ "%%LOCALBASE%%/include/harfbuzz" + ], + "language": "c++", + "name": "uharfbuzz._harfbuzz", + "sources": [ + "src/uharfbuzz/_harfbuzz.pyx", +- "harfbuzz/src/harfbuzz.cc" + ] + }, + "module_name": "uharfbuzz._harfbuzz" diff --git a/print/py-uharfbuzz/pkg-descr b/print/py-uharfbuzz/pkg-descr new file mode 100644 index 000000000000..1ec6489325af --- /dev/null +++ b/print/py-uharfbuzz/pkg-descr @@ -0,0 +1,3 @@ +uharfbuzz provides streamlined Cython bindings for the HarfBuzz shaping engine. + +WWW: https://github.com/harfbuzz/uharfbuzz