diff --git a/devel/py-pep517/Makefile b/devel/py-pep517/Makefile index 814a6db978af..2203ded09ee1 100644 --- a/devel/py-pep517/Makefile +++ b/devel/py-pep517/Makefile @@ -1,29 +1,32 @@ PORTNAME= pep517 PORTVERSION= 0.13.0 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Wrappers to build Python packages using PEP 517 hooks LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= python:3.7+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes .include .if ${PYTHON_REL} < 30800 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}zipp>=0:devel/py-zipp@${PY_FLAVOR} .endif .if ${PYTHON_REL} < 31100 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=1.1.0:textproc/py-tomli@${PY_FLAVOR} .endif +post-patch: + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + .include