diff --git a/textproc/Makefile b/textproc/Makefile index 5a04c0348b14..0c7c8138b446 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -336,6 +336,7 @@ SUBDIR += jing SUBDIR += jq SUBDIR += jrefentry + SUBDIR += jshon SUBDIR += kbedic SUBDIR += kdiff3 SUBDIR += kmfl-european-latin diff --git a/textproc/jshon/Makefile b/textproc/jshon/Makefile new file mode 100644 index 000000000000..e6c15b4b5cd7 --- /dev/null +++ b/textproc/jshon/Makefile @@ -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 diff --git a/textproc/jshon/distinfo b/textproc/jshon/distinfo new file mode 100644 index 000000000000..73b4487f952e --- /dev/null +++ b/textproc/jshon/distinfo @@ -0,0 +1,2 @@ +SHA256 (jshon-20121210.tar.gz) = 130d6b8536dd8ea6b31394f5d5ff5e63f941f54e70b2fac68d9e0ce147b1b4db +SIZE (jshon-20121210.tar.gz) = 10712 diff --git a/textproc/jshon/pkg-descr b/textproc/jshon/pkg-descr new file mode 100644 index 000000000000..d757ef4e352b --- /dev/null +++ b/textproc/jshon/pkg-descr @@ -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/