diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-01 22:12:31 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-01 23:03:22 +0100 |
commit | 8569b89430a718b22fb3372087c94d00f44c8c6e (patch) | |
tree | 6d5bb92217f8be5fa9a5ab7d46fd578e8b8409cf /dev-python/fonttools | |
parent | dev-python/httpcore: Bump to 0.14.6 (diff) | |
download | gentoo-8569b89430a718b22fb3372087c94d00f44c8c6e.tar.gz gentoo-8569b89430a718b22fb3372087c94d00f44c8c6e.tar.bz2 gentoo-8569b89430a718b22fb3372087c94d00f44c8c6e.zip |
dev-python/fonttools: Bump to 4.29.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/fonttools')
-rw-r--r-- | dev-python/fonttools/Manifest | 1 | ||||
-rw-r--r-- | dev-python/fonttools/fonttools-4.29.1.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/fonttools/Manifest b/dev-python/fonttools/Manifest index 714f7b8967e7..09cda391d1cd 100644 --- a/dev-python/fonttools/Manifest +++ b/dev-python/fonttools/Manifest @@ -1,2 +1,3 @@ DIST fonttools-4.28.5.tar.gz 2948092 BLAKE2B b35f4be68cfc2be6afb209c2caee38f7088a1a17dea85fac0f40183b61a3eded59fab47f703587097669f8823a8dbc2e84b0df58305597784bed7f8c2e2b0f28 SHA512 5d87f4fadbcb447d1c1a1e97550f6a477d74bfe8647d14b35097e03e6a45a1a01632d2092483d675c523f97d4a04f39aa9b3175e535b1e1a4f19d619eb40ad5f DIST fonttools-4.29.0.tar.gz 2954211 BLAKE2B 47b7228b2f0f7332f54df58d8be8289b9bc3a737caa57ffafe9a8467e4d7e35db153f7e02caf8c6129af8dbb2bc18689af3f3122b0be7afee19bece83c846aad SHA512 0573970ceaf43e4987eee970aa93a6aba5af2b592b5d92a1aec36b102cb1967f380f8170f7a14bb80cd6348ef09737ac17a0f82eaa1ad73f9f5e246271d34b32 +DIST fonttools-4.29.1.tar.gz 2954962 BLAKE2B e78a55e240975e12e9cfd56368eab0d18e104211d8416db833a20208c78f6e5dbce2d24d7338017882f0bd1c3c181c0af0c069025a750cba4e9f41c1b4b2489c SHA512 36f4272be18d19748069289bfb3d3339cf0b16967a12976971f9e2dd56a1e915d3176e0dd9cad08cee69b20f3d6ac1a966365d936bb091b39e23b6c693e28dc9 diff --git a/dev-python/fonttools/fonttools-4.29.1.ebuild b/dev-python/fonttools/fonttools-4.29.1.ebuild new file mode 100644 index 000000000000..61180d63050f --- /dev/null +++ b/dev-python/fonttools/fonttools-4.29.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 virtualx + +DESCRIPTION="Library for manipulating TrueType, OpenType, AFM and Type1 fonts" +HOMEPAGE="https://github.com/fonttools/fonttools/" +SRC_URI="https://github.com/fonttools/fonttools/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" + +RDEPEND=">=dev-python/fs-2.4.9[${PYTHON_USEDEP}]" +BDEPEND=" + ${RDEPEND} + dev-python/cython[${PYTHON_USEDEP}] + test? ( + app-arch/brotli[python,${PYTHON_USEDEP}] + app-arch/zopfli + )" + +distutils_enable_tests pytest + +python_prepare_all() { + # When dev-python/pytest-shutil is installed, we get weird import errors. + # This is due to incomplete nesting in the Tests/ tree: + # + # Tests/feaLib/__init__.py + # Tests/ufoLib/__init__.py + # Tests/svgLib/path/__init__.py + # Tests/otlLib/__init__.py + # Tests/varLib/__init__.py + # + # This tree requires an __init__.py in Tests/svgLib/ too, bug #701148. + touch Tests/svgLib/__init__.py || die + + distutils-r1_python_prepare_all +} + +src_configure() { + export FONTTOOLS_WITH_CYTHON=1 +} + +src_test() { + # virtualx used when matplotlib is installed causing plot module tests to run + virtx distutils-r1_src_test +} + +python_test() { + epytest Tests fontTools || die "Tests failed with ${EPYTHON}" +} |