Skip to contentSkip to conversation

jq: new package

PATCH New Danomi Manchego 2 participants 2 messages Sep 26, 2013 – Oct 27, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 jq: new package

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.

---

The package description is as per the author - not my words.

v1 -> v2: changed SITE to be more like the github example in the buildroot user manual.

---
 package/Config.in    |    1 +
 package/jq/Config.in |    8 ++++++++
 package/jq/jq.mk     |   13 +++++++++++++
 3 files changed, 22 insertions(+)
 create mode 100644 package/jq/Config.in
 create mode 100644 package/jq/jq.mk
package/Config.in +1 -0
index 1dd60d1..ce18ec7 100644
@@ -108,6 +108,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/grep/Config.in"
 endif
 source "package/intltool/Config.in"
+source "package/jq/Config.in"
 source "package/make/Config.in"
 source "package/libtool/Config.in"
 source "package/m4/Config.in"
package/jq/Config.in new file +8 -0
new file mode 100644
index 0000000..9329b2f
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_JQ
+	bool "jq"
+	help
+	  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.
+
+	  http://stedolan.github.io/jq/
package/jq/jq.mk new file +13 -0
new file mode 100644
index 0000000..59cea9c
@@ -0,0 +1,13 @@
+################################################################################
+#
+# jq
+#
+################################################################################
+
+JQ_VERSION = 1.3
+JQ_SITE = http://github.com/stedolan/jq/tarball/jq-$(JQ_VERSION)
+JQ_AUTORECONF = YES
+JQ_LICENSE = jq license
+JQ_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v2 1/1 jq: new package

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Danomi" == Danomi Manchego <[email protected]> writes:

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.

Committed with some minor changes (see below) - Thanks.

Quoted 6 lines
package/jq/jq.mk new file +0 -0
new file mode 100644
index 0000000..59cea9c

package/jq/jq.mk line 9

Quoted 9 lines
package/jq/jq.mk new file +9 -0
@@ -0,0 +1,13 @@
+################################################################################
+#
+# jq
+#
+################################################################################
+
+JQ_VERSION = 1.3
+JQ_SITE = http://github.com/stedolan/jq/tarball/jq-$(JQ_VERSION)
+JQ_AUTORECONF = YES

It uses flex/bison so you should depend on host-flex + host-bison.

package/jq/jq.mk line 10

Quoted 1 line
package/jq/jq.mk new file +1 -0
+JQ_LICENSE = jq license

The license is actually MIT for the code and CC-BY-3.0 for the documentation.

package/jq/jq.mk line 11

Quoted 1 line
package/jq/jq.mk new file +1 -0
+JQ_LICENSE_FILES = COPYING

It uses c99 syntax so we need to enforce -std=c99 in the cflags.

Signature · 1 line
Bye, Peter Korsgaard