Mon Nov 14 13:25:08 2022 UTC ()
py-http-parser: fix build with python 3.11


(wiz)
diff -r1.8 -r1.9 pkgsrc/www/py-http-parser/Makefile

cvs diff -r1.8 -r1.9 pkgsrc/www/py-http-parser/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-http-parser/Makefile 2022/01/04 20:55:29 1.8
+++ pkgsrc/www/py-http-parser/Makefile 2022/11/14 13:25:07 1.9
@@ -1,17 +1,24 @@ @@ -1,17 +1,24 @@
1# $NetBSD: Makefile,v 1.8 2022/01/04 20:55:29 wiz Exp $ 1# $NetBSD: Makefile,v 1.9 2022/11/14 13:25:07 wiz Exp $
2 2
3DISTNAME= http-parser-0.9.0 3DISTNAME= http-parser-0.9.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5PKGREVISION= 1 5PKGREVISION= 1
6CATEGORIES= www 6CATEGORIES= www
7MASTER_SITES= ${MASTER_SITE_PYPI:=h/http-parser/} 7MASTER_SITES= ${MASTER_SITE_PYPI:=h/http-parser/}
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://github.com/benoitc/http-parser 10HOMEPAGE= https://github.com/benoitc/http-parser
11COMMENT= HTTP request/response parser 11COMMENT= HTTP request/response parser
12LICENSE= mit 12LICENSE= mit
13 13
 14TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython
 15
14USE_LANGUAGES= c 16USE_LANGUAGES= c
15 17
 18# 0.9.0 tarball is not compatible with python 3.11
 19# re-generate files with newer cython that supports python 3.11
 20post-extract:
 21 cd ${WRKSRC} && cythonize-${PYVERSSUFFIX} http_parser
 22
16.include "../../lang/python/egg.mk" 23.include "../../lang/python/egg.mk"
17.include "../../mk/bsd.pkg.mk" 24.include "../../mk/bsd.pkg.mk"