py-wtforms: fix build with Python 3.12

This commit is contained in:
wiz 2024-03-06 21:39:44 +00:00
parent a1daa88e4f
commit 5e4e20badf
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2024/03/06 21:25:50 wiz Exp $
# $NetBSD: Makefile,v 1.20 2024/03/06 21:39:44 wiz Exp $
DISTNAME= wtforms-3.1.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@ -19,6 +19,12 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27
USE_LANGUAGES= # empty
.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} > 311
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools
.endif
post-extract:
${FIND} ${WRKSRC} -type f -exec ${CHMOD} -x {} \;