commit:     3e1145bfc2a0cec725707f844cea406c633e0d4e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 18 05:24:15 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Sep 18 06:21:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e1145bf

dev-python/fonttools: Bump to 4.60.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/fonttools/Manifest                |  1 +
 dev-python/fonttools/fonttools-4.60.0.ebuild | 68 ++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/dev-python/fonttools/Manifest b/dev-python/fonttools/Manifest
index 16dcbbbe0f00..e97a67cf2097 100644
--- a/dev-python/fonttools/Manifest
+++ b/dev-python/fonttools/Manifest
@@ -2,3 +2,4 @@ DIST fonttools-4.58.5.gh.tar.gz 3964953 BLAKE2B 
55604a10796af825a71e0937032285d4
 DIST fonttools-4.59.0.gh.tar.gz 3973909 BLAKE2B 
7b53b12b37be67cb764bfe2a0bcc7af85650431277678e63976d2a1d82a9386c6d1fa07485307fa114b0067c170998c31713cbe67a88b4ddab380d308570ff41
 SHA512 
552c7ebb5d8d6ce8cc37d2d20a52a213a5ccf52d532c166ad07182e3a2e5f5ac82b3ab9b45787fd1e7cfc3b588568507a006fd1b0b763402064b89ae71a86e91
 DIST fonttools-4.59.1.gh.tar.gz 3975993 BLAKE2B 
7e56e6e72e74318466b7ee673e4a9d057072413b1f2e68ae01708fa3bf2bec8c0972389e22629cc1705a7e141e7480df2203f4ab51dbc5dbc8d644924e7cf30b
 SHA512 
834a8df4c30d75d9028ef799fa5eae5de97fce8fd3723997a537d90a4f4e4bcbd5a6f5bf62aecb902b8f547fa211bf8a401d7c77602d9ec504ecf46f5db8c749
 DIST fonttools-4.59.2.gh.tar.gz 3982477 BLAKE2B 
e0c5747efed1d8d402ccfe0f603ce9ba4360355193a4968ad2e8e58e7b5155bde890f5db573dd7c3ec449701311f22d51a97213dd560cc4cf7b694f0ab715d1d
 SHA512 
34a36048680e2494f49a0fd5b94352face4cd5727e8748cbfccb6ec71f44d69d155bba43de7b9244d91723c762101216f4b057e4f64a577197f79c1db269eaff
+DIST fonttools-4.60.0.gh.tar.gz 3990380 BLAKE2B 
f42611c4270e4b9407a4f8750f9ef2492ca9e9560ca2cdbb1a2cee5800ad799fed52de80dd7c17a4722bb9cf62265c33d5483f0f7376ca2ba54f700336295900
 SHA512 
9c692a6b4a349a2b37ab74d5e2ceef66d561eebb0cb30c2feb29eecc29bfd9430821ed5587b8f6d204e02c0d33f59540cc47a02d9bc40c2d0916d7c4934ed8ee

diff --git a/dev-python/fonttools/fonttools-4.60.0.ebuild 
b/dev-python/fonttools/fonttools-4.60.0.ebuild
new file mode 100644
index 000000000000..362fbbec1de2
--- /dev/null
+++ b/dev-python/fonttools/fonttools-4.60.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1 virtualx
+
+DESCRIPTION="Library for manipulating TrueType, OpenType, AFM and Type1 fonts"
+HOMEPAGE="
+       https://github.com/fonttools/fonttools/
+       https://pypi.org/project/fonttools/
+"
+SRC_URI="
+       https://github.com/fonttools/fonttools/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+IUSE="+native-extensions"
+
+BDEPEND="
+       native-extensions? (
+               $(python_gen_cond_dep '
+                       dev-python/cython[${PYTHON_USEDEP}]
+               ' 'python*')
+       )
+       test? (
+               dev-python/brotlicffi[${PYTHON_USEDEP}]
+               $(python_gen_cond_dep '
+                       >=dev-python/fs-2.4.9[${PYTHON_USEDEP}]
+               ' 3.11 3.12 3.13)
+               dev-python/munkres[${PYTHON_USEDEP}]
+               app-arch/zopfli
+       )
+"
+
+EPYTEST_PLUGINS=( pytest-rerunfailures )
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+python_compile() {
+       local -x FONTTOOLS_WITH_CYTHON=$(usex native-extensions)
+       [[ ${EPYTHON} == pypy3 ]] && FONTTOOLS_WITH_CYTHON=0
+       distutils-r1_python_compile
+}
+
+src_test() {
+       # virtualx used when matplotlib is installed causing plot module tests 
to run
+       virtx distutils-r1_src_test
+}
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               # flaky test
+               
Tests/ttLib/woff2_test.py::WOFF2ReaderTest::test_get_normal_tables
+       )
+
+       # nonfatal for virtx
+       nonfatal epytest --reruns=5 Tests fontTools ||
+               die -n "Tests failed with ${EPYTHON}"
+}

Reply via email to