dev-python/statmake: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-06-19 23:12:59 +02:00
parent aee27cb5f7
commit 79d5f304ca
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST statmake-0.3.0.tar.gz 34099 BLAKE2B 42286bc7f56a74a4aa4baeda58f71ef8122caa5b9a4fe84605c0e66f659000ca969c038bb4c080734465349ef7bffeada90064f00d47ba372a0c7a4a5c54a57c SHA512 b24452e2e670900378d0a8a725810140928da2a6dbb282597ac0f2202ffababa70de9a0bbfa2fe0bd77ff9251f3c5bfbf6735c42b4a246eb8ef061b809da0db3

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<bugs-to>https://github.com/daltonmaag/statmake/issues</bugs-to>
<remote-id type="github">daltonmaag/statmake</remote-id>
<remote-id type="pypi">statmake</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,40 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS=pyproject.toml
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
SRC_URI="https://github.com/daltonmaag/statmake/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="Generate STAT tables for variable fonts from .stylespace files"
HOMEPAGE="https://github.com/daltonmaag/statmake"
LICENSE="MIT"
SLOT="0"
IUSE="test"
RDEPEND="
dev-python/fonttools[${PYTHON_USEDEP}]
dev-python/cattrs[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
test? (
dev-python/ufo2ft[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_install() {
distutils-r1_python_install --skip-build
python_domodule "src/${PN}"
}
python_test() {
local -x PYTHONPATH="${S}/src:${PYTHONPATH}"
epytest -vv || die "Tests fail with ${EPYTHON}"
}