Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Nov 2021 23:34:11 GMT
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8bf827588b7b - main - textproc/gron.awk: New port
Message-ID:  <202111072334.1A7NYBU8099442@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111072334.1A7NYBU8099442>