git: 7bdaf82dfdd2 - main - converters/yj-bruceadams: Add new port

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Sat, 27 Nov 2021 19:08:12 UTC
The branch main has been updated by 0mp:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7bdaf82dfdd2cb5da24b71c663ed29f6dcb1b4fa

commit 7bdaf82dfdd2cb5da24b71c663ed29f6dcb1b4fa
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2021-11-27 18:59:03 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2021-11-27 19:08:04 +0000

    converters/yj-bruceadams: Add new port
    
    Simple command line tool to convert a YAML input file into a JSON output file.
    
    WWW: https://github.com/bruceadams/yj
---
 converters/Makefile                |   1 +
 converters/yj-bruceadams/Makefile  |  76 +++++++++++++++++++++++++
 converters/yj-bruceadams/distinfo  | 113 +++++++++++++++++++++++++++++++++++++
 converters/yj-bruceadams/pkg-descr |   3 +
 4 files changed, 193 insertions(+)

diff --git a/converters/Makefile b/converters/Makefile
index 4fa5d12f9d09..35de0a964209 100644
--- a/converters/Makefile
+++ b/converters/Makefile
@@ -175,6 +175,7 @@
     SUBDIR += xdeview
     SUBDIR += xml2c
     SUBDIR += yj
+    SUBDIR += yj-bruceadams
     SUBDIR += ytnef
 
 .include <bsd.port.subdir.mk>
