1 |
commit: d5545e5bf7e1edade9910c2e2be1d9bccf1ebe17 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 06:38:53 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 07:40:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5545e5b |
7 |
|
8 |
dev-python/fonttools: Bump to 4.37.3 |
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.37.3.ebuild | 66 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 67 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/fonttools/Manifest b/dev-python/fonttools/Manifest |
17 |
index a9c69d56827f..cf91244a6d0d 100644 |
18 |
--- a/dev-python/fonttools/Manifest |
19 |
+++ b/dev-python/fonttools/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST fonttools-4.36.0.gh.tar.gz 3567028 BLAKE2B 45c2481680a314e101ed3a14915585b503a15853937846a5ceadd15e524f053663e0c6876bb105b0f2593ac790029da48cbede8139be98809764e5a6e3e2b11a SHA512 48a07548f72e9818292c1552675fce94b8ecb876172cd7adb429426c1d987f54a6e0482b7847e48c3b9854821567023cce402c613488d9e17277eff8a615d3c2 |
22 |
DIST fonttools-4.37.2.gh.tar.gz 3593663 BLAKE2B d0e6e7beb370a8611f6c92cb3c0d253cda1a946985dee12d1e911a33d45415e15ecdadd2be3eef3d121ffc27a450ed19bcea7c5b19f562af206ea6207b0c7dee SHA512 5850c31f68a6a7e1476644938ccb69d1213eb218a966a67c72f41fbbbc63cf5ed2f9638ce9497fd0702308ebf5637fc471b32a44b2ebcfbb9f4d3c2898dd626b |
23 |
+DIST fonttools-4.37.3.gh.tar.gz 3594598 BLAKE2B bd2c347e1542c2be4136c75804d95ddc1514c4b131f6754467e4229928391f607d206b6edff1fbce62d270801adac3d53fa187a06983dec6d44c699029a8e47e SHA512 7e8f9d68d59e6e842f2cc7acabd4188a1f5b1beb3437148ecb4ced1144eca5ae6af64c501b8ffedb780c72d84c73d7363d7d6ef3b3fc829bad27cba0c15c5ca9 |
24 |
|
25 |
diff --git a/dev-python/fonttools/fonttools-4.37.3.ebuild b/dev-python/fonttools/fonttools-4.37.3.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..75d1f33eb4b3 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/fonttools/fonttools-4.37.3.ebuild |
30 |
@@ -0,0 +1,66 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..11} ) |
38 |
+PYTHON_REQ_USE="xml(+)" |
39 |
+ |
40 |
+inherit distutils-r1 virtualx |
41 |
+ |
42 |
+DESCRIPTION="Library for manipulating TrueType, OpenType, AFM and Type1 fonts" |
43 |
+HOMEPAGE=" |
44 |
+ https://github.com/fonttools/fonttools/ |
45 |
+ https://pypi.org/project/fonttools/ |
46 |
+" |
47 |
+SRC_URI=" |
48 |
+ https://github.com/fonttools/fonttools/archive/${PV}.tar.gz |
49 |
+ -> ${P}.gh.tar.gz |
50 |
+" |
51 |
+ |
52 |
+LICENSE="BSD" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ >=dev-python/fs-2.4.9[${PYTHON_USEDEP}] |
58 |
+" |
59 |
+BDEPEND=" |
60 |
+ dev-python/cython[${PYTHON_USEDEP}] |
61 |
+ test? ( |
62 |
+ app-arch/brotli[python,${PYTHON_USEDEP}] |
63 |
+ app-arch/zopfli |
64 |
+ ) |
65 |
+" |
66 |
+ |
67 |
+distutils_enable_tests pytest |
68 |
+ |
69 |
+python_prepare_all() { |
70 |
+ # When dev-python/pytest-shutil is installed, we get weird import errors. |
71 |
+ # This is due to incomplete nesting in the Tests/ tree: |
72 |
+ # |
73 |
+ # Tests/feaLib/__init__.py |
74 |
+ # Tests/ufoLib/__init__.py |
75 |
+ # Tests/svgLib/path/__init__.py |
76 |
+ # Tests/otlLib/__init__.py |
77 |
+ # Tests/varLib/__init__.py |
78 |
+ # |
79 |
+ # This tree requires an __init__.py in Tests/svgLib/ too, bug #701148. |
80 |
+ touch Tests/svgLib/__init__.py || die |
81 |
+ |
82 |
+ distutils-r1_python_prepare_all |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ export FONTTOOLS_WITH_CYTHON=1 |
87 |
+} |
88 |
+ |
89 |
+src_test() { |
90 |
+ # virtualx used when matplotlib is installed causing plot module tests to run |
91 |
+ virtx distutils-r1_src_test |
92 |
+} |
93 |
+ |
94 |
+python_test() { |
95 |
+ epytest Tests fontTools || die "Tests failed with ${EPYTHON}" |
96 |
+} |