2022-05-24 18:31:47 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2021-11-01 21:22:37 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
|
|
|
|
|
DISTUTILS_SINGLE_IMPL=1
|
2022-05-24 18:31:47 +02:00
|
|
|
DISTUTILS_USE_PEP517=poetry
|
2022-06-01 09:19:37 +05:00
|
|
|
PYTHON_COMPAT=( python3_{8..10} )
|
2021-11-01 21:22:37 +01:00
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
|
|
DESCRIPTION="Generate STAT tables for variable fonts from .stylespace files"
|
|
|
|
|
HOMEPAGE="https://github.com/daltonmaag/statmake"
|
2022-05-31 12:08:05 +02:00
|
|
|
SRC_URI="https://github.com/daltonmaag/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
2021-11-01 21:22:37 +01:00
|
|
|
|
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
|
$(python_gen_cond_dep '
|
|
|
|
|
dev-python/cattrs[${PYTHON_USEDEP}]
|
|
|
|
|
dev-python/fonttools[${PYTHON_USEDEP}]
|
|
|
|
|
')
|
|
|
|
|
"
|
|
|
|
|
BDEPEND="
|
2022-05-24 18:31:47 +02:00
|
|
|
test? ( $(python_gen_cond_dep 'dev-python/ufo2ft[${PYTHON_USEDEP}]') )
|
2021-11-01 21:22:37 +01:00
|
|
|
"
|
|
|
|
|
|
|
|
|
|
distutils_enable_tests pytest
|
|
|
|
|
|
|
|
|
|
python_install() {
|
|
|
|
|
distutils-r1_python_install --skip-build
|
|
|
|
|
python_domodule "src/${PN}"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
python_test() {
|
|
|
|
|
local -x PYTHONPATH="${S}/src:${PYTHONPATH}"
|
2022-05-24 18:31:47 +02:00
|
|
|
epytest
|
2021-11-01 21:22:37 +01:00
|
|
|
}
|