dev-python/uharfbuzz: cleanups

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-02-27 05:29:06 +05:00
parent 4128a83471
commit 7261cceb70
3 changed files with 13 additions and 47 deletions

View File

@@ -0,0 +1,35 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} pypy3 )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi
DESCRIPTION="Streamlined Cython bindings for the HarfBuzz shaping engine"
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(-)]"
BDEPEND="
app-arch/unzip
>=dev-python/cython-0.28.1[${PYTHON_USEDEP}]
>=dev-python/setuptools_scm-2.1[${PYTHON_USEDEP}]
"
PATCHES=( "${FILESDIR}/${PN}-0.33.0-system-harfbuzz.patch" )
distutils_enable_tests pytest
src_configure() {
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
export USE_SYSTEM_HARFBUZZ=1
}