print/py-ufolib2: Add JSON and MSGPACK options

This commit is contained in:
Po-Chuan Hsieh 2022-12-30 18:51:56 +08:00
parent 300f36319e
commit 922104437e
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B

View file

@ -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>