dev-python/cffsubr: add 0.2.9_p1

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-03-12 01:54:06 +01:00
parent 7eb29d4f27
commit 537a899d0d
3 changed files with 67 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST cffsubr-0.2.8.tar.gz 124245 BLAKE2B fa78acf9158faf3917f194a2c30a13c2a598a7476a89dc79f95440eb04fe91663e7620729e6be1635ce1df24fff34068c42ea155abb17f016f50e961d13f52af SHA512 5f5a655168c6157799d17e20762893f23a7f7d90e739fb5bbe0a4fd895dc2b1c5359b5bdb92f4cb8333f841cd5b471359825d709f2477afd2bd7322760359d24
DIST cffsubr-0.2.9_p1.tar.gz 124635 BLAKE2B c040339d113247b34195d7b7a220b449810ced52ffeea209bde2bb871c964a1da7d734c7167ece88ade03b26e722dca7f235a70326ff8c9b268b707ba5730a79 SHA512 8f1ea1fb732b772c1ac479883df6993ff2d56457c725d621bb1ebebf7a27393bb96771b9db8364513ae7f815bc74da15dd8c22695eeaf6f65d8dc62c8ae947dc

View File

@@ -0,0 +1,44 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
MYPV="${PV/_p/.post}"
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
DESCRIPTION="Standalone CFF subroutinizer based on AFDKO tx tool"
HOMEPAGE="https://github.com/adobe-type-tools/cffsubr"
SRC_URI="https://github.com/adobe-type-tools/cffsubr/archive/refs/tags/v${MYPV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MYPV}"
KEYWORDS="~amd64"
LICENSE="Apache-2.0"
SLOT="0"
RDEPEND="
>=dev-python/fonttools-4.10.2[${PYTHON_USEDEP}]
>=dev-util/afdko-3.6.1[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
dev-python/setuptools_scm[${PYTHON_USEDEP}]
"
PATCHES=(
"${FILESDIR}/${PN}-system_tx.diff"
"${FILESDIR}/${P}-fix-setup-py.patch"
)
distutils_enable_tests pytest
pkg_setup() {
export SETUPTOOLS_SCM_PRETEND_VERSION="${PV%_*}"
}
src_prepare() {
#no bundled afdko
rm -rf external || die
default
}

View File

@@ -0,0 +1,22 @@
--- a/setup.py
+++ b/setup.py
@@ -136,7 +136,7 @@
package_dir={"": "src"},
packages=find_packages("src"),
entry_points={"console_scripts": ["cffsubr = cffsubr.__main__:main"]},
- ext_modules=[tx],
+ ext_modules=[],
zip_safe=False,
cmdclass=cmdclass,
install_requires=[
@@ -144,9 +144,7 @@
"fontTools >= 4.10.2",
],
setup_requires=[
- "setuptools_scm",
- # finds all git tracked files including submodules when making sdist MANIFEST
- "setuptools-git-ls-files",
+ "setuptools_scm"
],
extras_require={"testing": ["pytest"]},
python_requires=">=3.6",