1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

jshon parses, reads and creates JSON. It is designed to be as usable as possible

from within the shell and replaces fragile adhoc parsers made from grep/sed/awk
as well as heavyweight one-line parsers made from perl/python.

WWW: http://kmkeen.com/jshon/
This commit is contained in:
Baptiste Daroussin 2013-01-23 13:53:45 +00:00
parent 85e5d891e0
commit b7d57b373b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=310867
4 changed files with 40 additions and 0 deletions

View File

@ -336,6 +336,7 @@
SUBDIR += jing
SUBDIR += jq
SUBDIR += jrefentry
SUBDIR += jshon
SUBDIR += kbedic
SUBDIR += kdiff3
SUBDIR += kmfl-european-latin

32
textproc/jshon/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $FreeBSD$
PORTNAME= jshon
PORTVERSION= 20121210
CATEGORIES= textproc
MAINTAINER= bapt@FreeBSD.org
COMMENT= json parser for the shell.
LICENSE= MIT
LIB_DEPENDS= jansson:${PORTSDIR}/devel/jansson
USE_GMAKE= yes
USE_GITHUB= yes
GH_ACCOUNT= keenerd
GH_COMMIT= b21bc98
GH_TAGNAME= ${GH_COMMIT}
CFLAGS+= -I${LOCALBASE}/include
PLIST_FILES= bin/${PORTNAME}
MAN1= ${PORTNAME}.1
post-patch:
@${REINPLACE_CMD} -e 's,-ljansson,-L${LOCALBASE}/lib -ljansson,g' ${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
.include <bsd.port.mk>

2
textproc/jshon/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (jshon-20121210.tar.gz) = 130d6b8536dd8ea6b31394f5d5ff5e63f941f54e70b2fac68d9e0ce147b1b4db
SIZE (jshon-20121210.tar.gz) = 10712

5
textproc/jshon/pkg-descr Normal file
View File

@ -0,0 +1,5 @@
jshon parses, reads and creates JSON. It is designed to be as usable as possible
from within the shell and replaces fragile adhoc parsers made from grep/sed/awk
as well as heavyweight one-line parsers made from perl/python.
WWW: http://kmkeen.com/jshon/