git: 399486c657b0 - 2022Q3 - devel/py-click: add missing dependency for python < 3.10
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Jul 2022 09:27:41 UTC
The branch 2022Q3 has been updated by pi:
URL: https://cgit.FreeBSD.org/ports/commit/?id=399486c657b0053ddc7c41b985aaecf6d134ecee
commit 399486c657b0053ddc7c41b985aaecf6d134ecee
Author: Michael Osipov <michael.osipov@siemens.com>
AuthorDate: 2022-07-28 09:16:44 +0000
Commit: Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2022-07-28 09:27:23 +0000
devel/py-click: add missing dependency for python < 3.10
- see https://docs.python.org/3/library/importlib.metadata.html
PR: 264043
Approved: robak (maintainer timeout)
(cherry picked from commit 631cbf11b6594c79aaa85f97d4cdc27f4d65a66b)
---
devel/py-click/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/devel/py-click/Makefile b/devel/py-click/Makefile
index ddcc9574f1ab..830f3106bf22 100644
--- a/devel/py-click/Makefile
+++ b/devel/py-click/Makefile
@@ -2,6 +2,7 @@
PORTNAME= click
PORTVERSION= 8.0.3
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -22,4 +23,10 @@ NO_ARCH= yes
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -p no:warnings
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31000
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.6.0:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>