Date: Mon, 9 Aug 2021 15:59:23 GMT From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ea1eda807fbd - main - textproc/go-yq: (New) Portable commandline YAML processor written in go Message-ID: <202108091559.179FxNTm055116@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=ea1eda807fbdfbdaa917eaec7b3a232770c2ba40 commit ea1eda807fbdfbdaa917eaec7b3a232770c2ba40 Author: Pavel Timofeev <timp87@gmail.com> AuthorDate: 2021-08-09 15:57:23 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2021-08-09 15:58:55 +0000 textproc/go-yq: (New) Portable commandline YAML processor written in go PR: 255152 --- textproc/Makefile | 1 + textproc/go-yq/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ textproc/go-yq/distinfo | 33 +++++++++++++++++++++++++++++++++ textproc/go-yq/pkg-descr | 6 ++++++ 4 files changed, 82 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 23c5697f924d..80d6bb93c4ec 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -233,6 +233,7 @@ SUBDIR += gmetadom SUBDIR += gnugrep SUBDIR += go-md2man + SUBDIR += go-yq SUBDIR += goldendict SUBDIR += google-ctemplate SUBDIR += google-translate-cli diff --git a/textproc/go-yq/Makefile b/textproc/go-yq/Makefile new file mode 100644 index 000000000000..232d2698da2b --- /dev/null +++ b/textproc/go-yq/Makefile @@ -0,0 +1,42 @@ +# Created by: Pavel Timofeev <timp87@gmail.com> + +PORTNAME= go-yq +PORTVERSION= 4.7.0 +DISTVERSIONPREFIX= v +CATEGORIES= textproc + +MAINTAINER= timp87@gmail.com +COMMENT= Portable commandline YAML processor written in go + +LICENSE= MIT + +USES= go:modules +USE_GITHUB= yes +GH_ACCOUNT= mikefarah +GH_PROJECT= yq + +GH_TUPLE= \ + elliotchance:orderedmap:v1.4.0:elliotchance_orderedmap/vendor/github.com/elliotchance/orderedmap \ + fatih:color:v1.10.0:fatih_color/vendor/github.com/fatih/color \ + go-yaml:yaml:496545a6307b:go_yaml_yaml/vendor/gopkg.in/yaml.v3 \ + goccy:go-yaml:v1.8.9:goccy_go_yaml/vendor/github.com/goccy/go-yaml \ + golang:sys:c4fcb01b228e:golang_sys/vendor/golang.org/x/sys \ + golang:xerrors:5ec99f83aff1:golang_xerrors/vendor/golang.org/x/xerrors \ + inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \ + jinzhu:copier:v0.2.8:jinzhu_copier/vendor/github.com/jinzhu/copier \ + mattn:go-colorable:v0.1.8:mattn_go_colorable/vendor/github.com/mattn/go-colorable \ + mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \ + op:go-logging:b2cb9fa56473:op_go_logging/vendor/gopkg.in/op/go-logging.v1 \ + spf13:cobra:v1.1.3:spf13_cobra/vendor/github.com/spf13/cobra \ + spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \ + timtadh:data-structures:v0.5.3:timtadh_data_structures/vendor/github.com/timtadh/data-structures \ + timtadh:lexmachine:v0.2.2:timtadh_lexmachine/vendor/github.com/timtadh/lexmachine + +CONFLICTS_INSTALL= yq + +do-install: + ${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${GH_PROJECT} + +PLIST_FILES= bin/${GH_PROJECT} + +.include <bsd.port.mk> diff --git a/textproc/go-yq/distinfo b/textproc/go-yq/distinfo new file mode 100644 index 000000000000..d48b79d2d762 --- /dev/null +++ b/textproc/go-yq/distinfo @@ -0,0 +1,33 @@ +TIMESTAMP = 1618668619 +SHA256 (mikefarah-yq-v4.7.0_GH0.tar.gz) = d4984f8f8ac5151797c8cf9c6ab8b705958802721c4405ef8a99206dcd00dcb5 +SIZE (mikefarah-yq-v4.7.0_GH0.tar.gz) = 97063 +SHA256 (elliotchance-orderedmap-v1.4.0_GH0.tar.gz) = af44d2d6081ff0464e5ef7af810284d64993deada1a1c7d485bb119459b01d47 +SIZE (elliotchance-orderedmap-v1.4.0_GH0.tar.gz) = 7534 +SHA256 (fatih-color-v1.10.0_GH0.tar.gz) = a00342a7ffb8b119346dce56e152a111cbb9eab3970c429cc2ed4272aec2858e +SIZE (fatih-color-v1.10.0_GH0.tar.gz) = 1267532 +SHA256 (go-yaml-yaml-496545a6307b_GH0.tar.gz) = ed0e11dc14bbbd4127031d7e8b9e58dad885e2c44a16359d2f64b71d1d1f692a +SIZE (go-yaml-yaml-496545a6307b_GH0.tar.gz) = 90156 +SHA256 (goccy-go-yaml-v1.8.9_GH0.tar.gz) = 72ba42ce39b3994442a02dd5cef02072c85f3b7cd7cd3d213266dfa7d968254d +SIZE (goccy-go-yaml-v1.8.9_GH0.tar.gz) = 74519 +SHA256 (golang-sys-c4fcb01b228e_GH0.tar.gz) = a0cdad06d571d1dc0c19193ede76545273df36e68ea7dee0c18d761824fe7ba7 +SIZE (golang-sys-c4fcb01b228e_GH0.tar.gz) = 1217654 +SHA256 (golang-xerrors-5ec99f83aff1_GH0.tar.gz) = 71975d658357e170fd6a41f92539cde8b39c9cd8bfe5931b6311bc5f5c0da0d7 +SIZE (golang-xerrors-5ec99f83aff1_GH0.tar.gz) = 13664 +SHA256 (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 5edc7731c819c305623568e317aa253d342be3447def97f1fa9e10eb5ad819f6 +SIZE (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 2290 +SHA256 (jinzhu-copier-v0.2.8_GH0.tar.gz) = 162054bbf61af3e1d4524a216d1cec600e011a76a81d50066301433c7f4aab7c +SIZE (jinzhu-copier-v0.2.8_GH0.tar.gz) = 11789 +SHA256 (mattn-go-colorable-v0.1.8_GH0.tar.gz) = 1027954f9abbe06b6e117e3047af70204dd0eb4f8c27fcd459fb2574b279755f +SIZE (mattn-go-colorable-v0.1.8_GH0.tar.gz) = 9571 +SHA256 (mattn-go-isatty-v0.0.12_GH0.tar.gz) = addbdc341d7685ed4cc8d2d8a8fd2bd9b784bde00d0ea99fb251039fc10c611c +SIZE (mattn-go-isatty-v0.0.12_GH0.tar.gz) = 4548 +SHA256 (op-go-logging-b2cb9fa56473_GH0.tar.gz) = 7374bc77c090ba614bd7b34d5cfd121dcc82e476af3b5b18f9db8b387918a260 +SIZE (op-go-logging-b2cb9fa56473_GH0.tar.gz) = 35882 +SHA256 (spf13-cobra-v1.1.3_GH0.tar.gz) = e5f93c61e1236e61c7fc45882d2a03b81f46ebebdf70628ebb64b0b5fe34f6fa +SIZE (spf13-cobra-v1.1.3_GH0.tar.gz) = 146580 +SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808 +SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796 +SHA256 (timtadh-data-structures-v0.5.3_GH0.tar.gz) = 89004902919a66f4696ef92a6c429d98451ed78b133eeb154faee467824f1149 +SIZE (timtadh-data-structures-v0.5.3_GH0.tar.gz) = 1035241 +SHA256 (timtadh-lexmachine-v0.2.2_GH0.tar.gz) = d513a01818cff335c988087fb50e054a390df91fbc740ac319baed7b1a4526c1 +SIZE (timtadh-lexmachine-v0.2.2_GH0.tar.gz) = 39164 diff --git a/textproc/go-yq/pkg-descr b/textproc/go-yq/pkg-descr new file mode 100644 index 000000000000..65bf5fd2e586 --- /dev/null +++ b/textproc/go-yq/pkg-descr @@ -0,0 +1,6 @@ +yq is a lightweight and portable command-line YAML processor in go. +yq uses jq like syntax but works with yaml files as well as json. +It doesn't yet support everything jq does - but it does support the most common +operations and functions, and more is being added continuously. + +WWW: https://github.com/mikefarah/yq
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108091559.179FxNTm055116>