git: 922104437ef2 - main - print/py-ufolib2: Add JSON and MSGPACK options

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 30 Dec 2022 10:54:15 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=922104437ef2df858a9266e846924215e04caacb

commit 922104437ef2df858a9266e846924215e04caacb
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-12-30 10:51:56 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-12-30 10:51:56 +0000

    print/py-ufolib2: Add JSON and MSGPACK options
---
 print/py-ufolib2/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/print/py-ufolib2/Makefile b/print/py-ufolib2/Makefile
index e70d46086308..36f615e012ee 100644
--- a/print/py-ufolib2/Makefile
+++ b/print/py-ufolib2/Makefile
@@ -20,12 +20,17 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-OPTIONS_DEFINE=	CONVERTERS LXML
+OPTIONS_DEFINE=	CONVERTERS JSON LXML MSGPACK
 CONVERTERS_DESC=Converters support
 LXML_DESC=	XML support
+MSGPACK_DESC=	MessagePack support
 
 CONVERTERS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cattrs>=1.10.0:devel/py-cattrs@${PY_FLAVOR}
+JSON_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cattrs>=22.2.0:devel/py-cattrs@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}orjson>=0:devel/py-orjson@${PY_FLAVOR}
 LXML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR}
+MSGPACK_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cattrs>=22.2.0:devel/py-cattrs@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${PY_FLAVOR}
 
 .include <bsd.port.pre.mk>