pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/py-http-parser



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Nov 14 13:25:08 UTC 2022

Modified Files:
        pkgsrc/www/py-http-parser: Makefile

Log Message:
py-http-parser: fix build with python 3.11


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/www/py-http-parser/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-http-parser/Makefile
diff -u pkgsrc/www/py-http-parser/Makefile:1.8 pkgsrc/www/py-http-parser/Makefile:1.9
--- pkgsrc/www/py-http-parser/Makefile:1.8      Tue Jan  4 20:55:29 2022
+++ pkgsrc/www/py-http-parser/Makefile  Mon Nov 14 13:25:07 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2022/01/04 20:55:29 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2022/11/14 13:25:07 wiz Exp $
 
 DISTNAME=      http-parser-0.9.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -11,7 +11,14 @@ HOMEPAGE=    https://github.com/benoitc/htt
 COMMENT=       HTTP request/response parser
 LICENSE=       mit
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython
+
 USE_LANGUAGES= c
 
+# 0.9.0 tarball is not compatible with python 3.11
+# re-generate files with newer cython that supports python 3.11
+post-extract:
+       cd ${WRKSRC} && cythonize-${PYVERSSUFFIX} http_parser
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index