git: 9e4bbaa48bff - main - devel/py-backports.tarfile: Add py-backports.tarfile 1.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 08 Apr 2024 20:17:55 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9e4bbaa48bff12bb0898748c969f37ba7483f01b

commit 9e4bbaa48bff12bb0898748c969f37ba7483f01b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-08 20:07:35 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-08 20:16:39 +0000

    devel/py-backports.tarfile: Add py-backports.tarfile 1.0.0
    
    backports.tarfile is the backport of CPython tarfile module for Python 3.11 or
    below.
---
 devel/Makefile                       |  1 +
 devel/py-backports.tarfile/Makefile  | 23 +++++++++++++++++++++++
 devel/py-backports.tarfile/distinfo  |  3 +++
 devel/py-backports.tarfile/pkg-descr |  2 ++
 4 files changed, 29 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 0eeb99d916cc..500362cdfe56 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4417,6 +4417,7 @@
     SUBDIR += py-backports.cached-property
     SUBDIR += py-backports.csv
     SUBDIR += py-backports.entry-points-selectable
+    SUBDIR += py-backports.tarfile
     SUBDIR += py-backports.zoneinfo
     SUBDIR += py-banal
     SUBDIR += py-bandit
diff --git a/devel/py-backports.tarfile/Makefile b/devel/py-backports.tarfile/Makefile
new file mode 100644
index 000000000000..4fc365d9f80c
--- /dev/null
+++ b/devel/py-backports.tarfile/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	backports.tarfile
+PORTVERSION=	1.0.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Backport of CPython tarfile module
+WWW=		https://github.com/jaraco/backports.tarfile
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=56:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4.1:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-backports.tarfile/distinfo b/devel/py-backports.tarfile/distinfo
new file mode 100644
index 000000000000..89fc12b1ce29
--- /dev/null
+++ b/devel/py-backports.tarfile/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1712580496
+SHA256 (backports.tarfile-1.0.0.tar.gz) = 2688f159c21afd56a07b75f01306f9f52c79aebcc5f4a117fb8fbb4445352c75
+SIZE (backports.tarfile-1.0.0.tar.gz) = 32952
diff --git a/devel/py-backports.tarfile/pkg-descr b/devel/py-backports.tarfile/pkg-descr
new file mode 100644
index 000000000000..d4006e2c610b
--- /dev/null
+++ b/devel/py-backports.tarfile/pkg-descr
@@ -0,0 +1,2 @@
+backports.tarfile is the backport of CPython tarfile module for Python 3.11 or
+below.