blob: 3d4309ef7a68c651a2e163d7c94dae6dac090edd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
inherit meson distutils-r1
COMMIT="1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23"
DESCRIPTION="Python wrapper for Adobe's PostScript autohinter"
HOMEPAGE="
https://pypi.org/project/psautohint/
https://github.com/adobe-type-tools/psautohint
"
SRC_URI="
https://github.com/adobe-type-tools/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
test? (
https://github.com/adobe-type-tools/${PN}-testdata/archive/${COMMIT}.tar.gz -> ${P}-testdata.gh.tar.gz
)
"
KEYWORDS="~amd64"
LICENSE="Apache-2.0"
SLOT="0"
DEPEND="media-gfx/libpsautohint"
RDEPEND="
${DEPEND}
>=dev-python/fonttools-4.20[${PYTHON_USEDEP}]
dev-python/fs[${PYTHON_USEDEP}]
"
BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]"
DOCS=( doc {NEWS,README}.md )
PATCHES=(
"${FILESDIR}/${PN}-2.3.0-system-libs.patch"
"${FILESDIR}/${PN}-2.3.0-no-build-library.patch"
)
EPYTEST_DESELECT=(
tests/integration/test_hint.py::test_hashmap_old_version
"tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/CJKSparseVar.subset.hinted.otf]"
)
distutils_enable_tests pytest
src_unpack() {
default
if use test; then
mv "${WORKDIR}"/psautohint-testdata-${COMMIT}/* "${S}"/tests/integration/data || die
fi
}
src_prepare() {
distutils-r1_src_prepare
rm -r libpsautohint || die
mkdir -p libpsautohint/src || die
rm pytest.ini || die
}
src_configure() {
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
}
|