aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2022-02-24 21:32:21 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2022-02-24 21:32:21 +0000
commite82a86500202c1503cbc837f290a3324200493dc (patch)
tree8166923c6ab196a784f3f4e5a57d3ee82b66f460
parent841b31956b17be5f159d70f763780e0f79c2e273 (diff)
downloadports-e82a86500202c1503cbc837f290a3324200493dc.tar.gz
ports-e82a86500202c1503cbc837f290a3324200493dc.zip
Add textproc/jless: Command-line JSON viewer
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/jless/Makefile91
-rw-r--r--textproc/jless/distinfo139
-rw-r--r--textproc/jless/pkg-descr15
4 files changed, 246 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index cdb9b9089fa6..9b6d6815c70b 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -326,6 +326,7 @@
SUBDIR += jdictionary-int-eng
SUBDIR += jid
SUBDIR += jing
+ SUBDIR += jless
SUBDIR += jo
SUBDIR += jq
SUBDIR += jql
diff --git a/textproc/jless/Makefile b/textproc/jless/Makefile
new file mode 100644
index 000000000000..0de4f5d6cab9
--- /dev/null
+++ b/textproc/jless/Makefile
@@ -0,0 +1,91 @@
+PORTNAME= jless
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.7.2
+CATEGORIES= textproc
+
+MAINTAINER= lwhsu@FreeBSD.org
+COMMENT= Command-line JSON viewer
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= cargo
+
+USE_GITHUB= yes
+GH_ACCOUNT= PaulJuliusMartinez
+
+CARGO_CRATES= aho-corasick-0.7.18 \
+ atty-0.2.14 \
+ autocfg-1.0.1 \
+ beef-0.5.1 \
+ bitflags-1.2.1 \
+ cc-1.0.69 \
+ cfg-if-0.1.10 \
+ cfg-if-1.0.0 \
+ clap-3.0.14 \
+ clap_derive-3.0.14 \
+ clipboard-win-4.2.1 \
+ dirs-next-2.0.0 \
+ dirs-sys-next-0.1.2 \
+ endian-type-0.1.2 \
+ error-code-2.3.0 \
+ fd-lock-3.0.0 \
+ fnv-1.0.7 \
+ getrandom-0.2.3 \
+ hashbrown-0.11.2 \
+ heck-0.4.0 \
+ hermit-abi-0.1.18 \
+ indexmap-1.8.0 \
+ isatty-0.1.9 \
+ lazy_static-1.4.0 \
+ libc-0.2.99 \
+ libc-stdhandle-0.1.0 \
+ log-0.4.14 \
+ logos-0.12.0 \
+ logos-derive-0.12.0 \
+ memchr-2.4.1 \
+ memoffset-0.6.4 \
+ nibble_vec-0.1.0 \
+ nix-0.22.1 \
+ numtoa-0.1.0 \
+ os_str_bytes-6.0.0 \
+ proc-macro-error-1.0.4 \
+ proc-macro-error-attr-1.0.4 \
+ proc-macro2-1.0.36 \
+ quote-1.0.9 \
+ radix_trie-0.2.1 \
+ redox_syscall-0.1.57 \
+ redox_syscall-0.2.6 \
+ redox_termios-0.1.2 \
+ redox_users-0.4.0 \
+ regex-1.5.4 \
+ regex-syntax-0.6.25 \
+ rustyline-9.0.0 \
+ scopeguard-1.1.0 \
+ signal-hook-0.3.8 \
+ signal-hook-registry-1.3.0 \
+ smallvec-1.6.1 \
+ str-buf-1.0.5 \
+ strsim-0.10.0 \
+ syn-1.0.86 \
+ termcolor-1.1.2 \
+ termion-1.5.6 \
+ textwrap-0.14.2 \
+ unicode-segmentation-1.7.1 \
+ unicode-width-0.1.8 \
+ unicode-xid-0.2.1 \
+ utf8-ranges-1.0.4 \
+ utf8parse-0.2.0 \
+ version_check-0.9.3 \
+ wasi-0.10.2+wasi-snapshot-preview1 \
+ winapi-0.3.9 \
+ winapi-i686-pc-windows-gnu-0.4.0 \
+ winapi-util-0.1.5 \
+ winapi-x86_64-pc-windows-gnu-0.4.0
+
+PLIST_FILES= bin/jless
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/jless
+
+.include <bsd.port.mk>
diff --git a/textproc/jless/distinfo b/textproc/jless/distinfo
new file mode 100644
index 000000000000..8c8a5900ed5d
--- /dev/null
+++ b/textproc/jless/distinfo
@@ -0,0 +1,139 @@
+TIMESTAMP = 1645737128
+SHA256 (rust/crates/aho-corasick-0.7.18.crate) = 1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f
+SIZE (rust/crates/aho-corasick-0.7.18.crate) = 112923
+SHA256 (rust/crates/atty-0.2.14.crate) = d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8
+SIZE (rust/crates/atty-0.2.14.crate) = 5470
+SHA256 (rust/crates/autocfg-1.0.1.crate) = cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a
+SIZE (rust/crates/autocfg-1.0.1.crate) = 12908
+SHA256 (rust/crates/beef-0.5.1.crate) = bed554bd50246729a1ec158d08aa3235d1b69d94ad120ebe187e28894787e736
+SIZE (rust/crates/beef-0.5.1.crate) = 15177
+SHA256 (rust/crates/bitflags-1.2.1.crate) = cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693
+SIZE (rust/crates/bitflags-1.2.1.crate) = 16745
+SHA256 (rust/crates/cc-1.0.69.crate) = e70cc2f62c6ce1868963827bd677764c62d07c3d9a3e1fb1177ee1a9ab199eb2
+SIZE (rust/crates/cc-1.0.69.crate) = 56044
+SHA256 (rust/crates/cfg-if-0.1.10.crate) = 4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822
+SIZE (rust/crates/cfg-if-0.1.10.crate) = 7933
+SHA256 (rust/crates/cfg-if-1.0.0.crate) = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd
+SIZE (rust/crates/cfg-if-1.0.0.crate) = 7934
+SHA256 (rust/crates/clap-3.0.14.crate) = b63edc3f163b3c71ec8aa23f9bd6070f77edbf3d1d198b164afa90ff00e4ec62
+SIZE (rust/crates/clap-3.0.14.crate) = 191513
+SHA256 (rust/crates/clap_derive-3.0.14.crate) = 9a1132dc3944b31c20dd8b906b3a9f0a5d0243e092d59171414969657ac6aa85
+SIZE (rust/crates/clap_derive-3.0.14.crate) = 25314
+SHA256 (rust/crates/clipboard-win-4.2.1.crate) = 4e4ea1881992efc993e4dc50a324cdbd03216e41bdc8385720ff47efc9bd2ca8
+SIZE (rust/crates/clipboard-win-4.2.1.crate) = 12142
+SHA256 (rust/crates/dirs-next-2.0.0.crate) = b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1
+SIZE (rust/crates/dirs-next-2.0.0.crate) = 11689
+SHA256 (rust/crates/dirs-sys-next-0.1.2.crate) = 4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d
+SIZE (rust/crates/dirs-sys-next-0.1.2.crate) = 10681
+SHA256 (rust/crates/endian-type-0.1.2.crate) = c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d
+SIZE (rust/crates/endian-type-0.1.2.crate) = 2340
+SHA256 (rust/crates/error-code-2.3.0.crate) = b5115567ac25674e0043e472be13d14e537f37ea8aa4bdc4aef0c89add1db1ff
+SIZE (rust/crates/error-code-2.3.0.crate) = 5327
+SHA256 (rust/crates/fd-lock-3.0.0.crate) = b8806dd91a06a7a403a8e596f9bfbfb34e469efbc363fc9c9713e79e26472e36
+SIZE (rust/crates/fd-lock-3.0.0.crate) = 13313
+SHA256 (rust/crates/fnv-1.0.7.crate) = 3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1
+SIZE (rust/crates/fnv-1.0.7.crate) = 11266
+SHA256 (rust/crates/getrandom-0.2.3.crate) = 7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753
+SIZE (rust/crates/getrandom-0.2.3.crate) = 26261
+SHA256 (rust/crates/hashbrown-0.11.2.crate) = ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e
+SIZE (rust/crates/hashbrown-0.11.2.crate) = 85713
+SHA256 (rust/crates/heck-0.4.0.crate) = 2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9
+SIZE (rust/crates/heck-0.4.0.crate) = 11161
+SHA256 (rust/crates/hermit-abi-0.1.18.crate) = 322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c
+SIZE (rust/crates/hermit-abi-0.1.18.crate) = 9936
+SHA256 (rust/crates/indexmap-1.8.0.crate) = 282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223
+SIZE (rust/crates/indexmap-1.8.0.crate) = 52583
+SHA256 (rust/crates/isatty-0.1.9.crate) = e31a8281fc93ec9693494da65fbf28c0c2aa60a2eaec25dc58e2f31952e95edc
+SIZE (rust/crates/isatty-0.1.9.crate) = 8009
+SHA256 (rust/crates/lazy_static-1.4.0.crate) = e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646
+SIZE (rust/crates/lazy_static-1.4.0.crate) = 10443
+SHA256 (rust/crates/libc-0.2.99.crate) = a7f823d141fe0a24df1e23b4af4e3c7ba9e5966ec514ea068c93024aa7deb765
+SIZE (rust/crates/libc-0.2.99.crate) = 524997
+SHA256 (rust/crates/libc-stdhandle-0.1.0.crate) = 6dac2473dc28934c5e0b82250dab231c9d3b94160d91fe9ff483323b05797551
+SIZE (rust/crates/libc-stdhandle-0.1.0.crate) = 2254
+SHA256 (rust/crates/log-0.4.14.crate) = 51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710
+SIZE (rust/crates/log-0.4.14.crate) = 34582
+SHA256 (rust/crates/logos-0.12.0.crate) = 427e2abca5be13136da9afdbf874e6b34ad9001dd70f2b103b083a85daa7b345
+SIZE (rust/crates/logos-0.12.0.crate) = 8849
+SHA256 (rust/crates/logos-derive-0.12.0.crate) = 56a7d287fd2ac3f75b11f19a1c8a874a7d55744bd91f7a1b3e7cf87d4343c36d
+SIZE (rust/crates/logos-derive-0.12.0.crate) = 32455
+SHA256 (rust/crates/memchr-2.4.1.crate) = 308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a
+SIZE (rust/crates/memchr-2.4.1.crate) = 64977
+SHA256 (rust/crates/memoffset-0.6.4.crate) = 59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9
+SIZE (rust/crates/memoffset-0.6.4.crate) = 7664
+SHA256 (rust/crates/nibble_vec-0.1.0.crate) = 77a5d83df9f36fe23f0c3648c6bbb8b0298bb5f1939c8f2704431371f4b84d43
+SIZE (rust/crates/nibble_vec-0.1.0.crate) = 11796
+SHA256 (rust/crates/nix-0.22.1.crate) = e7555d6c7164cc913be1ce7f95cbecdabda61eb2ccd89008524af306fb7f5031
+SIZE (rust/crates/nix-0.22.1.crate) = 227166
+SHA256 (rust/crates/numtoa-0.1.0.crate) = b8f8bdf33df195859076e54ab11ee78a1b208382d3a26ec40d142ffc1ecc49ef
+SIZE (rust/crates/numtoa-0.1.0.crate) = 8999
+SHA256 (rust/crates/os_str_bytes-6.0.0.crate) = 8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64
+SIZE (rust/crates/os_str_bytes-6.0.0.crate) = 21046
+SHA256 (rust/crates/proc-macro-error-1.0.4.crate) = da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c
+SIZE (rust/crates/proc-macro-error-1.0.4.crate) = 25293
+SHA256 (rust/crates/proc-macro-error-attr-1.0.4.crate) = a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869
+SIZE (rust/crates/proc-macro-error-attr-1.0.4.crate) = 7971
+SHA256 (rust/crates/proc-macro2-1.0.36.crate) = c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029
+SIZE (rust/crates/proc-macro2-1.0.36.crate) = 41411
+SHA256 (rust/crates/quote-1.0.9.crate) = c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7
+SIZE (rust/crates/quote-1.0.9.crate) = 25042
+SHA256 (rust/crates/radix_trie-0.2.1.crate) = c069c179fcdc6a2fe24d8d18305cf085fdbd4f922c041943e203685d6a1c58fd
+SIZE (rust/crates/radix_trie-0.2.1.crate) = 251366
+SHA256 (rust/crates/redox_syscall-0.1.57.crate) = 41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce
+SIZE (rust/crates/redox_syscall-0.1.57.crate) = 17087
+SHA256 (rust/crates/redox_syscall-0.2.6.crate) = 8270314b5ccceb518e7e578952f0b72b88222d02e8f77f5ecf7abbb673539041
+SIZE (rust/crates/redox_syscall-0.2.6.crate) = 23631
+SHA256 (rust/crates/redox_termios-0.1.2.crate) = 8440d8acb4fd3d277125b4bd01a6f38aee8d814b3b5fc09b3f2b825d37d3fe8f
+SIZE (rust/crates/redox_termios-0.1.2.crate) = 3268
+SHA256 (rust/crates/redox_users-0.4.0.crate) = 528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64
+SIZE (rust/crates/redox_users-0.4.0.crate) = 13023
+SHA256 (rust/crates/regex-1.5.4.crate) = d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461
+SIZE (rust/crates/regex-1.5.4.crate) = 236581
+SHA256 (rust/crates/regex-syntax-0.6.25.crate) = f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b
+SIZE (rust/crates/regex-syntax-0.6.25.crate) = 293293
+SHA256 (rust/crates/rustyline-9.0.0.crate) = 790487c3881a63489ae77126f57048b42d62d3b2bafbf37453ea19eedb6340d6
+SIZE (rust/crates/rustyline-9.0.0.crate) = 98953
+SHA256 (rust/crates/scopeguard-1.1.0.crate) = d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd
+SIZE (rust/crates/scopeguard-1.1.0.crate) = 11470
+SHA256 (rust/crates/signal-hook-0.3.8.crate) = ef33d6d0cd06e0840fba9985aab098c147e67e05cee14d412d3345ed14ff30ac
+SIZE (rust/crates/signal-hook-0.3.8.crate) = 49468
+SHA256 (rust/crates/signal-hook-registry-1.3.0.crate) = 16f1d0fef1604ba8f7a073c7e701f213e056707210e9020af4528e0101ce11a6
+SIZE (rust/crates/signal-hook-registry-1.3.0.crate) = 17786
+SHA256 (rust/crates/smallvec-1.6.1.crate) = fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e
+SIZE (rust/crates/smallvec-1.6.1.crate) = 26444
+SHA256 (rust/crates/str-buf-1.0.5.crate) = d44a3643b4ff9caf57abcee9c2c621d6c03d9135e0d8b589bd9afb5992cb176a
+SIZE (rust/crates/str-buf-1.0.5.crate) = 3852
+SHA256 (rust/crates/strsim-0.10.0.crate) = 73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623
+SIZE (rust/crates/strsim-0.10.0.crate) = 11355
+SHA256 (rust/crates/syn-1.0.86.crate) = 8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b
+SIZE (rust/crates/syn-1.0.86.crate) = 235126
+SHA256 (rust/crates/termcolor-1.1.2.crate) = 2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4
+SIZE (rust/crates/termcolor-1.1.2.crate) = 17287
+SHA256 (rust/crates/termion-1.5.6.crate) = 077185e2eac69c3f8379a4298e1e07cd36beb962290d4a51199acf0fdc10607e
+SIZE (rust/crates/termion-1.5.6.crate) = 22677
+SHA256 (rust/crates/textwrap-0.14.2.crate) = 0066c8d12af8b5acd21e00547c3797fde4e8677254a7ee429176ccebbe93dd80
+SIZE (rust/crates/textwrap-0.14.2.crate) = 52016
+SHA256 (rust/crates/unicode-segmentation-1.7.1.crate) = bb0d2e7be6ae3a5fa87eed5fb451aff96f2573d2694942e40543ae0bbe19c796
+SIZE (rust/crates/unicode-segmentation-1.7.1.crate) = 93066
+SHA256 (rust/crates/unicode-width-0.1.8.crate) = 9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3
+SIZE (rust/crates/unicode-width-0.1.8.crate) = 16732
+SHA256 (rust/crates/unicode-xid-0.2.1.crate) = f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564
+SIZE (rust/crates/unicode-xid-0.2.1.crate) = 14392
+SHA256 (rust/crates/utf8-ranges-1.0.4.crate) = b4ae116fef2b7fea257ed6440d3cfcff7f190865f170cdad00bb6465bf18ecba
+SIZE (rust/crates/utf8-ranges-1.0.4.crate) = 8575
+SHA256 (rust/crates/utf8parse-0.2.0.crate) = 936e4b492acfd135421d8dca4b1aa80a7bfc26e702ef3af710e0752684df5372
+SIZE (rust/crates/utf8parse-0.2.0.crate) = 13392
+SHA256 (rust/crates/version_check-0.9.3.crate) = 5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe
+SIZE (rust/crates/version_check-0.9.3.crate) = 12547
+SHA256 (rust/crates/wasi-0.10.2+wasi-snapshot-preview1.crate) = fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6
+SIZE (rust/crates/wasi-0.10.2+wasi-snapshot-preview1.crate) = 27505
+SHA256 (rust/crates/winapi-0.3.9.crate) = 5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419
+SIZE (rust/crates/winapi-0.3.9.crate) = 1200382
+SHA256 (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.crate) = ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6
+SIZE (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.crate) = 2918815
+SHA256 (rust/crates/winapi-util-0.1.5.crate) = 70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178
+SIZE (rust/crates/winapi-util-0.1.5.crate) = 10164
+SHA256 (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f
+SIZE (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 2947998
+SHA256 (PaulJuliusMartinez-jless-v0.7.2_GH0.tar.gz) = 5d776cb6488743ccdaeeffb4bfc54d84862028170cee852a8bb5c156526ed263
+SIZE (PaulJuliusMartinez-jless-v0.7.2_GH0.tar.gz) = 3397918
diff --git a/textproc/jless/pkg-descr b/textproc/jless/pkg-descr
new file mode 100644
index 000000000000..1d016add645d
--- /dev/null
+++ b/textproc/jless/pkg-descr
@@ -0,0 +1,15 @@
+JLess is a command-line JSON viewer designed for reading, exploring, and
+searching through JSON data.
+
+JLess will pretty print your JSON and apply syntax highlighting. Use it when
+exploring external APIs, or debugging request payloads.
+
+Expand and collapse Objects and Arrays to grasp the high- and low-level
+structure of a JSON document. JLess has a large suite of vim-inspired commands
+that make exploring data a breeze.
+
+JLess supports full text regular-expression based search. Quickly find the data
+you're looking for in long String values, or jump between values for the same
+Object key.
+
+WWW: https://jless.io