diff --git a/dev-python/ttfautohint-py/Manifest b/dev-python/ttfautohint-py/Manifest new file mode 100644 index 0000000000..29df1e9412 --- /dev/null +++ b/dev-python/ttfautohint-py/Manifest @@ -0,0 +1 @@ +DIST ttfautohint-py-0.4.3.tar.gz 186488 BLAKE2B cc5de63faf4a5d213a14eda9b092c48e2e67c59b04ad1580d680e22bf691d915a74f7a465cc37cd0ce907874f3fdb0312224e647bb8e18e5741f886e69e7d075 SHA512 2f21af2a4ffffb59c9e83e4c5aa77ce15d97d4391894537e87727fd05f47b8f007e3ddf1fcf98d195a880b2a4e22586ce9faab4d8dc33f6c6eaa1623dcfd3aab diff --git a/dev-python/ttfautohint-py/files/ttfautohint-py-0.4.3-no-ext_modules.patch b/dev-python/ttfautohint-py/files/ttfautohint-py-0.4.3-no-ext_modules.patch new file mode 100644 index 0000000000..84dee04cc3 --- /dev/null +++ b/dev-python/ttfautohint-py/files/ttfautohint-py-0.4.3-no-ext_modules.patch @@ -0,0 +1,10 @@ +--- a/setup.py ++++ b/setup.py +@@ -120,7 +120,6 @@ + platforms=["posix", "nt"], + package_dir={"": "src/python"}, + packages=find_packages("src/python"), +- ext_modules=[libttfautohint], + zip_safe=False, + cmdclass=cmdclass, + setup_requires=['setuptools_scm'], diff --git a/dev-python/ttfautohint-py/metadata.xml b/dev-python/ttfautohint-py/metadata.xml new file mode 100644 index 0000000000..a35f50345c --- /dev/null +++ b/dev-python/ttfautohint-py/metadata.xml @@ -0,0 +1,10 @@ + + + + + + https://github.com/fonttools/ttfautohint-py/issues + fonttools/ttfautohint-py + ttfautohint-py + + diff --git a/dev-python/ttfautohint-py/ttfautohint-py-0.4.3.ebuild b/dev-python/ttfautohint-py/ttfautohint-py-0.4.3.ebuild new file mode 100644 index 0000000000..31466327d1 --- /dev/null +++ b/dev-python/ttfautohint-py/ttfautohint-py-0.4.3.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9} ) + +inherit distutils-r1 + +SRC_URI="https://github.com/fonttools/ttfautohint-py/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" +DESCRIPTION="A Python wrapper for ttfautohint" +HOMEPAGE="https://github.com/fonttools/ttfautohint-py" +LICENSE="MIT" +SLOT="0" + +RDEPEND="media-gfx/ttfautohint" +DEPEND=" + test? ( + dev-python/fonttools[${PYTHON_USEDEP}] + ) +" + +PATCHES=( "${FILESDIR}/${P}-no-ext_modules.patch" ) + +distutils_enable_tests pytest + +src_prepare() { + rm -r src/c || die + export SETUPTOOLS_SCM_PRETEND_VERSION="${PV%_*}" + default +}