Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/fonttools/
Date: Sat, 27 Feb 2021 08:09:36
Message-Id: 1614413367.e00a9a9551b0dc3b17f678ed66cf2b7103f45760.mgorny@gentoo
1 commit: e00a9a9551b0dc3b17f678ed66cf2b7103f45760
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 07:55:08 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 08:09:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e00a9a95
7
8 dev-python/fonttools: Bump to 4.21.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/fonttools/Manifest | 1 +
13 dev-python/fonttools/fonttools-4.21.1.ebuild | 55 ++++++++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/dev-python/fonttools/Manifest b/dev-python/fonttools/Manifest
17 index b8c6817fd99..3b24cc5a665 100644
18 --- a/dev-python/fonttools/Manifest
19 +++ b/dev-python/fonttools/Manifest
20 @@ -1 +1,2 @@
21 DIST fonttools-4.18.2.tar.gz 2499129 BLAKE2B 1ae93418121942e4303e4b138b192a30195d25c87e8c6204b508cc6a5b7a87608fcde7acbb6a2e8fb3c71ea59938827dabbe1556b7edad537523f6f0b3615696 SHA512 ceec3656c674ff5c43f4dc7cdf1468ddaf5c8bbe569d865fb015a9251ac089caedcf3dcea82c93a0c367576fcd7d65451642a6ab5d3093d941aa391b50070d53
22 +DIST fonttools-4.21.1.tar.gz 2531249 BLAKE2B 7f507f85061c67da0003ed2c4f685b22ccf0e6c5067adb934772ef0832656bbe092d1282b30b5a40071cd3a3219f5cfd810e06e9cd3f85ddd8fa93538134c943 SHA512 8c54809ab9f39e34f482ee6b17dbf8b309e8bfa0bde783e24195c1f2949ded64591c5e79565136ec8492c0095d593db20779d3f28b933f8e40e54b610130e0f4
23
24 diff --git a/dev-python/fonttools/fonttools-4.21.1.ebuild b/dev-python/fonttools/fonttools-4.21.1.ebuild
25 new file mode 100644
26 index 00000000000..6627fc915f2
27 --- /dev/null
28 +++ b/dev-python/fonttools/fonttools-4.21.1.ebuild
29 @@ -0,0 +1,55 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
36 +PYTHON_REQ_USE="xml(+)"
37 +DISTUTILS_USE_SETUPTOOLS=rdepend
38 +
39 +inherit distutils-r1 virtualx
40 +
41 +DESCRIPTION="Library for manipulating TrueType, OpenType, AFM and Type1 fonts"
42 +HOMEPAGE="https://github.com/fonttools/fonttools/"
43 +SRC_URI="https://github.com/fonttools/fonttools/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
48 +RESTRICT="!test? ( test )"
49 +IUSE="test"
50 +
51 +RDEPEND=""
52 +DEPEND="${RDEPEND}
53 + test? (
54 + >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
55 +
56 + >=dev-python/fs-2.4.9[${PYTHON_USEDEP}]
57 + app-arch/brotli[python,${PYTHON_USEDEP}]
58 + app-arch/zopfli
59 + )"
60 +
61 +python_prepare_all() {
62 + # When dev-python/pytest-shutil is installed, we get weird import errors.
63 + # This is due to incomplete nesting in the Tests/ tree:
64 + #
65 + # Tests/feaLib/__init__.py
66 + # Tests/ufoLib/__init__.py
67 + # Tests/svgLib/path/__init__.py
68 + # Tests/otlLib/__init__.py
69 + # Tests/varLib/__init__.py
70 + #
71 + # This tree requires an __init__.py in Tests/svgLib/ too, bug #701148.
72 + touch Tests/svgLib/__init__.py || die
73 +
74 + distutils-r1_python_prepare_all
75 +}
76 +
77 +src_test() {
78 + # virtualx used when matplotlib is installed causing plot module tests to run
79 + virtx distutils-r1_src_test
80 +}
81 +
82 +python_test() {
83 + pytest -vv Tests fontTools || die "Tests failed with ${EPYTHON}"
84 +}