Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Nov 2012 21:16:43 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307570 - in head/textproc: . jq jq/files
Message-ID:  <201211192116.qAJLGh8J043192@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Mon Nov 19 21:16:42 2012
New Revision: 307570
URL: http://svnweb.freebsd.org/changeset/ports/307570

Log:
  jq is like sed for JSON data - you can use it to slice and
  filter and map and transform structured data with the same
  ease that sed, awk, grep and friends let you play with text.
  
  WWW: http://stedolan.github.com/jq/
  
  PR:		ports/173256
  Submitted by:	Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
  Feature safe:	yes

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

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Mon Nov 19 20:53:44 2012	(r307569)
+++ head/textproc/Makefile	Mon Nov 19 21:16:42 2012	(r307570)
@@ -333,6 +333,7 @@
     SUBDIR += jdictionary
     SUBDIR += jdictionary-int-eng
     SUBDIR += jing
+    SUBDIR += jq
     SUBDIR += jrefentry
     SUBDIR += kbedic
     SUBDIR += kdiff3

Added: head/textproc/jq/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/jq/Makefile	Mon Nov 19 21:16:42 2012	(r307570)
@@ -0,0 +1,24 @@
+# Created by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
+# $FreeBSD$
+
+PORTNAME=	jq
+PORTVERSION=	1.1
+CATEGORIES=	textproc
+
+MAINTAINER=	jnlin@csie.nctu.edu.tw
+COMMENT=	Lightweight and flexible command-line JSON processor
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	stedolan
+GH_TAGNAME=	jq-${PORTVERSION}
+GH_COMMIT=	bf61e95
+
+USE_GMAKE=	yes
+USE_CSTD=	gnu99
+
+PLIST_FILES=	bin/jq
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/jq ${PREFIX}/bin
+
+.include <bsd.port.mk>

Added: head/textproc/jq/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/jq/distinfo	Mon Nov 19 21:16:42 2012	(r307570)
@@ -0,0 +1,2 @@
+SHA256 (jq-1.1.tar.gz) = 0e53d2753e40705a684f499789920f2cebfa7adfbec03a270519c25a5fc03f60
+SIZE (jq-1.1.tar.gz) = 432144

Added: head/textproc/jq/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/jq/files/patch-Makefile	Mon Nov 19 21:16:42 2012	(r307570)
@@ -0,0 +1,18 @@
+--- ./Makefile.orig	2012-11-19 22:03:44.000000000 +0100
++++ ./Makefile	2012-11-19 22:05:13.000000000 +0100
+@@ -1,4 +1,5 @@
+-CC=gcc -Wextra -Wall -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu99 -ggdb -Wno-unused-function
++CC?=gcc 
++CFLAGS?=-Wextra -Wall -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu99 -ggdb -Wno-unused-function
+ prefix=/usr/local
+ 
+ .PHONY: all clean releasedep tarball install uninstall test releasetag
+@@ -33,7 +34,7 @@
+ 	$(CC) -DJQ_DEBUG=1 -o $@ $^
+ 
+ jq: $(JQ_SRC) main.c
+-	$(CC) -O -DJQ_DEBUG=0 -o $@ $^
++	$(CC) $(CFLAGS) -DJQ_DEBUG=0 -o $@ $^
+ 
+ test: jq_test
+ 	valgrind --error-exitcode=1 -q --leak-check=full ./jq_test >/dev/null

Added: head/textproc/jq/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/jq/pkg-descr	Mon Nov 19 21:16:42 2012	(r307570)
@@ -0,0 +1,5 @@
+jq is like sed for JSON data - you can use it to slice and
+filter and map and transform structured data with the same
+ease that sed, awk, grep and friends let you play with text.
+
+WWW: http://stedolan.github.com/jq/



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