Page MenuHomeFreeBSD

D33204.diff
No OneTemporary

D33204.diff

diff --git a/textproc/Makefile b/textproc/Makefile
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -235,6 +235,7 @@
SUBDIR += gnugrep
SUBDIR += go-md2man
SUBDIR += go-yq
+ SUBDIR += gojq
SUBDIR += goldendict
SUBDIR += google-ctemplate
SUBDIR += google-translate-cli
diff --git a/textproc/gojq/Makefile b/textproc/gojq/Makefile
new file mode 100644
--- /dev/null
+++ b/textproc/gojq/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= gojq
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.12.5
+CATEGORIES= textproc
+
+MAINTAINER= nork@ninth-nine.com
+COMMENT= Pure Go implementation of jq
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+
+GO_MODULE= github.com/itchyny/gojq
+GO_TARGET= ./cmd/gojq
+
+post-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+ ${INSTALL_DATA} ${WRKSRC}/_gojq ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
+
+.include <bsd.port.mk>
diff --git a/textproc/gojq/distinfo b/textproc/gojq/distinfo
new file mode 100644
--- /dev/null
+++ b/textproc/gojq/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1638309443
+SHA256 (go/textproc_gojq/gojq-v0.12.5/v0.12.5.mod) = a6e12fbe75a18ef3fbbc01fdc7e9e03b74def733c07994fe49d4d36d330b8fad
+SIZE (go/textproc_gojq/gojq-v0.12.5/v0.12.5.mod) = 352
+SHA256 (go/textproc_gojq/gojq-v0.12.5/v0.12.5.zip) = 920d40767ef6dd675d0f35cfa882cf8a5ad4dcc8818bee0f1869cab994d3b6d5
+SIZE (go/textproc_gojq/gojq-v0.12.5/v0.12.5.zip) = 145577
diff --git a/textproc/gojq/pkg-descr b/textproc/gojq/pkg-descr
new file mode 100644
--- /dev/null
+++ b/textproc/gojq/pkg-descr
@@ -0,0 +1,4 @@
+gojq is an implementation of the jq command written in Go.
+You can also embed gojq as a library to your Go products.
+
+WWW: https://github.com/itchyny/gojq
diff --git a/textproc/gojq/pkg-plist b/textproc/gojq/pkg-plist
new file mode 100644
--- /dev/null
+++ b/textproc/gojq/pkg-plist
@@ -0,0 +1,2 @@
+bin/gojq
+share/zsh/site-functions/_gojq

File Metadata

Mime Type
text/plain
Expires
Mon, Sep 23, 1:13 PM (20 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12542678
Default Alt Text
D33204.diff (1 KB)

Event Timeline