git: 9b8f7594874e - main - devel/py-dataclass-array: Update USES=python

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 14 Dec 2023 20:54:21 UTC
The branch main has been updated by sunpoet:

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

commit 9b8f7594874eb6c7552f48a37234386db788122a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-12-14 20:45:10 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-12-14 20:45:10 +0000

    devel/py-dataclass-array: Update USES=python
    
    devel/py-etils requires Python 3.10+
---
 devel/py-dataclass-array/Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/devel/py-dataclass-array/Makefile b/devel/py-dataclass-array/Makefile
index c9358bb116c5..a5b33adced74 100644
--- a/devel/py-dataclass-array/Makefile
+++ b/devel/py-dataclass-array/Makefile
@@ -20,9 +20,15 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}einops>=0:misc/py-einops@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
 
-USES=		python:3.9+
+USES=		python
 USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31000
+IGNORE=		devel/py-etils requires Python 3.10+
+.endif
+
+.include <bsd.port.post.mk>