Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2013 13:53:45 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r310867 - in head/textproc: . jshon
Message-ID:  <201301231353.r0NDrkn0017548@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Jan 23 13:53:45 2013
New Revision: 310867
URL: http://svnweb.freebsd.org/changeset/ports/310867

Log:
  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/

Added:
  head/textproc/jshon/
  head/textproc/jshon/Makefile   (contents, props changed)
  head/textproc/jshon/distinfo   (contents, props changed)
  head/textproc/jshon/pkg-descr   (contents, props changed)
Modified:
  head/textproc/Makefile

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Wed Jan 23 13:52:48 2013	(r310866)
+++ head/textproc/Makefile	Wed Jan 23 13:53:45 2013	(r310867)
@@ -336,6 +336,7 @@
     SUBDIR += jing
     SUBDIR += jq
     SUBDIR += jrefentry
+    SUBDIR += jshon
     SUBDIR += kbedic
     SUBDIR += kdiff3
     SUBDIR += kmfl-european-latin

Added: head/textproc/jshon/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/jshon/Makefile	Wed Jan 23 13:53:45 2013	(r310867)
@@ -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>

Added: head/textproc/jshon/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/jshon/distinfo	Wed Jan 23 13:53:45 2013	(r310867)
@@ -0,0 +1,2 @@
+SHA256 (jshon-20121210.tar.gz) = 130d6b8536dd8ea6b31394f5d5ff5e63f941f54e70b2fac68d9e0ce147b1b4db
+SIZE (jshon-20121210.tar.gz) = 10712

Added: head/textproc/jshon/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/jshon/pkg-descr	Wed Jan 23 13:53:45 2013	(r310867)
@@ -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/



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