From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/uharfbuzz/, dev-python/uharfbuzz/files/
Date: Fri, 13 Jan 2023 03:14:32 +0000 (UTC) [thread overview]
Message-ID: <1673579513.b464dc74242ef307c562f3fd8f5db98fd8ba9a09.julien@gentoo> (raw)
commit: b464dc74242ef307c562f3fd8f5db98fd8ba9a09
Author: Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Fri Jan 13 00:19:40 2023 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Fri Jan 13 03:11:53 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b464dc74
dev-python/uharfbuzz: add 0.33.0
Signed-off-by: Julien Roy <julien <AT> jroy.ca>
dev-python/uharfbuzz/Manifest | 1 +
.../files/uharfbuzz-0.33.0-system-harfbuzz.patch | 36 ++++++++++++++++++++++
dev-python/uharfbuzz/uharfbuzz-0.33.0.ebuild | 35 +++++++++++++++++++++
3 files changed, 72 insertions(+)
diff --git a/dev-python/uharfbuzz/Manifest b/dev-python/uharfbuzz/Manifest
index 4cab0aa77..46c1dd70c 100644
--- a/dev-python/uharfbuzz/Manifest
+++ b/dev-python/uharfbuzz/Manifest
@@ -1 +1,2 @@
DIST uharfbuzz-0.26.0.gh.tar.gz 36596 BLAKE2B b57782f5de371e2062d6a764fde9d20ca4a47a388b22ac3d169cead66103d30af12888e9d8f0af0aea7c7dbb4a3b7e0f4411e049417efaf1d2e7562ef5a34875 SHA512 0b356ceaf1cc40c2318e495939d51db454852043ebac60cb7b2a7481c4de6540e66d7ccf47a9fe6c1d819bf8a54e572bdb5a0799c7818f61730b820bb210ac83
+DIST uharfbuzz-0.33.0.gh.tar.gz 38023 BLAKE2B 5cf2d8afc8174d5fb679a38fb4147ea15d753a4b2f745c194d6f75868f878a6ae22a0a3bb77b823eeafcdcda325f89ac69539767e2bc1217b88d594c561ea385 SHA512 dc1afdfd39750284544aa8bc244c36a4b60a99423d11d568759ac908fcc34eeb39e97089eba00524bc9dbe1604aab8c35bd40b98f7913016ad022832266e7145
diff --git a/dev-python/uharfbuzz/files/uharfbuzz-0.33.0-system-harfbuzz.patch b/dev-python/uharfbuzz/files/uharfbuzz-0.33.0-system-harfbuzz.patch
new file mode 100644
index 000000000..29085fa14
--- /dev/null
+++ b/dev-python/uharfbuzz/files/uharfbuzz-0.33.0-system-harfbuzz.patch
@@ -0,0 +1,36 @@
+diff --git a/setup.py b/setup.py
+index be115a3..ad34a47 100755
+--- a/setup.py
++++ b/setup.py
+@@ -13,7 +13,7 @@ here = os.path.abspath(os.path.dirname(__file__))
+ with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
+ long_description = f.read()
+
+-define_macros = [('HB_NO_MT', '1'), ('HB_EXPERIMENTAL_API', '1')]
++define_macros = [('HB_EXPERIMENTAL_API', '1')]
+ linetrace = False
+ if int(os.environ.get('CYTHON_LINETRACE', '0')):
+ linetrace = True
+@@ -21,7 +21,7 @@ if int(os.environ.get('CYTHON_LINETRACE', '0')):
+
+ extra_compile_args = []
+ extra_link_args = []
+-libraries = []
++libraries = ['harfbuzz', 'harfbuzz-subset']
+ if platform.system() != 'Windows':
+ extra_compile_args.append('-std=c++11')
+ define_macros.append(('HAVE_MMAP', '1'))
+@@ -39,12 +39,9 @@ if platform.system() == 'Darwin':
+ extension = Extension(
+ 'uharfbuzz._harfbuzz',
+ define_macros=define_macros,
+- include_dirs=['harfbuzz/src'],
++ include_dirs=['/usr/include/harfbuzz'],
+ sources=[
+ 'src/uharfbuzz/_harfbuzz.pyx',
+- 'harfbuzz/src/harfbuzz.cc',
+- 'harfbuzz/src/hb-subset-repacker.cc',
+- 'harfbuzz/src/graph/gsubgpos-context.cc',
+ 'src/uharfbuzz/_draw_test_funcs.cc',
+ ],
+ language='c++',
diff --git a/dev-python/uharfbuzz/uharfbuzz-0.33.0.ebuild b/dev-python/uharfbuzz/uharfbuzz-0.33.0.ebuild
new file mode 100644
index 000000000..2ea5af628
--- /dev/null
+++ b/dev-python/uharfbuzz/uharfbuzz-0.33.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Streamlined Cython bindings for the HarfBuzz shaping engine"
+HOMEPAGE="https://github.com/harfbuzz/uharfbuzz"
+SRC_URI="https://github.com/harfbuzz/uharfbuzz/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+RDEPEND=">=media-libs/harfbuzz-4.3.0[experimental(-)]"
+DEPEND="
+ ${RDEPEND}
+ >=dev-python/cython-0.28.1[${PYTHON_USEDEP}]
+ >=dev-python/setuptools_scm-2.1[${PYTHON_USEDEP}]
+ >=dev-python/wheel-0.31[${PYTHON_USEDEP}]
+"
+
+PATCHES=( "${FILESDIR}/${PN}-0.33.0-system-harfbuzz.patch" )
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+ export SETUPTOOLS_SCM_PRETEND_VERSION="${PV%_*}"
+ export USE_SYSTEM_HARFBUZZ=1
+}
next reply other threads:[~2023-01-13 3:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-13 3:14 Julien Roy [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-02-27 0:31 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/uharfbuzz/, dev-python/uharfbuzz/files/ Anna Vyalkova
2022-03-27 7:30 Alessandro Barbieri
2021-10-07 10:22 Alessandro Barbieri
2021-07-03 3:40 Alessandro Barbieri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1673579513.b464dc74242ef307c562f3fd8f5db98fd8ba9a09.julien@gentoo \
--to=julien@jroy.ca \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox