From b8917940d758077026087192f7fcdb428760c4cc Mon Sep 17 00:00:00 2001 From: jperkin Date: Thu, 25 Apr 2013 09:10:26 +0000 Subject: Import jq-1.1 as devel/jq into pkgsrc. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- devel/jq/DESCR | 5 +++++ devel/jq/Makefile | 21 +++++++++++++++++++++ devel/jq/PLIST | 2 ++ devel/jq/distinfo | 6 ++++++ devel/jq/patches/patch-Makefile | 22 ++++++++++++++++++++++ 5 files changed, 56 insertions(+) create mode 100644 devel/jq/DESCR create mode 100644 devel/jq/Makefile create mode 100644 devel/jq/PLIST create mode 100644 devel/jq/distinfo create mode 100644 devel/jq/patches/patch-Makefile (limited to 'devel/jq') 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 && \ -- cgit v1.2.3