mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-12 08:33:15 -04:00
dev-python/uharfbuzz: cleanups
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST uharfbuzz-0.33.0.gh.tar.gz 38023 BLAKE2B 5cf2d8afc8174d5fb679a38fb4147ea15d753a4b2f745c194d6f75868f878a6ae22a0a3bb77b823eeafcdcda325f89ac69539767e2bc1217b88d594c561ea385 SHA512 dc1afdfd39750284544aa8bc244c36a4b60a99423d11d568759ac908fcc34eeb39e97089eba00524bc9dbe1604aab8c35bd40b98f7913016ad022832266e7145
|
||||
DIST uharfbuzz-0.33.0.zip 1364513 BLAKE2B 668a9b7083d1a75c6845b2177b876447a25e28b15bc14e52518f1bf158ca4e23f01a0d42eb1aea02dce65c64496101ea00c8fd4d68e5ba7c1d149d920ba6624a SHA512 923ade6a4cefca9d1cfdee19fbf7b769480072695da67a1b6b75738172dad1c3236ff7d2263eeaeb6f08c235ff6efd952f095c63957549c589fafde31ca604eb
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -13,7 +13,7 @@
|
||||
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 @@
|
||||
|
||||
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,11 +39,9 @@
|
||||
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',
|
||||
+ 'src/uharfbuzz/_harfbuzz.pyx'
|
||||
],
|
||||
language='c++',
|
||||
libraries=libraries,
|
||||
@@ -3,33 +3,33 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} pypy3 )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
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"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/uharfbuzz/
|
||||
https://github.com/harfbuzz/uharfbuzz
|
||||
"
|
||||
SRC_URI="$(pypi_sdist_url ${PN} ${PV} .zip)"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND=">=media-libs/harfbuzz-4.3.0[experimental(-)]"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
RDEPEND=">=media-libs/harfbuzz-4.3.0:=[experimental(-)]"
|
||||
BDEPEND="
|
||||
app-arch/unzip
|
||||
>=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%_*}"
|
||||
src_configure() {
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||
export USE_SYSTEM_HARFBUZZ=1
|
||||
}
|
||||
Reference in New Issue
Block a user