Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2013 11:44:47 -0500 (EST)
From:      Paul Chvostek <paul@it.ca>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        Paul Chvostek <paul@it.ca>
Subject:   ports/176456: NEW PORT: lang/jsawk - Command-line JSON parser
Message-ID:  <201302261644.r1QGil0c042671@mail.it.ca>
Resent-Message-ID: <201302262310.r1QNA0h9094935@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176456
>Category:       ports
>Synopsis:       NEW PORT: lang/jsawk - Command-line JSON parser
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 26 23:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Paul Chvostek
>Release:        FreeBSD 9.1-RC3 amd64
>Organization:
>Environment:
System: FreeBSD mail 9.1-RC3 FreeBSD 9.1-RC3 #0 r242324: Tue Oct 30 00:58:57 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	
>How-To-Repeat:
	
>Fix:

	

--- jsawk.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	jsawk
#	jsawk/pkg-descr
#	jsawk/Makefile
#	jsawk/distinfo
#
echo c - jsawk
mkdir -p jsawk > /dev/null 2>&1
echo x - jsawk/pkg-descr
sed 's/^X//' >jsawk/pkg-descr << '6ca9567b1a15078b8f23da23270a0f86'
XJsawk is intended to serve the purpose served by awk in the shell
Xenvironment, but instead of working with lines of text and words, it
Xworks with JavaScript objects and arrays.
X
XIt reads JSON from stdin and lets you write javascript to manipulate and
Xprint results.  You can use this as a filter to manipulate data from a
XREST JSON web service, for example, in a shell script. Note: the
Xlanguage used is javascript, not awk.
X
XIt is written in bash and uses underscore.js (run via spidermonkey).
X
XWWW: https://github.com/micha/jsawk
6ca9567b1a15078b8f23da23270a0f86
echo x - jsawk/Makefile
sed 's/^X//' >jsawk/Makefile << 'ba8e4a99e4d18c9d3984b756aba22316'
X# Created by: Paul Chvostek <paul@it.ca> on 2013-02-12
X
X# $FreeBSD$
X
XPORTNAME=	jsawk
XPORTVERSION=	1.2
XCATEGORIES=	lang textproc
X
XMAINTAINER=	paul+ports@it.ca
XCOMMENT=	Command-line (or scriptable) JSON parser
X
XRUN_DEPENDS=	js:${PORTSDIR}/lang/spidermonkey17 \
X		bash:${PORTSDIR}/shells/bash
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	micha
XGH_COMMIT=	d63736e
X
XNO_BUILD=	yes
X
XPLIST_FILES=	bin/jsawk
X
XPORTDOCS=	README.markdown
X
Xdo-install:
X.if !defined(NOPORTDOCS)
X	@${INSTALL} -d ${DOCSDIR}
X	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
X.endif
X	@${INSTALL_SCRIPT} ${WRKSRC}/jsawk ${PREFIX}/bin
X
X.include <bsd.port.mk>
ba8e4a99e4d18c9d3984b756aba22316
echo x - jsawk/distinfo
sed 's/^X//' >jsawk/distinfo << '09e17fc48e7de02668ca4846a1f272a2'
XSHA256 (jsawk-1.2.tar.gz) = 24eb747946f6aff9944410ba2aeccfbbbff2f15d4056ecbaf966d0a3739d4e3d
XSIZE (jsawk-1.2.tar.gz) = 21048
09e17fc48e7de02668ca4846a1f272a2
exit
--- jsawk.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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