diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2012-11-19 21:16:42 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2012-11-19 21:16:42 +0000 |
commit | 9603f67978e26f80bc2cf1535d5c22f48c70f404 (patch) | |
tree | a6202ef6102b8b3dfa6f4b4df587680ecc99196f /textproc | |
parent | Bazaar Fast Import is a plugin providing fast loading of revision control data (diff) |
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
Notes
Notes:
svn path=/head/; revision=307570
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/jq/Makefile | 24 | ||||
-rw-r--r-- | textproc/jq/distinfo | 2 | ||||
-rw-r--r-- | textproc/jq/files/patch-Makefile | 18 | ||||
-rw-r--r-- | textproc/jq/pkg-descr | 5 |
5 files changed, 50 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index b6b337476abe..df79bb4828d3 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -333,6 +333,7 @@ SUBDIR += jdictionary SUBDIR += jdictionary-int-eng SUBDIR += jing + SUBDIR += jq SUBDIR += jrefentry SUBDIR += kbedic SUBDIR += kdiff3 diff --git a/textproc/jq/Makefile b/textproc/jq/Makefile new file mode 100644 index 000000000000..f88ba1a41b65 --- /dev/null +++ b/textproc/jq/Makefile @@ -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> diff --git a/textproc/jq/distinfo b/textproc/jq/distinfo new file mode 100644 index 000000000000..9fe078e5f5b8 --- /dev/null +++ b/textproc/jq/distinfo @@ -0,0 +1,2 @@ +SHA256 (jq-1.1.tar.gz) = 0e53d2753e40705a684f499789920f2cebfa7adfbec03a270519c25a5fc03f60 +SIZE (jq-1.1.tar.gz) = 432144 diff --git a/textproc/jq/files/patch-Makefile b/textproc/jq/files/patch-Makefile new file mode 100644 index 000000000000..50a38bfeff36 --- /dev/null +++ b/textproc/jq/files/patch-Makefile @@ -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 diff --git a/textproc/jq/pkg-descr b/textproc/jq/pkg-descr new file mode 100644 index 000000000000..d08a6ea8c595 --- /dev/null +++ b/textproc/jq/pkg-descr @@ -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/ |