summaryrefslogtreecommitdiff
path: root/dev-python/fonttools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-02 16:58:13 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-02 16:58:13 +0000
commitd602f48b0029adc0d2ad1fceed902419909e98ac (patch)
tree83eed23327b538798d7aff4633914e0af5cc78e9 /dev-python/fonttools
parent4c506c69909bdb43fda5e36c79b165e404d3b86b (diff)
gentoo auto-resync : 02:12:2023 - 16:58:12
Diffstat (limited to 'dev-python/fonttools')
-rw-r--r--dev-python/fonttools/Manifest2
-rw-r--r--dev-python/fonttools/fonttools-4.46.0.ebuild94
2 files changed, 96 insertions, 0 deletions
diff --git a/dev-python/fonttools/Manifest b/dev-python/fonttools/Manifest
index ca57629ad0cc..e7bc01974b97 100644
--- a/dev-python/fonttools/Manifest
+++ b/dev-python/fonttools/Manifest
@@ -4,10 +4,12 @@ DIST fonttools-4.44.1.gh.tar.gz 3772404 BLAKE2B 75ea507c234846e26d3e1693c3ae8c23
DIST fonttools-4.44.3.gh.tar.gz 3775926 BLAKE2B fcc482ffa6163f895cf6ea8721dae3ce85beea3bbf3d19c30e5f2a681356e66ff5ffc3ee4b228244eaebbcc76e397ec1e841ed3f96fda2eb2561e26f0b90a174 SHA512 cedac35c1273d95785095678a90aef58307b5c66bcd3c2e4f72f6642412265e783afc5e0e1e4cff77ceb31f1f5406ae24d130856c41821998da94e088628823e
DIST fonttools-4.45.0.gh.tar.gz 3785706 BLAKE2B d5e9d4ec5b04e789379834846b4545a3aac7c793127aff017a09fd07439413890919241a3692416b7f570ccb8b41e86d46a7f3a132d86357b1c8f63a1cbc1b9f SHA512 6132912f547e5b74f06749bf098cd31e27b1ff4ecfee874a29a1b82d339575b94e5f1580ee4d5b8b7588ae7382f298fd5ef537b165477a2f37e9112d51c58c2d
DIST fonttools-4.45.1.gh.tar.gz 3787665 BLAKE2B 5f7f821eda2fe3e9f9e72417e9e545d495322fa363a1b4760f46ade75c803ec8a66ed2c7e1ab7c7eb84ff7b375d038b8ac02f56201ed2b73844e83ed1dcf25d3 SHA512 58926a3e8cb27148753010c66b5eee071ea88cd8a568fe10e76c94de190fa0685acbb6be1393b03f8fddfe6142b0d523bb17573f4db25c0e057a26f9579c5219
+DIST fonttools-4.46.0.gh.tar.gz 3796675 BLAKE2B 5e8affb809cc2a66208636557c2bcfac58abbbd2cbb921923686153138ef011db1f00edafdf2b998c9d26924ceb6b3038b65d593892a379b7c72fdaf8df10304 SHA512 67e805f11b47d9bebd9a538aa775c109c81b6ab85b66cd479b7c8c0c222420cb5a5e30d993c04bd9b091ba457b3fb3673ff217ecf61feb40e189c60fa6d6c6d8
EBUILD fonttools-4.43.1.ebuild 1627 BLAKE2B 1e3e29d8b99ba2ddd7b9d54d8c28e0463fe726d32e71afe8af52d72c82928dda98a12979fd1f6e7e200da88f75d0e20c5b72d5f64be989b2c2dddcd65a77a8e6 SHA512 9de4ba39052accc56cc887fab19a97e4497597eebbec9c20830f282428edf80436fe6425459ff8f7efb5e088c4fdecd96744f76898cef2816228867e963b6f61
EBUILD fonttools-4.44.0.ebuild 1833 BLAKE2B 66dd265b53dbfa2d0ff3d66d9f855bd3f70824ccbf3e5a967543b5fce69ddb0eac216dca934161f3f52d3c58ba1b6fc33c7c69bd29fc82e3b38396d7f3c5baf4 SHA512 38000e77ffa0fdb497f88c4eee65e505ffbc34620821d8bd471cbd3fc94e968e22b3f3c90d63af0993c796a66b5c78c6456cb9412c1eb9d63630e2fb05231ee4
EBUILD fonttools-4.44.1.ebuild 1833 BLAKE2B 66dd265b53dbfa2d0ff3d66d9f855bd3f70824ccbf3e5a967543b5fce69ddb0eac216dca934161f3f52d3c58ba1b6fc33c7c69bd29fc82e3b38396d7f3c5baf4 SHA512 38000e77ffa0fdb497f88c4eee65e505ffbc34620821d8bd471cbd3fc94e968e22b3f3c90d63af0993c796a66b5c78c6456cb9412c1eb9d63630e2fb05231ee4
EBUILD fonttools-4.44.3.ebuild 2170 BLAKE2B 47b75a5a50f834e16a9e706d709fb129e966bf82e2e003bdb81e13cc67f64f9c1a87e86d46bbb8baec0ca6c59fd1598f9b33ea20c755b0250cadbe5bd92a9b0e SHA512 c7d6b41316f9756345755f736fb06dacdccddb14d57da8f3540d4b20d4da13d70fa6047258e6aa3ec6a17dc7a6fd4f40a73a38cd1beccbeaa4330bc03ec3e423
EBUILD fonttools-4.45.0.ebuild 2297 BLAKE2B ce1b884f04ff3242a5fad75709621fa3c06905d0fb332b95d6689bbafd86c86523b86ec391d666f0268e36b60c9ce2ea730de70bee255a6550a7e4d5f6357133 SHA512 4699ee6b743a11104d3d457247957d123b40b367f3bbf255ccc1518610cb258ac426f104263dc5b7607aa5cd2f3f44b83887d75176961c16c87150f79bb7a67a
EBUILD fonttools-4.45.1.ebuild 2297 BLAKE2B ce1b884f04ff3242a5fad75709621fa3c06905d0fb332b95d6689bbafd86c86523b86ec391d666f0268e36b60c9ce2ea730de70bee255a6550a7e4d5f6357133 SHA512 4699ee6b743a11104d3d457247957d123b40b367f3bbf255ccc1518610cb258ac426f104263dc5b7607aa5cd2f3f44b83887d75176961c16c87150f79bb7a67a
+EBUILD fonttools-4.46.0.ebuild 2385 BLAKE2B b81014eea878b14a51c57948652c3c1cf14a31c6683c63efc5d9679fccf1f5570cbd4dd816f60a4cffaa7a90f095eae044c6d28d0eeaf83b11ecadcd009e218f SHA512 ae4524e71da1fe4e2b9ab02bfd57cc512223ddee957608c2821c2314889d383ed27df320ede15ad26c7d78240c30f8dd50c3e960832ec43dce762c1b9d33f549
MISC metadata.xml 372 BLAKE2B 950ec78bf127250847c6513c22a5108b251afdb000d361068edf9d00d64a5baf6925ba4058bb889724febb28d92abc044c29af5936a48d8e8951b12314b64357 SHA512 03e76e28959bab83fe41c3ee4b55692ced9b1360e73e38a6e8f6e5c06fd1185dcbe0214aea2edff18d248abf252c1877d0d2c2b78b8e088e606c09c34e93e7ac
diff --git a/dev-python/fonttools/fonttools-4.46.0.ebuild b/dev-python/fonttools/fonttools-4.46.0.ebuild
new file mode 100644
index 000000000000..640e8996304e
--- /dev/null
+++ b/dev-python/fonttools/fonttools-4.46.0.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2023 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 python3_{10..12} )
+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 ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos"
+IUSE="+native-extensions"
+
+RDEPEND="
+ >=dev-python/fs-2.4.9[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ native-extensions? (
+ $(python_gen_cond_dep '
+ dev-python/cython[${PYTHON_USEDEP}]
+ ' 'python*')
+ )
+ test? (
+ dev-python/brotlicffi[${PYTHON_USEDEP}]
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+ app-arch/zopfli
+ )
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # When dev-python/pytest-shutil is installed, we get weird import errors.
+ # This is due to incomplete nesting in the Tests/ tree:
+ #
+ # Tests/feaLib/__init__.py
+ # Tests/ufoLib/__init__.py
+ # Tests/svgLib/path/__init__.py
+ # Tests/otlLib/__init__.py
+ # Tests/varLib/__init__.py
+ #
+ # This tree requires an __init__.py in Tests/svgLib/ too, bug #701148.
+ touch Tests/svgLib/__init__.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+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=()
+ if [[ ${EPYTHON} == pypy3 ]] &&
+ has_version "dev-python/pyxattr[${PYTHON_USEDEP}]" &&
+ {
+ has_version "<dev-python/pypy3_10-exe-7.3.13_p2" ||
+ has_version "<dev-python/pypy3_10-exe-bin-7.3.13_p2"
+ }
+ then
+ EPYTEST_DESELECT+=(
+ # affected by a bug in PyPy/pyxattr
+ # https://github.com/iustin/pyxattr/issues/41
+ Tests/t1Lib/t1Lib_test.py::ReadWriteTest::test_read_with_path
+ )
+ fi
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ nonfatal epytest \
+ -p rerunfailures --reruns=5 \
+ Tests fontTools || die -n "Tests failed with ${EPYTHON}"
+}