aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-02-03 15:12:22 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-02-03 15:50:43 +0000
commitadd3775c5fa4c8d90846429f65e91af9d7b5571e (patch)
treeae0453a2350d6b7b88ea97abc814930a642ee550
parent22fcd914debb594d1daa5f79355ed5f5d8c0be45 (diff)
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.
-rw-r--r--www/Makefile1
-rw-r--r--www/py-legacy-cgi/Makefile24
-rw-r--r--www/py-legacy-cgi/distinfo3
-rw-r--r--www/py-legacy-cgi/pkg-descr2
4 files changed, 30 insertions, 0 deletions
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.