diff --git a/converters/yj-bruceadams/Makefile b/converters/yj-bruceadams/Makefile
new file mode 100644
index 000000000000..7cd263e66a63
--- /dev/null
+++ b/converters/yj-bruceadams/Makefile
@@ -0,0 +1,76 @@
+PORTNAME=	yj
+DISTVERSION=	1.1.34
+CATEGORIES=	converters textproc
+PKGNAMESUFFIX=	-${GH_ACCOUNT}
+
+MAINTAINER=	0mp@FreeBSD.org
+COMMENT=	Command line tool that converts YAML to JSON
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cargo
+USE_GITHUB=	yes
+GH_ACCOUNT=	bruceadams
+CARGO_CRATES=	addr2line-0.16.0 \
+		adler-1.0.2 \
+		atty-0.2.14 \
+		autocfg-1.0.1 \
+		backtrace-0.3.62 \
+		bitflags-1.3.2 \
+		cc-1.0.71 \
+		cfg-if-1.0.0 \
+		clap-3.0.0-beta.5 \
+		clap_derive-3.0.0-beta.5 \
+		doc-comment-0.3.3 \
+		dtoa-0.4.8 \
+		exitfailure-0.5.1 \
+		failure-0.1.8 \
+		failure_derive-0.1.8 \
+		gimli-0.25.0 \
+		hashbrown-0.11.2 \
+		heck-0.3.3 \
+		hermit-abi-0.1.19 \
+		indexmap-1.7.0 \
+		itoa-0.4.8 \
+		lazy_static-1.4.0 \
+		libc-0.2.106 \
+		linked-hash-map-0.5.4 \
+		memchr-2.4.1 \
+		miniz_oxide-0.4.4 \
+		object-0.27.1 \
+		os_str_bytes-4.2.0 \
+		proc-macro-error-1.0.4 \
+		proc-macro-error-attr-1.0.4 \
+		proc-macro2-1.0.32 \
+		quote-1.0.10 \
+		rustc-demangle-0.1.21 \
+		ryu-1.0.5 \
+		serde-1.0.130 \
+		serde_json-1.0.68 \
+		serde_yaml-0.8.21 \
+		snafu-0.6.10 \
+		snafu-derive-0.6.10 \
+		strsim-0.10.0 \
+		syn-1.0.81 \
+		synstructure-0.12.6 \
+		termcolor-1.1.2 \
+		terminal_size-0.1.17 \
+		textwrap-0.14.2 \
+		unicase-2.6.0 \
+		unicode-segmentation-1.8.0 \
+		unicode-width-0.1.9 \
+		unicode-xid-0.2.2 \
+		version_check-0.9.3 \
+		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 \
+		yaml-rust-0.4.5
+
+PLIST_FILES=	bin/yj
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/converters/yj-bruceadams/distinfo b/converters/yj-bruceadams/distinfo
new file mode 100644
index 000000000000..ae8c77fe6d88
--- /dev/null
+++ b/converters/yj-bruceadams/distinfo
@@ -0,0 +1,113 @@
+TIMESTAMP = 1638039316
+SHA256 (rust/crates/addr2line-0.16.0.crate) = 3e61f2b7f93d2c7d2b08263acaa4a363b3e276806c68af6134c44f523bf1aacd
+SIZE (rust/crates/addr2line-0.16.0.crate) = 33440
+SHA256 (rust/crates/adler-1.0.2.crate) = f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe
+SIZE (rust/crates/adler-1.0.2.crate) = 12778
+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/backtrace-0.3.62.crate) = 091bcdf2da9950f96aa522681ce805e6857f6ca8df73833d35736ab2dc78e152
+SIZE (rust/crates/backtrace-0.3.62.crate) = 74306
+SHA256 (rust/crates/bitflags-1.3.2.crate) = bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a
+SIZE (rust/crates/bitflags-1.3.2.crate) = 23021
+SHA256 (rust/crates/cc-1.0.71.crate) = 79c2681d6594606957bbb8631c4b90a7fcaaa72cdb714743a437b156d6a7eedd
+SIZE (rust/crates/cc-1.0.71.crate) = 57452
+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.0-beta.5.crate) = feff3878564edb93745d58cf63e17b63f24142506e7a20c87a5521ed7bfb1d63
+SIZE (rust/crates/clap-3.0.0-beta.5.crate) = 155626
+SHA256 (rust/crates/clap_derive-3.0.0-beta.5.crate) = 8b15c6b4f786ffb6192ffe65a36855bc1fc2444bcd0945ae16748dcd6ed7d0d3
+SIZE (rust/crates/clap_derive-3.0.0-beta.5.crate) = 25228
+SHA256 (rust/crates/doc-comment-0.3.3.crate) = fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10
+SIZE (rust/crates/doc-comment-0.3.3.crate) = 4123
+SHA256 (rust/crates/dtoa-0.4.8.crate) = 56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0
+SIZE (rust/crates/dtoa-0.4.8.crate) = 16175
+SHA256 (rust/crates/exitfailure-0.5.1.crate) = 2ff5bd832af37f366c6c194d813a11cd90ac484f124f079294f28e357ae40515
+SIZE (rust/crates/exitfailure-0.5.1.crate) = 11425
+SHA256 (rust/crates/failure-0.1.8.crate) = d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86
+SIZE (rust/crates/failure-0.1.8.crate) = 37582
+SHA256 (rust/crates/failure_derive-0.1.8.crate) = aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4
+SIZE (rust/crates/failure_derive-0.1.8.crate) = 4950
+SHA256 (rust/crates/gimli-0.25.0.crate) = f0a01e0497841a3b2db4f8afa483cce65f7e96a3498bd6c541734792aeac8fe7
+SIZE (rust/crates/gimli-0.25.0.crate) = 705238
+SHA256 (rust/crates/hashbrown-0.11.2.crate) = ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e
+SIZE (rust/crates/hashbrown-0.11.2.crate) = 85713
+SHA256 (rust/crates/heck-0.3.3.crate) = 6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c
+SIZE (rust/crates/heck-0.3.3.crate) = 10260
+SHA256 (rust/crates/hermit-abi-0.1.19.crate) = 62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33
+SIZE (rust/crates/hermit-abi-0.1.19.crate) = 9979
+SHA256 (rust/crates/indexmap-1.7.0.crate) = bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5
+SIZE (rust/crates/indexmap-1.7.0.crate) = 50363
+SHA256 (rust/crates/itoa-0.4.8.crate) = b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4
+SIZE (rust/crates/itoa-0.4.8.crate) = 11926
+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.106.crate) = a60553f9a9e039a333b4e9b20573b9e9b9c0bb3a11e201ccc48ef4283456d673
+SIZE (rust/crates/libc-0.2.106.crate) = 554765
+SHA256 (rust/crates/linked-hash-map-0.5.4.crate) = 7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3
+SIZE (rust/crates/linked-hash-map-0.5.4.crate) = 16166
+SHA256 (rust/crates/memchr-2.4.1.crate) = 308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a
+SIZE (rust/crates/memchr-2.4.1.crate) = 64977
+SHA256 (rust/crates/miniz_oxide-0.4.4.crate) = a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b
+SIZE (rust/crates/miniz_oxide-0.4.4.crate) = 49938
+SHA256 (rust/crates/object-0.27.1.crate) = 67ac1d3f9a1d3616fd9a60c8d74296f22406a238b6a72f5cc1e6f314df4ffbf9
+SIZE (rust/crates/object-0.27.1.crate) = 228030
+SHA256 (rust/crates/os_str_bytes-4.2.0.crate) = addaa943333a514159c80c97ff4a93306530d965d27e139188283cd13e06a799
+SIZE (rust/crates/os_str_bytes-4.2.0.crate) = 20800
+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.32.crate) = ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43
+SIZE (rust/crates/proc-macro2-1.0.32.crate) = 41003
+SHA256 (rust/crates/quote-1.0.10.crate) = 38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05
+SIZE (rust/crates/quote-1.0.10.crate) = 29960
+SHA256 (rust/crates/rustc-demangle-0.1.21.crate) = 7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342
+SIZE (rust/crates/rustc-demangle-0.1.21.crate) = 27920
+SHA256 (rust/crates/ryu-1.0.5.crate) = 71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e
+SIZE (rust/crates/ryu-1.0.5.crate) = 49570
+SHA256 (rust/crates/serde-1.0.130.crate) = f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913
+SIZE (rust/crates/serde-1.0.130.crate) = 75305
+SHA256 (rust/crates/serde_json-1.0.68.crate) = 0f690853975602e1bfe1ccbf50504d67174e3bcf340f23b5ea9992e0587a52d8
+SIZE (rust/crates/serde_json-1.0.68.crate) = 114986
+SHA256 (rust/crates/serde_yaml-0.8.21.crate) = d8c608a35705a5d3cdc9fbe403147647ff34b921f8e833e49306df898f9b20af
+SIZE (rust/crates/serde_yaml-0.8.21.crate) = 42603
+SHA256 (rust/crates/snafu-0.6.10.crate) = eab12d3c261b2308b0d80c26fffb58d17eba81a4be97890101f416b478c79ca7
+SIZE (rust/crates/snafu-0.6.10.crate) = 40383
+SHA256 (rust/crates/snafu-derive-0.6.10.crate) = 1508efa03c362e23817f96cde18abed596a25219a8b2c66e8db33c03543d315b
+SIZE (rust/crates/snafu-derive-0.6.10.crate) = 19547
+SHA256 (rust/crates/strsim-0.10.0.crate) = 73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623
+SIZE (rust/crates/strsim-0.10.0.crate) = 11355
+SHA256 (rust/crates/syn-1.0.81.crate) = f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966
+SIZE (rust/crates/syn-1.0.81.crate) = 234144
+SHA256 (rust/crates/synstructure-0.12.6.crate) = f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f
+SIZE (rust/crates/synstructure-0.12.6.crate) = 18429
+SHA256 (rust/crates/termcolor-1.1.2.crate) = 2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4
+SIZE (rust/crates/termcolor-1.1.2.crate) = 17287
+SHA256 (rust/crates/terminal_size-0.1.17.crate) = 633c1a546cee861a1a6d0dc69ebeca693bf4296661ba7852b9d21d159e0506df
+SIZE (rust/crates/terminal_size-0.1.17.crate) = 9141
+SHA256 (rust/crates/textwrap-0.14.2.crate) = 0066c8d12af8b5acd21e00547c3797fde4e8677254a7ee429176ccebbe93dd80
+SIZE (rust/crates/textwrap-0.14.2.crate) = 52016
+SHA256 (rust/crates/unicase-2.6.0.crate) = 50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6
+SIZE (rust/crates/unicase-2.6.0.crate) = 23478
+SHA256 (rust/crates/unicode-segmentation-1.8.0.crate) = 8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b
+SIZE (rust/crates/unicode-segmentation-1.8.0.crate) = 94011
+SHA256 (rust/crates/unicode-width-0.1.9.crate) = 3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973
+SIZE (rust/crates/unicode-width-0.1.9.crate) = 16745
+SHA256 (rust/crates/unicode-xid-0.2.2.crate) = 8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3
+SIZE (rust/crates/unicode-xid-0.2.2.crate) = 14955
+SHA256 (rust/crates/version_check-0.9.3.crate) = 5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe
+SIZE (rust/crates/version_check-0.9.3.crate) = 12547
+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 (rust/crates/yaml-rust-0.4.5.crate) = 56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85
+SIZE (rust/crates/yaml-rust-0.4.5.crate) = 47783
+SHA256 (bruceadams-yj-1.1.34_GH0.tar.gz) = cda3d65228d4a58764fa7ba032c8495dadcf8fa8b71bafb67e66771b78bfb23f
+SIZE (bruceadams-yj-1.1.34_GH0.tar.gz) = 13702
diff --git a/converters/yj-bruceadams/pkg-descr b/converters/yj-bruceadams/pkg-descr
new file mode 100644
index 000000000000..d2d66f90b8f9
--- /dev/null
+++ b/converters/yj-bruceadams/pkg-descr
@@ -0,0 +1,3 @@
+Simple command line tool to convert a YAML input file into a JSON output file.
+
+WWW: https://github.com/bruceadams/yj