git: c9c6d898b71b - main - deskutils/py-khard: lift python restriction and mark BROKEN with python >= 3.12

From: Antoine Brodin <antoine_at_FreeBSD.org>
Date: Thu, 25 Jun 2026 06:41:59 UTC
The branch main has been updated by antoine:

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

commit c9c6d898b71bf819df4eb179278902630abf3f47
Author:     Antoine Brodin <antoine@FreeBSD.org>
AuthorDate: 2026-06-25 06:41:10 +0000
Commit:     Antoine Brodin <antoine@FreeBSD.org>
CommitDate: 2026-06-25 06:41:10 +0000

    deskutils/py-khard: lift python restriction and mark BROKEN with python >= 3.12
---
 deskutils/py-khard/Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/deskutils/py-khard/Makefile b/deskutils/py-khard/Makefile
index d0d1b89df081..ffd3f1c139b4 100644
--- a/deskutils/py-khard/Makefile
+++ b/deskutils/py-khard/Makefile
@@ -22,7 +22,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}configobj>=5.0.6:devel/py-configobj@${PY_FLA
 		${PYTHON_PKGNAMEPREFIX}vdirsyncer>=0:deskutils/py-vdirsyncer@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}vobject>=0.9.5:deskutils/py-vobject@${PY_FLAVOR}
 
-USES=		gmake python:3.10-3.12
+USES=		gmake python
 USE_PYTHON=	autoplist pep517
 
 NO_ARCH=	yes
@@ -55,4 +55,10 @@ post-install:
 	${INSTALL_MAN} ${WRKSRC}/doc/build/man/khard.1 ${STAGEDIR}${PREFIX}/share/man/man1
 	${INSTALL_MAN} ${WRKSRC}/doc/build/man/khard.conf.5 ${STAGEDIR}${PREFIX}/share/man/man5
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 31200
+BROKEN=		Handler <function run_autoapi at 0x2e76579a5080> for event 'builder-inited' threw an exception (exception: 'TreeRebuilder' object has no attribute 'visit_typealias')
+.endif
+
+.include <bsd.port.post.mk>