2023-05-04 06:08:25 +05:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
2022-06-28 06:27:10 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
|
2023-05-02 00:45:35 +05:00
|
|
|
PYTHON_COMPAT=( python3_{10..11} )
|
2023-05-04 06:08:25 +05:00
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
|
|
|
DISTUTILS_EXT=1
|
2023-03-17 17:48:06 +05:00
|
|
|
inherit distutils-r1 pypi
|
2022-06-28 06:27:10 +02:00
|
|
|
|
|
|
|
|
DESCRIPTION="A CFF table subroutinizer for FontTools"
|
|
|
|
|
HOMEPAGE="
|
|
|
|
|
https://pypi.org/project/compreffor/
|
2023-05-04 06:08:25 +05:00
|
|
|
https://github.com/googlefonts/compreffor
|
2022-06-28 06:27:10 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
|
|
RDEPEND=">=dev-python/fonttools-4[${PYTHON_USEDEP}]"
|
|
|
|
|
BDEPEND="
|
|
|
|
|
app-arch/unzip
|
2023-05-04 06:08:25 +05:00
|
|
|
>=dev-python/cython-0.29.24[${PYTHON_USEDEP}]
|
2022-06-28 06:27:10 +02:00
|
|
|
"
|
|
|
|
|
|
2022-06-28 10:46:41 +02:00
|
|
|
PATCHES=( "${FILESDIR}/${PN}-0.5.1_p1-remove-unwanted-dependencies.patch" )
|
2022-06-28 06:27:10 +02:00
|
|
|
|
|
|
|
|
distutils_enable_tests pytest
|
|
|
|
|
|
2023-05-04 07:00:48 +05:00
|
|
|
src_prepare() {
|
|
|
|
|
find "${S}" -name '*.cpp' -delete || die
|
|
|
|
|
distutils-r1_src_prepare
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-28 06:27:10 +02:00
|
|
|
python_test() {
|
|
|
|
|
cd "${T}" || die
|
|
|
|
|
epytest --pyargs compreffor
|
|
|
|
|
}
|