summaryrefslogtreecommitdiff
path: root/dev-python/fonttools
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-07-12 03:04:43 -0500
committerroot <root@alpha.trunkmasters.com>2026-07-12 03:04:43 -0500
commit40d2213d241ba50dbaf9b311a92a93e480fbd474 (patch)
treec0dc1821acc043acc052426e9d018af4b26b4c72 /dev-python/fonttools
parent755ecc63c34034b68719f6dac52aa76ba08bbe5c (diff)
downloadbaldeagleos-repo-40d2213d241ba50dbaf9b311a92a93e480fbd474.tar.gz
baldeagleos-repo-40d2213d241ba50dbaf9b311a92a93e480fbd474.tar.xz
baldeagleos-repo-40d2213d241ba50dbaf9b311a92a93e480fbd474.zip
Adding metadata
Diffstat (limited to 'dev-python/fonttools')
-rw-r--r--dev-python/fonttools/files/fonttools-4.63.0-py315.patch48
-rw-r--r--dev-python/fonttools/fonttools-4.63.0-r1.ebuild67
2 files changed, 115 insertions, 0 deletions
diff --git a/dev-python/fonttools/files/fonttools-4.63.0-py315.patch b/dev-python/fonttools/files/fonttools-4.63.0-py315.patch
new file mode 100644
index 000000000000..24db71a60f96
--- /dev/null
+++ b/dev-python/fonttools/files/fonttools-4.63.0-py315.patch
@@ -0,0 +1,48 @@
+From 731282b6a7335b425c37a02ce865b9189ad6ca63 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sat, 11 Jul 2026 19:52:51 +0200
+Subject: [PATCH] Replace private `glob.glob1()` with `glob.glob(...,
+ root_dir=...)`
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Replace the use of undocumented `glob.glob1()` function that was removed
+in Python 3.15 with its equivalent `glob.glob(..., root_dir=...)`. This
+fixes compatibility with Python 3.15 (where the function is removed),
+and works all the way down to Python 3.10.
+
+See: https://docs.python.org/3.13/whatsnew/3.13.html#new-deprecations
+
+Signed-off-by: Michał Górny <mgorny@gentoo.org>
+---
+ MetaTools/buildTableList.py | 2 +-
+ MetaTools/check_table_coverage.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/MetaTools/buildTableList.py b/MetaTools/buildTableList.py
+index b344f330f..9bdd95642 100755
+--- a/MetaTools/buildTableList.py
++++ b/MetaTools/buildTableList.py
+@@ -12,7 +12,7 @@ fontToolsDir = os.path.normpath(fontToolsDir)
+ tablesDir = os.path.join(fontToolsDir, "Lib", "fontTools", "ttLib", "tables")
+ docFile = os.path.join(fontToolsDir, "Doc/source/ttx.rst")
+
+-names = glob.glob1(tablesDir, "*.py")
++names = glob.glob("*.py", root_dir=tablesDir)
+
+ modules = []
+ tables = []
+diff --git a/MetaTools/check_table_coverage.py b/MetaTools/check_table_coverage.py
+index 5764daddb..19ec986eb 100644
+--- a/MetaTools/check_table_coverage.py
++++ b/MetaTools/check_table_coverage.py
+@@ -141,7 +141,7 @@ KNOWN_GAPS: dict[str, set[str]] = {
+ def get_table_modules() -> list[tuple[str, str]]:
+ """Return sorted list of (module_name, tag_raw) for all table .py files."""
+ modules = []
+- for filename in glob.glob1(TABLES_DIR, "*.py"):
++ for filename in glob.glob("*.py", root_dir=TABLES_DIR):
+ name = filename[:-3]
+ try:
+ tag = identifierToTag(name) # may contain trailing spaces, e.g. "cvt "
diff --git a/dev-python/fonttools/fonttools-4.63.0-r1.ebuild b/dev-python/fonttools/fonttools-4.63.0-r1.ebuild
new file mode 100644
index 000000000000..dd4fce366cff
--- /dev/null
+++ b/dev-python/fonttools/fonttools-4.63.0-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..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}]
+ dev-python/munkres[${PYTHON_USEDEP}]
+ app-arch/zopfli
+ )
+"
+
+EPYTEST_PLUGINS=( pytest-rerunfailures )
+# woff2 tests are extremely flaky
+EPYTEST_RERUNS=20
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+PATCHES=(
+ # https://github.com/fonttools/fonttools/pull/4125
+ "${FILESDIR}/${P}-py315.patch"
+)
+
+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() {
+ # nonfatal for virtx
+ nonfatal epytest Tests fontTools ||
+ die -n "Tests failed with ${EPYTHON}"
+}