commit:     18b925ef71da8d9dfe7f60572306957829cdb6b0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 29 04:04:44 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 29 04:13:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18b925ef

dev-python/backports-tarfile: Bump to 1.2.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/backports-tarfile/Manifest              |  1 +
 .../backports-tarfile-1.2.0.ebuild                 | 46 ++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/dev-python/backports-tarfile/Manifest 
b/dev-python/backports-tarfile/Manifest
index 0f072e067214..be902a026e69 100644
--- a/dev-python/backports-tarfile/Manifest
+++ b/dev-python/backports-tarfile/Manifest
@@ -1 +1,2 @@
 DIST backports_tarfile-1.1.1.tar.gz 84734 BLAKE2B 
7691aaf4bd66e6fd6ad32dc9f4c4c51887ab502d302dae4931c72076b97d55b7646a716fd0dcd04dfc955a8dbf195d3804800b79375ecac1631fd633aefe2d12
 SHA512 
59ff0f6d78a0b4b2d868026a2f82375a7bfa3b1a09a96c0d6eaf0620c99ec379c22e12e6222677ca9c430349d40714f265ad879390789d63b8d322a31a7c1923
+DIST backports_tarfile-1.2.0.tar.gz 86406 BLAKE2B 
20ba5dd91c609b6d7a32b8d489bae5f0d29af83d86c187a8b73e95e3fee034a07469fdfd90fc6c6e96b532b2acbf37ba9e01bdae019ca148d3a668762599fa6d
 SHA512 
8f57526e9aabf7f778e876dab06dd7a476316bb02e9eadd703da3ba74f3b8b0c12338a32fbcb033d477a1a1ff115653a2292b730bfded208c9efb21506bc23d4

diff --git a/dev-python/backports-tarfile/backports-tarfile-1.2.0.ebuild 
b/dev-python/backports-tarfile/backports-tarfile-1.2.0.ebuild
new file mode 100644
index 000000000000..1b84f6535e26
--- /dev/null
+++ b/dev-python/backports-tarfile/backports-tarfile-1.2.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYPI_PN=${PN/-/.}
+# This is a backport from Python 3.12.
+PYTHON_COMPAT=( pypy3 python3_{10..11} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Backport of CPython tarfile module (from Python 3.12)"
+HOMEPAGE="
+       https://github.com/jaraco/backports.tarfile/
+       https://pypi.org/project/backports.tarfile/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+
+BDEPEND="
+       test? (
+               dev-python/jaraco-test[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+src_configure() {
+       grep -q 'build-backend = "setuptools' pyproject.toml ||
+               die "Upstream changed build-backend, recheck"
+       # write a custom pyproject.toml to ease setuptools bootstrap
+       cat > pyproject.toml <<-EOF || die
+               [build-system]
+               requires = ["flit_core >=3.2,<4"]
+               build-backend = "flit_core.buildapi"
+
+               [project]
+               name = "backports.tarfile"
+               version = "${PV}"
+               description = "Backport of CPython tarfile module"
+       EOF
+}

Reply via email to