mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
dev-util/afdko: enable py3.10, fix tests
Closes: https://bugs.gentoo.org/840029 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST afdko-3.8.1.tar.gz 14290160 BLAKE2B 17cfe6666d5b981bff9b8e41e58ac511d04add7408636782ea8c2ad94af36129d58eda2016af5542825f64a62d79fb1ea3e02e9af8dca4df072bb2abbe67032d SHA512 543f4909a8859e71c11629c35f41de56bcc2bc6d0fe217fa467660783cf3dbb7be9f1dc8e890944d90c8ed4f8da7b97a72e9cd6c6fe528e70dbac300fd5244f3
|
||||
DIST afdko-3.8.1.gh.tar.gz 14290160 BLAKE2B 17cfe6666d5b981bff9b8e41e58ac511d04add7408636782ea8c2ad94af36129d58eda2016af5542825f64a62d79fb1ea3e02e9af8dca4df072bb2abbe67032d SHA512 543f4909a8859e71c11629c35f41de56bcc2bc6d0fe217fa467660783cf3dbb7be9f1dc8e890944d90c8ed4f8da7b97a72e9cd6c6fe528e70dbac300fd5244f3
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -13,49 +13,51 @@ HOMEPAGE="
|
||||
https://adobe-type-tools.github.io/afdko/
|
||||
https://github.com/adobe-type-tools/afdko
|
||||
"
|
||||
SRC_URI="https://github.com/adobe-type-tools/afdko/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/adobe-type-tools/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
#lxml, unicodedata2, fs, brotli, brotlicffi, zopfli, fontpens are indirect dependencies
|
||||
RDEPEND="
|
||||
dev-cpp/antlr-cpp:4
|
||||
>=dev-python/lxml-4.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/fs-2.2.0[${PYTHON_USEDEP}]
|
||||
COMMON_DEPEND="
|
||||
>=app-arch/brotli-1.0.1[python,${PYTHON_USEDEP}]
|
||||
>=dev-python/brotlicffi-0.8.0[${PYTHON_USEDEP}]
|
||||
>=app-arch/zopfli-0.1.4
|
||||
dev-python/fontPens[${PYTHON_USEDEP}]
|
||||
|
||||
dev-cpp/antlr-cpp:4
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/booleanOperations-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/brotlicffi-0.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/defcon-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/fontMath-0.8.1[${PYTHON_USEDEP}]
|
||||
dev-python/fontPens[${PYTHON_USEDEP}]
|
||||
>=dev-python/fonttools-4.26.2[${PYTHON_USEDEP}]
|
||||
>=dev-util/psautohint-2.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/fs-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-4.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tqdm-4.62.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/ufoNormalizer-0.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ufoProcessor-1.9.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
>=dev-util/psautohint-2.3.1[${PYTHON_USEDEP}]
|
||||
!app-i18n/transifex-client
|
||||
" # file collisions with app-i18n/transifex-client
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/cython-0.29.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/scikit-build-0.11.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools_scm-3.2.0[${PYTHON_USEDEP}]
|
||||
dev-python/wheel[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-python/setuptools_scm-3.2.0[${PYTHON_USEDEP}]
|
||||
dev-util/ninja
|
||||
dev-util/cmake
|
||||
"
|
||||
|
||||
DOCS=( {README,NEWS}.md docs )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-no-cmake-ninja-deps.patch"
|
||||
"${FILESDIR}/${P}-antlr.patch"
|
||||
)
|
||||
|
||||
EPYTEST_DESELECT=( tests/makeotf_test.py::test_writeOptionsFile )
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
pkg_setup() {
|
||||
@@ -70,6 +72,5 @@ python_prepare_all() {
|
||||
python_test() {
|
||||
local -x PYTHONPATH="${S}/python:${PYTHONPATH}"
|
||||
local -x PATH="${BUILD_DIR}/test/scripts:${S}/c/build_all:${PATH}"
|
||||
distutils_install_for_testing
|
||||
epytest -vv || die
|
||||
epytest
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user