git: add3775c5fa4 - main - www/py-legacy-cgi: Add py-legacy-cgi 2.6.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 03 Feb 2025 15:55:55 UTC
The branch main has been updated by sunpoet:

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

commit add3775c5fa4c8d90846429f65e91af9d7b5571e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-02-03 15:12:22 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-02-03 15:50:43 +0000

    www/py-legacy-cgi: Add py-legacy-cgi 2.6.2
    
    This is a fork of the standard library modules cgi and cgitb. They are slated to
    be removed from the Python standard libary in Python 3.13 by PEP-594.
---
 www/Makefile                |  1 +
 www/py-legacy-cgi/Makefile  | 24 ++++++++++++++++++++++++
 www/py-legacy-cgi/distinfo  |  3 +++
 www/py-legacy-cgi/pkg-descr |  2 ++
 4 files changed, 30 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 64a90ffce017..57c863375ac7 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1777,6 +1777,7 @@
     SUBDIR += py-jsonfield
     SUBDIR += py-kiss-headers
     SUBDIR += py-laces
+    SUBDIR += py-legacy-cgi
     SUBDIR += py-lektor
     SUBDIR += py-lesscpy
     SUBDIR += py-libsass
diff --git a/www/py-legacy-cgi/Makefile b/www/py-legacy-cgi/Makefile
new file mode 100644
index 000000000000..a90b717bd91d
--- /dev/null
+++ b/www/py-legacy-cgi/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	legacy-cgi
+PORTVERSION=	2.6.2
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	legacy_cgi-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Fork of the standard library cgi and cgitb modules
+WWW=		https://github.com/jackrosenthal/legacy-cgi
+
+LICENSE=	PSFL
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+
+USES=		python:3.10+ shebangfix
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+SHEBANG_FILES=	cgi.py
+
+.include <bsd.port.mk>
diff --git a/www/py-legacy-cgi/distinfo b/www/py-legacy-cgi/distinfo
new file mode 100644
index 000000000000..0ed520e37171
--- /dev/null
+++ b/www/py-legacy-cgi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1738088816
+SHA256 (legacy_cgi-2.6.2.tar.gz) = 9952471ceb304043b104c22d00b4f333cac27a6abe446d8a528fc437cf13c85f
+SIZE (legacy_cgi-2.6.2.tar.gz) = 24794
diff --git a/www/py-legacy-cgi/pkg-descr b/www/py-legacy-cgi/pkg-descr
new file mode 100644
index 000000000000..a64ed278928d
--- /dev/null
+++ b/www/py-legacy-cgi/pkg-descr
@@ -0,0 +1,2 @@
+This is a fork of the standard library modules cgi and cgitb. They are slated to
+be removed from the Python standard libary in Python 3.13 by PEP-594.