diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-02-27 08:55:08 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-02-27 09:09:27 +0100 |
commit | e00a9a9551b0dc3b17f678ed66cf2b7103f45760 (patch) | |
tree | a72cb705a7c056da40de7934bb79098aa1758372 /dev-python | |
parent | dev-python/asteval: Bump to 0.9.23 (diff) | |
download | gentoo-e00a9a9551b0dc3b17f678ed66cf2b7103f45760.tar.gz gentoo-e00a9a9551b0dc3b17f678ed66cf2b7103f45760.tar.bz2 gentoo-e00a9a9551b0dc3b17f678ed66cf2b7103f45760.zip |
dev-python/fonttools: Bump to 4.21.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/fonttools/Manifest | 1 | ||||
-rw-r--r-- | dev-python/fonttools/fonttools-4.21.1.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/fonttools/Manifest b/dev-python/fonttools/Manifest index b8c6817fd991..3b24cc5a6653 100644 --- a/dev-python/fonttools/Manifest +++ b/dev-python/fonttools/Manifest @@ -1 +1,2 @@ DIST fonttools-4.18.2.tar.gz 2499129 BLAKE2B 1ae93418121942e4303e4b138b192a30195d25c87e8c6204b508cc6a5b7a87608fcde7acbb6a2e8fb3c71ea59938827dabbe1556b7edad537523f6f0b3615696 SHA512 ceec3656c674ff5c43f4dc7cdf1468ddaf5c8bbe569d865fb015a9251ac089caedcf3dcea82c93a0c367576fcd7d65451642a6ab5d3093d941aa391b50070d53 +DIST fonttools-4.21.1.tar.gz 2531249 BLAKE2B 7f507f85061c67da0003ed2c4f685b22ccf0e6c5067adb934772ef0832656bbe092d1282b30b5a40071cd3a3219f5cfd810e06e9cd3f85ddd8fa93538134c943 SHA512 8c54809ab9f39e34f482ee6b17dbf8b309e8bfa0bde783e24195c1f2949ded64591c5e79565136ec8492c0095d593db20779d3f28b933f8e40e54b610130e0f4 diff --git a/dev-python/fonttools/fonttools-4.21.1.ebuild b/dev-python/fonttools/fonttools-4.21.1.ebuild new file mode 100644 index 000000000000..6627fc915f27 --- /dev/null +++ b/dev-python/fonttools/fonttools-4.21.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_REQ_USE="xml(+)" +DISTUTILS_USE_SETUPTOOLS=rdepend + +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 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" +RESTRICT="!test? ( test )" +IUSE="test" + +RDEPEND="" +DEPEND="${RDEPEND} + test? ( + >=dev-python/pytest-2.8[${PYTHON_USEDEP}] + + >=dev-python/fs-2.4.9[${PYTHON_USEDEP}] + app-arch/brotli[python,${PYTHON_USEDEP}] + app-arch/zopfli + )" + +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_test() { + # virtualx used when matplotlib is installed causing plot module tests to run + virtx distutils-r1_src_test +} + +python_test() { + pytest -vv Tests fontTools || die "Tests failed with ${EPYTHON}" +} |