diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-12-21 18:38:30 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-12-21 18:38:30 +0000 |
| commit | 38438992ead4a504a0e3184d364e948b26c53a14 (patch) | |
| tree | 6667e26d5612d237133a99123fff7ab559e74755 | |
| parent | d00b784f5fd42c80574c4ba1e11a4eb79e2ec0e3 (diff) | |
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
| -rw-r--r-- | textproc/Makefile | 1 | ||||
| -rw-r--r-- | textproc/json2yaml/Makefile | 22 | ||||
| -rw-r--r-- | textproc/json2yaml/distinfo | 3 | ||||
| -rw-r--r-- | textproc/json2yaml/pkg-descr | 7 |
4 files changed, 33 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index fe93b345cede..d430f2735896 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -332,6 +332,7 @@ SUBDIR += jrefentry SUBDIR += jshon SUBDIR += json-yaml + SUBDIR += json2yaml SUBDIR += jtc SUBDIR += kdiff3 SUBDIR += kepubify diff --git a/textproc/json2yaml/Makefile b/textproc/json2yaml/Makefile new file mode 100644 index 000000000000..7fd2a5b5d94e --- /dev/null +++ b/textproc/json2yaml/Makefile @@ -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> diff --git a/textproc/json2yaml/distinfo b/textproc/json2yaml/distinfo new file mode 100644 index 000000000000..85f17acc8aa2 --- /dev/null +++ b/textproc/json2yaml/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1638556436 +SHA256 (json2yaml-1.2.0.tar.gz) = 9528db11de8a9c9f2f1d227f0c06ee9f20a589b39f14c37c4c445bd544375d46 +SIZE (json2yaml-1.2.0.tar.gz) = 2989 diff --git a/textproc/json2yaml/pkg-descr b/textproc/json2yaml/pkg-descr new file mode 100644 index 000000000000..40b2e8eea0fe --- /dev/null +++ b/textproc/json2yaml/pkg-descr @@ -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 |
