summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-04-25 09:10:26 +0000
committerjperkin <jperkin@pkgsrc.org>2013-04-25 09:10:26 +0000
commit830dcbf621a4aef9a778ea0608db749f9c872ee9 (patch)
tree18195c534cc9e5f0e32db6685227569c7f60d1fe
parent7245740fedbfb9dac221b6bd96fdb8f5d55b1fd2 (diff)
downloadpkgsrc-830dcbf621a4aef9a778ea0608db749f9c872ee9.tar.gz
Import jq-1.1 as devel/jq into pkgsrc.
jq is a lightweight and flexible command-line JSON processor. 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.
-rw-r--r--devel/jq/DESCR5
-rw-r--r--devel/jq/Makefile21
-rw-r--r--devel/jq/PLIST2
-rw-r--r--devel/jq/distinfo6
-rw-r--r--devel/jq/patches/patch-Makefile22
5 files changed, 56 insertions, 0 deletions
diff --git a/devel/jq/DESCR b/devel/jq/DESCR
new file mode 100644
index 00000000000..6b9e9fd9ec6
--- /dev/null
+++ b/devel/jq/DESCR
@@ -0,0 +1,5 @@
+jq is a lightweight and flexible command-line JSON processor.
+
+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.
diff --git a/devel/jq/Makefile b/devel/jq/Makefile
new file mode 100644
index 00000000000..7486a44b542
--- /dev/null
+++ b/devel/jq/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2013/04/25 09:10:26 jperkin Exp $
+
+DISTNAME= jq-1.1
+CATEGORIES= devel
+MASTER_SITES= -https://github.com/stedolan/jq/tarball/${DISTNAME}/
+
+MAINTAINER= jperkin@joyent.com
+HOMEPAGE= http://github.com/stedolan/jq/
+COMMENT= Command-line JSON processor
+LICENSE= mit
+
+FETCH_USING= curl
+
+WRKSRC= ${WRKDIR}/stedolan-jq-bf61e95
+
+USE_LANGUAGES= c99
+USE_TOOLS+= gmake
+
+NO_CONFIGURE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/jq/PLIST b/devel/jq/PLIST
new file mode 100644
index 00000000000..dcb6b57446b
--- /dev/null
+++ b/devel/jq/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2013/04/25 09:10:26 jperkin Exp $
+bin/jq
diff --git a/devel/jq/distinfo b/devel/jq/distinfo
new file mode 100644
index 00000000000..4b8bd538bf7
--- /dev/null
+++ b/devel/jq/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2013/04/25 09:10:26 jperkin Exp $
+
+SHA1 (jq-1.1.tar.gz) = a0b170faae0e79c2fcd3a9117ae109572cb9f443
+RMD160 (jq-1.1.tar.gz) = a43eb7e0b50db18708998a1538bfa81d59d8e64d
+Size (jq-1.1.tar.gz) = 432144 bytes
+SHA1 (patch-Makefile) = 41e1adee783b10b526e8a4d2a8614d4b9cfe9942
diff --git a/devel/jq/patches/patch-Makefile b/devel/jq/patches/patch-Makefile
new file mode 100644
index 00000000000..1bfb52e94e9
--- /dev/null
+++ b/devel/jq/patches/patch-Makefile
@@ -0,0 +1,22 @@
+$NetBSD: patch-Makefile,v 1.1 2013/04/25 09:10:26 jperkin Exp $
+
+pkgsrc-ify.
+
+--- Makefile.orig 2012-10-21 22:26:31.000000000 +0000
++++ Makefile
+@@ -1,4 +1,3 @@
+-CC=gcc -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
+@@ -51,8 +50,8 @@ docs/content/2.download/source/jq.tgz: j
+ tarball: docs/content/2.download/source/jq.tgz
+
+ install: jq
+- install -d -m 0755 $(prefix)/bin
+- install -m 0755 jq $(prefix)/bin
++ ${BSD_INSTALL_PROGRAM_DIR} $(DESTDIR)$(PREFIX)/bin
++ ${BSD_INSTALL_PROGRAM} jq $(DESTDIR)$(PREFIX)/bin/jq
+
+ uninstall:
+ test -d $(prefix)/bin && \