git: 38438992ead4 - main - textproc/json2yaml: Add json2yaml 1.2.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Dec 2021 19:41:03 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=38438992ead4a504a0e3184d364e948b26c53a14
commit 38438992ead4a504a0e3184d364e948b26c53a14
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-12-21 18:38:30 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-12-21 18:38:30 +0000
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
---
textproc/Makefile | 1 +
textproc/json2yaml/Makefile | 22 ++++++++++++++++++++++
textproc/json2yaml/distinfo | 3 +++
textproc/json2yaml/pkg-descr | 7 +++++++
4 files changed, 33 insertions(+)
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