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