textproc/json2yaml: Add json2yaml 1.2.0

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
This commit is contained in:
Po-Chuan Hsieh 2021-12-22 02:38:30 +08:00
parent d00b784f5f
commit 38438992ea
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
4 changed files with 33 additions and 0 deletions

View File

@ -332,6 +332,7 @@
SUBDIR += jrefentry
SUBDIR += jshon
SUBDIR += json-yaml
SUBDIR += json2yaml
SUBDIR += jtc
SUBDIR += kdiff3
SUBDIR += kepubify

View File

@ -0,0 +1,22 @@
# 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>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1638556436
SHA256 (json2yaml-1.2.0.tar.gz) = 9528db11de8a9c9f2f1d227f0c06ee9f20a589b39f14c37c4c445bd544375d46
SIZE (json2yaml-1.2.0.tar.gz) = 2989

View File

@ -0,0 +1,7 @@
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