textproc/go-yq: (New) Portable commandline YAML processor written in go

PR:		255152
This commit is contained in:
Pavel Timofeev 2021-08-09 23:57:23 +08:00 committed by Li-Wen Hsu
parent 4214b8c776
commit ea1eda807f
No known key found for this signature in database
GPG Key ID: 82B261B14D3BC7AF
4 changed files with 82 additions and 0 deletions

View File

@ -233,6 +233,7 @@
SUBDIR += gmetadom
SUBDIR += gnugrep
SUBDIR += go-md2man
SUBDIR += go-yq
SUBDIR += goldendict
SUBDIR += google-ctemplate
SUBDIR += google-translate-cli

42
textproc/go-yq/Makefile Normal file
View File

@ -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>

33
textproc/go-yq/distinfo Normal file
View File

@ -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

6
textproc/go-yq/pkg-descr Normal file
View File

@ -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