diff options
author | pawel <pawel@FreeBSD.org> | 2012-11-20 05:16:42 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2012-11-20 05:16:42 +0800 |
commit | 43b6f345d47893f210f72e6345f360cc454a9edb (patch) | |
tree | a6202ef6102b8b3dfa6f4b4df587680ecc99196f /textproc/jq | |
parent | c8061cf38a372d61a2a5affb4bdc13b100481fd0 (diff) | |
download | freebsd-ports-gnome-43b6f345d47893f210f72e6345f360cc454a9edb.tar.gz freebsd-ports-gnome-43b6f345d47893f210f72e6345f360cc454a9edb.tar.zst freebsd-ports-gnome-43b6f345d47893f210f72e6345f360cc454a9edb.zip |
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
Diffstat (limited to 'textproc/jq')
-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 |
4 files changed, 49 insertions, 0 deletions
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/ |