git: 45dc0ba04813 - main - www/py-gandi.cli: Mark BROKEN for python39

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=45dc0ba0481317efb8a7b6e65d6942469b1746b2

commit 45dc0ba0481317efb8a7b6e65d6942469b1746b2
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-06-25 21:16:43 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-06-25 21:17:54 +0000

    www/py-gandi.cli: Mark BROKEN for python39
    
    - Remove version-spec
    
    PR:             261703
    Reported by:    exp-run
---
 www/py-gandi.cli/Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/www/py-gandi.cli/Makefile b/www/py-gandi.cli/Makefile
index 4457f1bbaec7..16e14d683bf5 100644
--- a/www/py-gandi.cli/Makefile
+++ b/www/py-gandi.cli/Makefile
@@ -13,7 +13,7 @@ LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 DEPRECATED=	Upstream no longer continuing
-# Should be removed along with php38
+# Should be removed along with python38
 EXPIRATION_DATE=	2024-10-31
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
@@ -22,11 +22,17 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ipy>0:net-mgmt/py-ipy@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
 
-USES=		python:3.6-3.8
+USES=		python
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} > 30900
+BROKEN=		python-3.9 is not supported
+.endif
+
 do-test:
 	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs