git: 786b1966fa6c - main - devel/py-unidep: Add PIP_COMPILE, RICH and TOML options

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 16 Jul 2024 15:41:16 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=786b1966fa6c8f20b3979ac2b3c86aeecbe784ac

commit 786b1966fa6c8f20b3979ac2b3c86aeecbe784ac
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-16 15:38:55 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-16 15:38:55 +0000

    devel/py-unidep: Add PIP_COMPILE, RICH and TOML options
---
 devel/py-unidep/Makefile | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/devel/py-unidep/Makefile b/devel/py-unidep/Makefile
index df42452903c4..eecdc9567383 100644
--- a/devel/py-unidep/Makefile
+++ b/devel/py-unidep/Makefile
@@ -22,4 +22,18 @@ USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+OPTIONS_DEFINE=	PIP_COMPILE RICH TOML
+OPTIONS_DEFAULT=TOML
+PIP_COMPILE_DESC=	pip-compile integration
+RICH_DESC=		Help formatter via rich
+
+PIP_COMPILE_RUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}pip-tools>=0:devel/py-pip-tools@${PY_FLAVOR}
+RICH_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}rich-argparse>=0:devel/py-rich-argparse@${PY_FLAVOR}
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MTOML} && ${PYTHON_REL} < 31100
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>