git: 4d43e9f1d334 - main - sysutils/ansible: Add flavour for use with py-ansible-core219

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 22 Sep 2025 18:47:44 UTC
The branch main has been updated by cy:

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

commit 4d43e9f1d334e50a76d94718a910ceb5f89f2cd2
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-09-19 06:05:31 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-09-22 18:47:19 +0000

    sysutils/ansible: Add flavour for use with py-ansible-core219
---
 sysutils/ansible/Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/sysutils/ansible/Makefile b/sysutils/ansible/Makefile
index e57a796e815f..bff4f5988b51 100644
--- a/sysutils/ansible/Makefile
+++ b/sysutils/ansible/Makefile
@@ -11,8 +11,14 @@ WWW=		https://www.ansible.com/
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ansible-core>0:sysutils/py-ansible-core@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR}
+FLAVORS=	default core219
+
+.if ${FLAVOR:U} == core219
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ansible-core>0:sysutils/py-ansible-core219@${PY_FLAVOR}
+.else
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ansible-core>0:sysutils/py-ansible-core@${PY_FLAVOR}
+.endif
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR}
 
 USES=		ansible:env cpe python:3.10+ shebangfix
 CPE_VENDOR=	redhat