From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/fonttools/Manifest | 1 + dev-python/fonttools/fonttools-4.1.0.ebuild | 50 +++++++++++++++++++++++++++++ dev-python/fonttools/metadata.xml | 17 ++++++++++ 3 files changed, 68 insertions(+) create mode 100644 dev-python/fonttools/Manifest create mode 100644 dev-python/fonttools/fonttools-4.1.0.ebuild create mode 100644 dev-python/fonttools/metadata.xml (limited to 'dev-python/fonttools') diff --git a/dev-python/fonttools/Manifest b/dev-python/fonttools/Manifest new file mode 100644 index 000000000000..048584b5158f --- /dev/null +++ b/dev-python/fonttools/Manifest @@ -0,0 +1 @@ +DIST fonttools-4.1.0.tar.gz 2253792 BLAKE2B 470207d74404851aa111142ad8541d45820ded0212029867c289f2e7741d4b41b4ac824f65555a23d4f3dcc974428537cd319a8787bc4d80f2fb67561a21d1ee SHA512 3d9485cd34b5ea3dfdcc26474e0b21a96811b84eda16341c39165aea72bb09c3cf3360a069b316ae6575a399e26f6518c199180caec7bb959f245ced7ca45e3b diff --git a/dev-python/fonttools/fonttools-4.1.0.ebuild b/dev-python/fonttools/fonttools-4.1.0.ebuild new file mode 100644 index 000000000000..f15fbef58011 --- /dev/null +++ b/dev-python/fonttools/fonttools-4.1.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{3_6,3_7,3_8} ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 virtualx + +DESCRIPTION="Library for manipulating TrueType, OpenType, AFM and Type1 fonts" +HOMEPAGE="https://github.com/fonttools/fonttools/" +SRC_URI="https://github.com/fonttools/fonttools/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 sparc x86" +RESTRICT="!test? ( test )" +IUSE="test" + +RDEPEND="" +DEPEND="${RDEPEND} + test? ( + >=dev-python/pytest-2.8[${PYTHON_USEDEP}] + + >=dev-python/fs-2.4.9[${PYTHON_USEDEP}] + app-arch/brotli[python,${PYTHON_USEDEP}] + app-arch/zopfli + )" + +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_test() { + # virtualx used when matplotlib is installed causing plot module tests to run + virtx pytest -vv Tests fontTools +} diff --git a/dev-python/fonttools/metadata.xml b/dev-python/fonttools/metadata.xml new file mode 100644 index 000000000000..63baba40ae16 --- /dev/null +++ b/dev-python/fonttools/metadata.xml @@ -0,0 +1,17 @@ + + + + + fonts@gentoo.org + Fonts + + + python@gentoo.org + Python + + + + fonttools/fonttools + + gentoo-staging + -- cgit v1.3.1