From nobody Tue Dec 21 19:41:03 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6AA921900180; Tue, 21 Dec 2021 19:41:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JJRdq5n97z4xHB; Tue, 21 Dec 2021 19:41:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 62BFE7826; Tue, 21 Dec 2021 19:41:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BLJf3M8022189; Tue, 21 Dec 2021 19:41:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BLJf3V9022188; Tue, 21 Dec 2021 19:41:03 GMT (envelope-from git) Date: Tue, 21 Dec 2021 19:41:03 GMT Message-Id: <202112211941.1BLJf3V9022188@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 38438992ead4 - main - textproc/json2yaml: Add json2yaml 1.2.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 38438992ead4a504a0e3184d364e948b26c53a14 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640115664; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GULRJAC8SAAog94dAM5Jt0eK2vBJ6biATXIa5RYf2/4=; b=VwS8vvkvoyt02LILuYj38v9Yu1Gqi3raszAtHBnvl9NQYsI/cAaV+F6wSW1talCMgbGr4Z QM+Q5Zdt0mXqQWOxvcbjcwOpk4rak5mDHiHif/j7mjOsUg3BRg2kMXM/cXXxB43Bfkqcci u1vTjPp6KK7MOCblk1YFElHfR1aAYBPPCX39e29Hf4F8ulMeAM4n1hFr0t/jL5xmWottaj oA/hyVHYXr0r4mFv7/HUrLxz+fNoWO+6ZolyglTcDaQM+iQb4teKSfOJgWlwAmwIRq+1a6 1Ond1fQGiQrFZkmtoIU+294NBmZcwEYv7RQvi5BDH5OiDlu86ti7Qy+yusbG0g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640115664; a=rsa-sha256; cv=none; b=ZpdXy7xzCZd37rHQSlLf5yMjdF4jb6juFwnq4gP1J1a/Q4jMp49/rFA1z+VRkkfMMHDG+s yMCk3RUNYEBfSvTX1QpTZ7s34rHoNBDPDjPZP8D6rXbH2huBS0dwVWr5rw4vdbX0BRRF76 yN5o2ZRNGPDKyWb0k7RD1PL2qHAhsYAAZ7AOLaAL5lG1wDeQ4V4yBkUhGnm/FtcU5wVp9O U2H1JG1Dgt6XKlBNXfsqYznnlBjrs/dkqhjHDzkPy7BYD/uNzSErNMsxwIEUYYruG139uW zb+fDSBfAAJ6aFYa2aQlCM0Ca9LtoIJiFVEbtUNw3D5k9c/XPdCeIZnea1KbHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=38438992ead4a504a0e3184d364e948b26c53a14 commit 38438992ead4a504a0e3184d364e948b26c53a14 Author: Po-Chuan Hsieh AuthorDate: 2021-12-21 18:38:30 +0000 Commit: Po-Chuan Hsieh 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 + +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 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