git: 922f4a85e95b - 2022Q4 - net/py-trio: Add missing dependency

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Mon, 14 Nov 2022 15:11:24 UTC
The branch 2022Q4 has been updated by ehaupt:

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

commit 922f4a85e95bccf9e0524ab37bf8e694ae0919c4
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2022-11-14 15:09:51 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2022-11-14 15:10:31 +0000

    net/py-trio: Add missing dependency
    
    Add missing dependency (exceptiongroup), backported from python 3.11.
    
    PR:             267133
    Reported by:    parv.0zero9+freebsd@gmail.com
    
    (cherry picked from commit ee1cad90ea2430c6148eed8c11e841a4360b5e03)
---
 net/py-trio/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/net/py-trio/Makefile b/net/py-trio/Makefile
index d25644936b4d..9f876308b10e 100644
--- a/net/py-trio/Makefile
+++ b/net/py-trio/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	trio
 PORTVERSION=	0.22.0
+PORTREVISION=	1
 CATEGORIES=	net python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -33,7 +34,14 @@ USE_PYTHON=	autoplist distutils
 
 NO_ARCH=	yes
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31100
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}exceptiongroup>=1.0.0rc9:devel/py-exceptiongroup@${PY_FLAVOR}
+TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}exceptiongroup>=1.0.0rc9:devel/py-exceptiongroup@${PY_FLAVOR}
+.endif
+
 do-test:
 	@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>