git: 2211c50a41e9 - main - sysutils/ansible: Support ansible-galaxy install from community

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Wed, 11 Oct 2023 14:14:57 UTC
The branch main has been updated by cy:

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

commit 2211c50a41e91d490ee24cacdd496dccccfbc3ad
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-10-11 14:04:26 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-10-11 14:14:51 +0000

    sysutils/ansible: Support ansible-galaxy install from community
    
    Fix:
    
    Starting galaxy collection install process
    ERROR! importlib_resources is not installed and is required
    
    Please add devel/py-importlib-resources as a dependency when installing
    Ansible, and perhaps also for the ansible-compat and ansible-core packages?
    
    PR:     274408
---
 sysutils/ansible/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sysutils/ansible/Makefile b/sysutils/ansible/Makefile
index ee8ac5e1f297..44709e463257 100644
--- a/sysutils/ansible/Makefile
+++ b/sysutils/ansible/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	ansible
 DISTVERSION=	8.4.0
+PORTREVISION=	1
 CATEGORIES=	sysutils python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,7 +12,8 @@ WWW=		https://www.ansible.com/
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ansible-core>0:sysutils/py-ansible-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ansible-core>0:sysutils/py-ansible-core@${PY_FLAVOR} \
+		 ${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources
 
 USES=		ansible:env cpe python:3.9+ shebangfix
 CPE_VENDOR=	redhat