From nobody Sun Nov 07 23:34:11 2021 X-Original-To: dev-commits-ports-main@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 BCFCC1849804; Sun, 7 Nov 2021 23:34:11 +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 4HnVv74yjgz4gM6; Sun, 7 Nov 2021 23:34:11 +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 8A25A26DD6; Sun, 7 Nov 2021 23:34:11 +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 1A7NYBBs099443; Sun, 7 Nov 2021 23:34:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1A7NYBU8099442; Sun, 7 Nov 2021 23:34:11 GMT (envelope-from git) Date: Sun, 7 Nov 2021 23:34:11 GMT Message-Id: <202111072334.1A7NYBU8099442@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 8bf827588b7b - main - textproc/gron.awk: New port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8bf827588b7b124849f47347e2f9034f427ad91f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/ports/commit/?id=8bf827588b7b124849f47347e2f9034f427ad91f commit 8bf827588b7b124849f47347e2f9034f427ad91f Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2021-11-05 13:50:35 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2021-11-07 23:33:53 +0000 textproc/gron.awk: New port gron.awk transforms JSON into discrete assignments to make it easier to grep for fields and to see absolute paths of those. It is reasonably fast with Gawk/Mawk/GoAWK even on large-ish files. Slow with BWK on big JSON files (100K+). WWW: https://github.com/xonixx/gron.awk --- textproc/Makefile | 1 + textproc/gron.awk/Makefile | 23 +++++++++++++++++++++++ textproc/gron.awk/distinfo | 3 +++ textproc/gron.awk/pkg-descr | 9 +++++++++ 4 files changed, 36 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 07fc5eba7f36..511588d8fdb6 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -244,6 +244,7 @@ SUBDIR += greple SUBDIR += groff SUBDIR += gron + SUBDIR += gron.awk SUBDIR += groonga SUBDIR += gsed SUBDIR += gspell diff --git a/textproc/gron.awk/Makefile b/textproc/gron.awk/Makefile new file mode 100644 index 000000000000..1013f3dfb6d3 --- /dev/null +++ b/textproc/gron.awk/Makefile @@ -0,0 +1,23 @@ +PORTNAME= gron.awk +DISTVERSIONPREFIX= v +DISTVERSION= 0.0.1 +CATEGORIES= textproc + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= AWK implementation of gron, a JSON-to-greppable-text transformer + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= xonixx + +NO_ARCH= yes +NO_BUILD= yes + +PLIST_FILES= bin/${PORTNAME} + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/ + +.include diff --git a/textproc/gron.awk/distinfo b/textproc/gron.awk/distinfo new file mode 100644 index 000000000000..c403c2f44c74 --- /dev/null +++ b/textproc/gron.awk/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1636119044 +SHA256 (xonixx-gron.awk-v0.0.1_GH0.tar.gz) = 4b1b9d02192d1543d0b3d9054587c7c5cb8ca2efef0beb7a5953f8294ec4a022 +SIZE (xonixx-gron.awk-v0.0.1_GH0.tar.gz) = 218664 diff --git a/textproc/gron.awk/pkg-descr b/textproc/gron.awk/pkg-descr new file mode 100644 index 000000000000..c58fb554ad85 --- /dev/null +++ b/textproc/gron.awk/pkg-descr @@ -0,0 +1,9 @@ +Make JSON greppable! + +gron.awk transforms JSON into discrete assignments to make it easier to grep +for fields and to see absolute paths of those. + +It is reasonably fast with Gawk/Mawk/GoAWK even on large-ish files. Slow with +BWK on big JSON files (100K+). + +WWW: https://github.com/xonixx/gron.awk