Thu Apr 25 09:10:26 2013 UTC ()
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.
(jperkin)
diff -r0 -r1.1 pkgsrc/devel/jq/DESCR
diff -r0 -r1.1 pkgsrc/devel/jq/Makefile
diff -r0 -r1.1 pkgsrc/devel/jq/PLIST
diff -r0 -r1.1 pkgsrc/devel/jq/distinfo
diff -r0 -r1.1 pkgsrc/devel/jq/patches/patch-Makefile
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.
# $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"
@comment $NetBSD: PLIST,v 1.1 2013/04/25 09:10:26 jperkin Exp $
bin/jq
$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
$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 && \