summaryrefslogtreecommitdiff
path: root/textproc/jo
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2016-07-26 17:29:22 +0000
committerkamil <kamil@pkgsrc.org>2016-07-26 17:29:22 +0000
commitf6d3b15db147d743692e5dbe73562432c2d3f0ea (patch)
tree154241776f46f2e536aab6ad7b448bdc80ec980d /textproc/jo
parent633739bf147eff3ee8c4d0d72c743699b639ad22 (diff)
downloadpkgsrc-f6d3b15db147d743692e5dbe73562432c2d3f0ea.tar.gz
Import jo-1.0 as textproc/jo
jo creates a JSON string on stdout from words given it as arguments or read from stdin. Without option -a it generates an object whereby each word is a key=value (or key@value) pair with key being the JSON object element and value its value. jo attempts to guess the type of value in order to create number (using strtod(3)), string, or null values in JSON. Originally packaged in pkgsrc-wip by Frederic Cambus.
Diffstat (limited to 'textproc/jo')
-rw-r--r--textproc/jo/DESCR6
-rw-r--r--textproc/jo/Makefile15
-rw-r--r--textproc/jo/PLIST3
-rw-r--r--textproc/jo/distinfo6
4 files changed, 30 insertions, 0 deletions
diff --git a/textproc/jo/DESCR b/textproc/jo/DESCR
new file mode 100644
index 00000000000..45923a3935c
--- /dev/null
+++ b/textproc/jo/DESCR
@@ -0,0 +1,6 @@
+jo creates a JSON string on stdout from words given it as arguments or
+read from stdin. Without option -a it generates an object whereby each
+word is a key=value (or key@value) pair with key being the JSON object
+element and value its value. jo attempts to guess the type of value in
+order to create number (using strtod(3)), string, or null values in
+JSON.
diff --git a/textproc/jo/Makefile b/textproc/jo/Makefile
new file mode 100644
index 00000000000..badca1200f0
--- /dev/null
+++ b/textproc/jo/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2016/07/26 17:29:22 kamil Exp $
+
+DISTNAME= jo-1.0
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=jpmens/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= fred@statdns.com
+HOMEPAGE= https://github.com/jpmens/jo
+COMMENT= JSON output from a shell
+LICENSE= gnu-gpl-v2
+
+GNU_CONFIGURE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/jo/PLIST b/textproc/jo/PLIST
new file mode 100644
index 00000000000..d90ab75b59d
--- /dev/null
+++ b/textproc/jo/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/26 17:29:22 kamil Exp $
+bin/jo
+man/man1/jo.1
diff --git a/textproc/jo/distinfo b/textproc/jo/distinfo
new file mode 100644
index 00000000000..00ee74d5f7d
--- /dev/null
+++ b/textproc/jo/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/07/26 17:29:22 kamil Exp $
+
+SHA1 (jo-1.0.tar.gz) = 2d06cf35b1dc71e5fdbe420ac4057cf508313e08
+RMD160 (jo-1.0.tar.gz) = bff13c4e4689eb85a581e7383dc38d5cbd0052b5
+SHA512 (jo-1.0.tar.gz) = bab15de7a01e9a70f43b50d0bb5eff4724bf9d38b0b56a6fff5768756073a5956e3a5a08c7a4e4a2c88107950a4c1721a09b60868b10a441c1a4c6fec7748036
+Size (jo-1.0.tar.gz) = 112488 bytes