diff --git a/dev-python/uharfbuzz/Manifest b/dev-python/uharfbuzz/Manifest index 4cab0aa777..46c1dd70cb 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 0000000000..29085fa143 --- /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 0000000000..2ea5af6284 --- /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 +}