Skip to content

Commit bcba90c

Browse files
feat(ports): add jq
Signed-off-by: Anhad Singh <[email protected]>
1 parent 83924ea commit bcba90c

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

bootstrap.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ imports:
55
- file: bootstrap/vcs.yml
66
- file: bootstrap/db.yml
77
- file: bootstrap/editors.yml
8+
- file: bootstrap/app-misc.yml
89

910
general:
1011
cargo:

bootstrap/app-misc.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
packages:
2+
# A lightweight and flexible command-line JSON processor
3+
- name: jq
4+
source:
5+
url: 'https://github.com/jqlang/jq/releases/download/jq-1.7/jq-1.7.tar.gz'
6+
format: 'tar.gz'
7+
version: '1.7'
8+
subdir: 'bundled'
9+
patch-path-strip: 0
10+
tools_required:
11+
- host-autoconf-v2.69
12+
- host-automake-v1.16
13+
- host-libtool
14+
- host-gcc
15+
pkgs_required:
16+
- mlibc
17+
configure:
18+
- args:
19+
- '@THIS_SOURCE_DIR@/jq-1.7/configure'
20+
- '--disable-docs'
21+
- '--disable-valgrind'
22+
- '--disable-maintainer-mode'
23+
- '--with-oniguruma=builtin'
24+
- '--host=x86_64-aero'
25+
- '--prefix=/usr'
26+
- '--with-sysroot=@SYSROOT_DIR@' # Set libtool's lt_sysroot.
27+
build:
28+
- args: ['make', '-j@PARALLELISM@']
29+
- args: ['make', 'install']
30+
environ:
31+
DESTDIR: '@THIS_COLLECT_DIR@'

patches/jq/jq.patch

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
diff -crB jq-1.7-orig/config/config.sub jq-1.7/config/config.sub
2+
*** jq-1.7-orig/config/config.sub 2023-11-04 14:43:08.915178973 +1100
3+
--- jq-1.7/config/config.sub 2023-11-04 14:43:43.691560304 +1100
4+
***************
5+
*** 1754,1760 ****
6+
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
7+
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
8+
| nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
9+
! | fiwix* )
10+
;;
11+
# This one is extra strict with allowed versions
12+
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
13+
--- 1754,1760 ----
14+
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
15+
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
16+
| nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
17+
! | fiwix* | aero* )
18+
;;
19+
# This one is extra strict with allowed versions
20+
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
21+
diff -crB jq-1.7-orig/modules/oniguruma/config.sub jq-1.7/modules/oniguruma/config.sub
22+
*** jq-1.7-orig/modules/oniguruma/config.sub 2023-11-04 14:43:08.921845585 +1100
23+
--- jq-1.7/modules/oniguruma/config.sub 2023-11-04 14:44:17.544620423 +1100
24+
***************
25+
*** 1722,1728 ****
26+
| skyos* | haiku* | rdos* | toppers* | drops* | es* \
27+
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
28+
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
29+
! | nsk* | powerunix* | genode* | zvmoe* )
30+
;;
31+
# This one is extra strict with allowed versions
32+
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
33+
--- 1722,1728 ----
34+
| skyos* | haiku* | rdos* | toppers* | drops* | es* \
35+
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
36+
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
37+
! | nsk* | powerunix* | genode* | zvmoe* | aero* )
38+
;;
39+
# This one is extra strict with allowed versions
40+
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)

0 commit comments

Comments
 (0)