Skip to content

Commit 512913d

Browse files
committed
www/py-legacy-cgi: import py313-legacy-cgi-2.6.1
This is a fork of the standard library modules cgi and cgitb. They were removed from the Python standard libary in Python 3.13 by PEP-594.
1 parent 1514b6b commit 512913d

4 files changed

Lines changed: 43 additions & 0 deletions

File tree

www/py-legacy-cgi/DESCR

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This is a fork of the standard library modules cgi and cgitb. They
2+
were removed from the Python standard libary in Python 3.13 by
3+
PEP-594.

www/py-legacy-cgi/Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# $NetBSD: Makefile,v 1.1 2024/11/01 00:07:59 wiz Exp $
2+
3+
DISTNAME= legacy_cgi-2.6.1
4+
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
5+
CATEGORIES= www
6+
MASTER_SITES= ${MASTER_SITE_PYPI:=l/legacy_cgi/}
7+
8+
MAINTAINER= pkgsrc-users@NetBSD.org
9+
HOMEPAGE= https://pypi.org/project/legacy_cgi/
10+
COMMENT= Fork of the standard library cgi and cgitb modules, being deprecated in PEP-594
11+
LICENSE= python-software-foundation
12+
13+
TOOL_DEPENDS+= ${PYPKGPREFIX}-poetry-core-[0-9]*:../../devel/py-poetry-core
14+
15+
USE_LANGUAGES= # none
16+
17+
REPLACE_PYTHON+= cgi.py
18+
19+
# substitute for 'cgi' in < 3.13
20+
PYTHON_VERSIONS_INCOMPATIBLE= 39 310 311 312
21+
22+
.include "../../lang/python/application.mk"
23+
.include "../../lang/python/wheel.mk"
24+
.include "../../mk/bsd.pkg.mk"

www/py-legacy-cgi/PLIST

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@comment $NetBSD: PLIST,v 1.1 2024/11/01 00:07:59 wiz Exp $
2+
${PYSITELIB}/cgi.py
3+
${PYSITELIB}/cgi.pyc
4+
${PYSITELIB}/cgi.pyo
5+
${PYSITELIB}/cgitb.py
6+
${PYSITELIB}/cgitb.pyc
7+
${PYSITELIB}/cgitb.pyo
8+
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
9+
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
10+
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
11+
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL

www/py-legacy-cgi/distinfo

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$NetBSD: distinfo,v 1.1 2024/11/01 00:07:59 wiz Exp $
2+
3+
BLAKE2s (legacy_cgi-2.6.1.tar.gz) = a3ba1e77f1b53308d4ba4726dae9c211f8f7b50a31c5754734711090416d2597
4+
SHA512 (legacy_cgi-2.6.1.tar.gz) = 584ed4c2fdf05e89944dc86dc31dd4de80efbad3e43f15e411f9eff0fabbeeaf3df757faa2a56527f61d661b6d73eb258135ab7763dd3a58c9611829c6d28cb0
5+
Size (legacy_cgi-2.6.1.tar.gz) = 24782 bytes

0 commit comments

Comments
 (0)