git: 06ae81597b62 - main - databases/py-carbon: Mark BROKEN for python39

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 25 Jun 2022 21:18:08 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=06ae81597b621cb16e2529fa6cc189ed97350bf5

commit 06ae81597b621cb16e2529fa6cc189ed97350bf5
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-06-25 20:43:41 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-06-25 21:17:52 +0000

    databases/py-carbon: Mark BROKEN for python39
    
    - Remove version-spec
    
    PR:             261703
    Reported by:    exp-run
---
 databases/py-carbon/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/databases/py-carbon/Makefile b/databases/py-carbon/Makefile
index 999b324715a3..07f8edf147e4 100644
--- a/databases/py-carbon/Makefile
+++ b/databases/py-carbon/Makefile
@@ -18,7 +18,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cachetools>=1.1.0:devel/py-cachetools@${PY_F
 		${PYTHON_PKGNAMEPREFIX}urllib3>=0:net/py-urllib3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}whisper>=0.9.10:databases/py-whisper@${PY_FLAVOR}
 
-USES=		python:3.5-3.8
+USES=		python
 USE_GITHUB=	yes
 GH_ACCOUNT=	graphite-project
 USE_PYTHON=	distutils py3kplist
@@ -29,6 +29,12 @@ MAKE_ENV=	GRAPHITE_NO_PREFIX=yes
 NO_ARCH=	yes
 SUB_LIST=	PYTHON_CMD=${PYTHON_CMD}
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} > 30900
+BROKEN=		Python-3.9 is not supported
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/setup.py