1 |
commit: 8569b89430a718b22fb3372087c94d00f44c8c6e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 1 21:12:31 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 1 22:03:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8569b894 |
7 |
|
8 |
dev-python/fonttools: Bump to 4.29.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.29.1.ebuild | 58 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 59 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/fonttools/Manifest b/dev-python/fonttools/Manifest |
17 |
index 714f7b8967e7..09cda391d1cd 100644 |
18 |
--- a/dev-python/fonttools/Manifest |
19 |
+++ b/dev-python/fonttools/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST fonttools-4.28.5.tar.gz 2948092 BLAKE2B b35f4be68cfc2be6afb209c2caee38f7088a1a17dea85fac0f40183b61a3eded59fab47f703587097669f8823a8dbc2e84b0df58305597784bed7f8c2e2b0f28 SHA512 5d87f4fadbcb447d1c1a1e97550f6a477d74bfe8647d14b35097e03e6a45a1a01632d2092483d675c523f97d4a04f39aa9b3175e535b1e1a4f19d619eb40ad5f |
22 |
DIST fonttools-4.29.0.tar.gz 2954211 BLAKE2B 47b7228b2f0f7332f54df58d8be8289b9bc3a737caa57ffafe9a8467e4d7e35db153f7e02caf8c6129af8dbb2bc18689af3f3122b0be7afee19bece83c846aad SHA512 0573970ceaf43e4987eee970aa93a6aba5af2b592b5d92a1aec36b102cb1967f380f8170f7a14bb80cd6348ef09737ac17a0f82eaa1ad73f9f5e246271d34b32 |
23 |
+DIST fonttools-4.29.1.tar.gz 2954962 BLAKE2B e78a55e240975e12e9cfd56368eab0d18e104211d8416db833a20208c78f6e5dbce2d24d7338017882f0bd1c3c181c0af0c069025a750cba4e9f41c1b4b2489c SHA512 36f4272be18d19748069289bfb3d3339cf0b16967a12976971f9e2dd56a1e915d3176e0dd9cad08cee69b20f3d6ac1a966365d936bb091b39e23b6c693e28dc9 |
24 |
|
25 |
diff --git a/dev-python/fonttools/fonttools-4.29.1.ebuild b/dev-python/fonttools/fonttools-4.29.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..61180d63050f |
28 |
--- /dev/null |
29 |
+++ b/dev-python/fonttools/fonttools-4.29.1.ebuild |
30 |
@@ -0,0 +1,58 @@ |
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..10} ) |
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="https://github.com/fonttools/fonttools/" |
44 |
+SRC_URI="https://github.com/fonttools/fonttools/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
49 |
+ |
50 |
+RDEPEND=">=dev-python/fs-2.4.9[${PYTHON_USEDEP}]" |
51 |
+BDEPEND=" |
52 |
+ ${RDEPEND} |
53 |
+ dev-python/cython[${PYTHON_USEDEP}] |
54 |
+ test? ( |
55 |
+ app-arch/brotli[python,${PYTHON_USEDEP}] |
56 |
+ app-arch/zopfli |
57 |
+ )" |
58 |
+ |
59 |
+distutils_enable_tests pytest |
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_configure() { |
78 |
+ export FONTTOOLS_WITH_CYTHON=1 |
79 |
+} |
80 |
+ |
81 |
+src_test() { |
82 |
+ # virtualx used when matplotlib is installed causing plot module tests to run |
83 |
+ virtx distutils-r1_src_test |
84 |
+} |
85 |
+ |
86 |
+python_test() { |
87 |
+ epytest Tests fontTools || die "Tests failed with ${EPYTHON}" |
88 |
+} |