public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cffsubr/, dev-python/cffsubr/files/
@ 2022-03-12  1:18 Alessandro Barbieri
  0 siblings, 0 replies; only message in thread
From: Alessandro Barbieri @ 2022-03-12  1:18 UTC (permalink / raw
  To: gentoo-commits

commit:     537a899d0db43f02d69b5e08e4ec6dcdcc7d45cf
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Mar 12 00:54:06 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Mar 12 00:54:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=537a899d

dev-python/cffsubr: add 0.2.9_p1

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-python/cffsubr/Manifest                        |  1 +
 dev-python/cffsubr/cffsubr-0.2.9_p1.ebuild         | 44 ++++++++++++++++++++++
 .../files/cffsubr-0.2.9_p1-fix-setup-py.patch      | 22 +++++++++++
 3 files changed, 67 insertions(+)

diff --git a/dev-python/cffsubr/Manifest b/dev-python/cffsubr/Manifest
index d42a93d36..c0a09a371 100644
--- a/dev-python/cffsubr/Manifest
+++ b/dev-python/cffsubr/Manifest
@@ -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

diff --git a/dev-python/cffsubr/cffsubr-0.2.9_p1.ebuild b/dev-python/cffsubr/cffsubr-0.2.9_p1.ebuild
new file mode 100644
index 000000000..cb351f361
--- /dev/null
+++ b/dev-python/cffsubr/cffsubr-0.2.9_p1.ebuild
@@ -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
+}

diff --git a/dev-python/cffsubr/files/cffsubr-0.2.9_p1-fix-setup-py.patch b/dev-python/cffsubr/files/cffsubr-0.2.9_p1-fix-setup-py.patch
new file mode 100644
index 000000000..dfdfe352a
--- /dev/null
+++ b/dev-python/cffsubr/files/cffsubr-0.2.9_p1-fix-setup-py.patch
@@ -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",


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-12  1:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-12  1:18 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cffsubr/, dev-python/cffsubr/files/ Alessandro Barbieri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox