git: 39752ba2c6a4 - main - www/radicale: Fix dependencies and add options for optional dependencies

From: Bernhard Froehlich <decke_at_FreeBSD.org>
Date: Fri, 25 Jul 2025 11:28:51 UTC
The branch main has been updated by decke:

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

commit 39752ba2c6a4400b29452390d4405b344bb59d31
Author:     Bernhard Froehlich <decke@FreeBSD.org>
AuthorDate: 2025-07-25 11:21:03 +0000
Commit:     Bernhard Froehlich <decke@FreeBSD.org>
CommitDate: 2025-07-25 11:21:03 +0000

    www/radicale: Fix dependencies and add options for optional dependencies
    
    Reported by:    Wout Decre <wout@canodus.be>
---
 www/radicale/Makefile | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/www/radicale/Makefile b/www/radicale/Makefile
index 0549aee57ab0..daf794be5b77 100644
--- a/www/radicale/Makefile
+++ b/www/radicale/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	radicale
 PORTVERSION=	3.5.4
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,13 +14,12 @@ LICENSE_FILE=	${WRKSRC}/COPYING.md
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \
 		${PY_SETUPTOOLS}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bcrypt>=0:security/py-bcrypt@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}passlib>=0:security/py-passlib@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}defusedxml>0:devel/py-defusedxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}passlib>0:security/py-passlib@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}vobject>=0.9.6:deskutils/py-vobject@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.7.3:devel/py-python-dateutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pika>=1.1.0:devel/py-pika@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}defusedxml>0:devel/py-defusedxml@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ldap3>0:net/py-ldap3@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.7.3:devel/py-python-dateutil@${PY_FLAVOR}
 
 USES=		cpe python
 USE_PYTHON=	autoplist pep517
@@ -28,6 +28,15 @@ GROUPS=		radicale
 USE_RC_SUBR=	radicale
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=	ARGON2 BCRYPT LDAP
+OPTIONS_DEFAULT=	ARGON2 BCRYPT LDAP
+
+ARGON2_DESC=	argon2 support for password hashes
+ARGON2_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}argon2-cffi>0:security/py-argon2-cffi@${PY_FLAVOR}
+BCRYPT_DESC=	bcrypt support for password hashes
+BCRYPT_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bcrypt>0:security/py-bcrypt@${PY_FLAVOR}
+LDAP_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ldap3>0:net/py-ldap3@${PY_FLAVOR}
+
 SUB_LIST=	USERS="${USERS}" GROUPS="${GROUPS}" PYTHON_CMD="${PYTHON_CMD}"
 
 post-patch: