diff --git a/devel/py-importlib-metadata/Makefile b/devel/py-importlib-metadata/Makefile index 461323b77c3d..7b11902560c9 100644 --- a/devel/py-importlib-metadata/Makefile +++ b/devel/py-importlib-metadata/Makefile @@ -1,31 +1,38 @@ PORTNAME= importlib-metadata -PORTVERSION= 6.0.0 +DISTVERSION= 6.0.0 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= importlib_metadata-${PORTVERSION} MAINTAINER= swills@FreeBSD.org COMMENT= Read metadata from Python packages WWW= https://github.com/python/importlib_metadata LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=56:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}zipp>=0.5:devel/py-zipp@${PY_FLAVOR} USES= python:3.6+ -USE_PYTHON= pep517 autoplist pytest +USE_PYTHON= distutils autoplist pytest NO_ARCH= yes .include .if ${PYTHON_REL} < 30800 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.6.4:devel/py-typing-extensions@${PY_FLAVOR} .endif +pre-configure: # importlib-metadata introduces circular dependency when built with USE_PYTHON=pep517, see bug#269363 + @( \ + ${ECHO} "from setuptools import setup" && \ + ${ECHO} "setup()" \ + ) > ${WRKSRC}/setup.py + .include