Command line utilities to convert between JSON and YAML while preserving the order of associative arrays. Preserving the mapping order is helpful to humans reading the documents, despite not affecting their meaning. WWW: https://github.com/drbild/json2yaml
22 lines
545 B
Makefile
22 lines
545 B
Makefile
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
|
|
PORTNAME= json2yaml
|
|
PORTVERSION= 1.2.0
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Convert JSON to YAML or vice versa
|
|
|
|
LICENSE= APACHE20
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docopt>=0:devel/py-docopt@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyaml>=0:textproc/py-pyaml@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR}
|
|
|
|
USES= python:3.6+
|
|
USE_PYTHON= autoplist distutils noflavors
|
|
|
|
NO_ARCH= yes
|
|
|
|
.include <bsd.port.mk>
|