* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cffsubr/files/, dev-python/cffsubr/
@ 2021-06-19 1:15 Alessandro Barbieri
0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Barbieri @ 2021-06-19 1:15 UTC (permalink / raw
To: gentoo-commits
commit: 30428ee43b309fcc2edf55d3aadf74e1d552e24c
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Jun 19 01:10:02 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Jun 19 01:10:02 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=30428ee4
dev-python/cffsubr: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/cffsubr/Manifest | 1 +
dev-python/cffsubr/cffsubr-0.2.8.ebuild | 39 ++++++++++++++++++++++
.../cffsubr/files/cffsubr-0.2.8-fix-setup-py.patch | 18 ++++++++++
dev-python/cffsubr/files/cffsubr-system_tx.diff | 12 +++++++
dev-python/cffsubr/metadata.xml | 5 +++
5 files changed, 75 insertions(+)
diff --git a/dev-python/cffsubr/Manifest b/dev-python/cffsubr/Manifest
new file mode 100644
index 000000000..d42a93d36
--- /dev/null
+++ b/dev-python/cffsubr/Manifest
@@ -0,0 +1 @@
+DIST cffsubr-0.2.8.tar.gz 124245 BLAKE2B fa78acf9158faf3917f194a2c30a13c2a598a7476a89dc79f95440eb04fe91663e7620729e6be1635ce1df24fff34068c42ea155abb17f016f50e961d13f52af SHA512 5f5a655168c6157799d17e20762893f23a7f7d90e739fb5bbe0a4fd895dc2b1c5359b5bdb92f4cb8333f841cd5b471359825d709f2477afd2bd7322760359d24
diff --git a/dev-python/cffsubr/cffsubr-0.2.8.ebuild b/dev-python/cffsubr/cffsubr-0.2.8.ebuild
new file mode 100644
index 000000000..d98815a40
--- /dev/null
+++ b/dev-python/cffsubr/cffsubr-0.2.8.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_8 )
+
+inherit distutils-r1
+
+SRC_URI="https://github.com/adobe-type-tools/cffsubr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+DESCRIPTION="Standalone CFF subroutinizer based on AFDKO tx tool"
+HOMEPAGE="https://github.com/adobe-type-tools/cffsubr"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+RDEPEND="
+ >=dev-util/afdko-3.6.1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ 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.8-fix-setup-py.patch b/dev-python/cffsubr/files/cffsubr-0.2.8-fix-setup-py.patch
new file mode 100644
index 000000000..2d429c2b8
--- /dev/null
+++ b/dev-python/cffsubr/files/cffsubr-0.2.8-fix-setup-py.patch
@@ -0,0 +1,18 @@
+--- a/setup.py
++++ b//setup.py
+@@ -135,7 +135,6 @@
+ platforms=["posix", "nt"],
+ package_dir={"": "src"},
+ packages=find_packages("src"),
+- ext_modules=[tx],
+ zip_safe=False,
+ cmdclass=cmdclass,
+ install_requires=[
+@@ -145,7 +144,6 @@
+ setup_requires=[
+ "setuptools_scm",
+ # finds all git tracked files including submodules when making sdist MANIFEST
+- "setuptools-git-ls-files",
+ ],
+ extras_require={"testing": ["pytest"]},
+ python_requires=">=3.6",
diff --git a/dev-python/cffsubr/files/cffsubr-system_tx.diff b/dev-python/cffsubr/files/cffsubr-system_tx.diff
new file mode 100644
index 000000000..16c41c74c
--- /dev/null
+++ b/dev-python/cffsubr/files/cffsubr-system_tx.diff
@@ -0,0 +1,12 @@
+--- a/src/cffsubr/__init__.py
++++ b/src/cffsubr/__init__.py
+@@ -60,8 +60,7 @@ def _run_embedded_tx(*args, **kwargs):
+ subprocess.CompletedProcess object with the following attributes:
+ args, returncode, stdout, stderr.
+ """
+- with path(__name__, TX_EXE) as tx_cli:
+- return subprocess.run([str(tx_cli)] + list(args), **kwargs)
++ return subprocess.run(['tx'] + list(args), **kwargs)
+
+
+ def _tx_subroutinize(data: bytes, output_format: str = CFFTableTag.CFF) -> bytes:
diff --git a/dev-python/cffsubr/metadata.xml b/dev-python/cffsubr/metadata.xml
new file mode 100644
index 000000000..6f49eba8f
--- /dev/null
+++ b/dev-python/cffsubr/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cffsubr/files/, dev-python/cffsubr/
@ 2023-05-03 16:22 Anna Vyalkova
0 siblings, 0 replies; 2+ messages in thread
From: Anna Vyalkova @ 2023-05-03 16:22 UTC (permalink / raw
To: gentoo-commits
commit: b02cbec135e9400242ce8be7eedf8cee0ba6207b
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed May 3 16:21:01 2023 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Wed May 3 16:21:01 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b02cbec1
dev-python/cffsubr: update HOMEPAGE, SRC_URI
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/cffsubr/Manifest | 2 +-
dev-python/cffsubr/cffsubr-0.2.9_p1.ebuild | 25 ++++++++--------------
.../cffsubr/files/cffsubr-0.2.8-fix-setup-py.patch | 18 ----------------
3 files changed, 10 insertions(+), 35 deletions(-)
diff --git a/dev-python/cffsubr/Manifest b/dev-python/cffsubr/Manifest
index 98aba92a6..c9dc81469 100644
--- a/dev-python/cffsubr/Manifest
+++ b/dev-python/cffsubr/Manifest
@@ -1 +1 @@
-DIST cffsubr-0.2.9_p1.gh.tar.gz 124635 BLAKE2B c040339d113247b34195d7b7a220b449810ced52ffeea209bde2bb871c964a1da7d734c7167ece88ade03b26e722dca7f235a70326ff8c9b268b707ba5730a79 SHA512 8f1ea1fb732b772c1ac479883df6993ff2d56457c725d621bb1ebebf7a27393bb96771b9db8364513ae7f815bc74da15dd8c22695eeaf6f65d8dc62c8ae947dc
+DIST cffsubr-0.2.9.post1.tar.gz 12671095 BLAKE2B 6805fa9adaabee7236abb351b23437248c93a9a9c1f64363ca023cbe1371dd0a612e0b5823f3064c0979cb9a9ee0442a6219952ffd2384ab444a28987f416a3f SHA512 8c83001010951990d4e0dcecd1820e0f469042518c63cf82b66425c383b640f525f253b10f16ad587e9492a9aed070715d776d909ab4e897c99a22a7678f38a7
diff --git a/dev-python/cffsubr/cffsubr-0.2.9_p1.ebuild b/dev-python/cffsubr/cffsubr-0.2.9_p1.ebuild
index 94a3b83f9..9cfdc7444 100644
--- a/dev-python/cffsubr/cffsubr-0.2.9_p1.ebuild
+++ b/dev-python/cffsubr/cffsubr-0.2.9_p1.ebuild
@@ -1,17 +1,17 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_10 )
-inherit distutils-r1
+inherit distutils-r1 pypi
-MY_PV="${PV/_p/.post}"
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/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz"
-S="${WORKDIR}/${PN}-${MY_PV}"
+HOMEPAGE="
+ https://pypi.org/project/cffsubr/
+ https://github.com/adobe-type-tools/cffsubr
+"
KEYWORDS="~amd64"
LICENSE="Apache-2.0"
@@ -21,9 +21,6 @@ RDEPEND="
>=dev-python/fonttools-4.10.2[${PYTHON_USEDEP}]
>=dev-util/afdko-3.6.1[${PYTHON_USEDEP}]
"
-BDEPEND="
- dev-python/setuptools-scm[${PYTHON_USEDEP}]
-"
PATCHES=(
"${FILESDIR}/${PN}-system_tx.diff"
@@ -32,13 +29,9 @@ PATCHES=(
distutils_enable_tests pytest
-pkg_setup() {
- export SETUPTOOLS_SCM_PRETEND_VERSION="${PV%_*}"
-}
-
src_prepare() {
- default
-
# remove bundled afdko
rm -rf external || die
+
+ distutils-r1_src_prepare
}
diff --git a/dev-python/cffsubr/files/cffsubr-0.2.8-fix-setup-py.patch b/dev-python/cffsubr/files/cffsubr-0.2.8-fix-setup-py.patch
deleted file mode 100644
index 2d429c2b8..000000000
--- a/dev-python/cffsubr/files/cffsubr-0.2.8-fix-setup-py.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/setup.py
-+++ b//setup.py
-@@ -135,7 +135,6 @@
- platforms=["posix", "nt"],
- package_dir={"": "src"},
- packages=find_packages("src"),
-- ext_modules=[tx],
- zip_safe=False,
- cmdclass=cmdclass,
- install_requires=[
-@@ -145,7 +144,6 @@
- setup_requires=[
- "setuptools_scm",
- # finds all git tracked files including submodules when making sdist MANIFEST
-- "setuptools-git-ls-files",
- ],
- extras_require={"testing": ["pytest"]},
- python_requires=">=3.6",
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-03 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-19 1:15 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cffsubr/files/, dev-python/cffsubr/ Alessandro Barbieri
-- strict thread matches above, loose matches on Subject: below --
2023-05-03 16:22 Anna Vyalkova
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox