mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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
This commit is contained in:
parent
01990287b5
commit
9603f67978
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307570
5 changed files with 50 additions and 0 deletions
|
@ -333,6 +333,7 @@
|
|||
SUBDIR += jdictionary
|
||||
SUBDIR += jdictionary-int-eng
|
||||
SUBDIR += jing
|
||||
SUBDIR += jq
|
||||
SUBDIR += jrefentry
|
||||
SUBDIR += kbedic
|
||||
SUBDIR += kdiff3
|
||||
|
|
24
textproc/jq/Makefile
Normal file
24
textproc/jq/Makefile
Normal file
|
@ -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>
|
2
textproc/jq/distinfo
Normal file
2
textproc/jq/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (jq-1.1.tar.gz) = 0e53d2753e40705a684f499789920f2cebfa7adfbec03a270519c25a5fc03f60
|
||||
SIZE (jq-1.1.tar.gz) = 432144
|
18
textproc/jq/files/patch-Makefile
Normal file
18
textproc/jq/files/patch-Makefile
Normal file
|
@ -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
|
5
textproc/jq/pkg-descr
Normal file
5
textproc/jq/pkg-descr
Normal file
|
@ -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/
|
Loading…
Add table
Reference in a new issue