From 57d2d7aac10b72a15a892b816f54ac74fbe07bc6 Mon Sep 17 00:00:00 2001 From: Adam Jimerson Date: Sat, 2 Dec 2023 15:43:24 -0500 Subject: [PATCH] [New port] add shells/carapace-bin Carapace is a multi-shell multi-command argument completer. Signed-off-by: Adam Jimerson --- shells/carapace-bin/Makefile | 43 +++++++++++++++++++++++++++++++++++ shells/carapace-bin/distinfo | 35 ++++++++++++++++++++++++++++ shells/carapace-bin/pkg-descr | 3 +++ 3 files changed, 81 insertions(+) create mode 100644 shells/carapace-bin/Makefile create mode 100644 shells/carapace-bin/distinfo create mode 100644 shells/carapace-bin/pkg-descr diff --git a/shells/carapace-bin/Makefile b/shells/carapace-bin/Makefile new file mode 100644 index 00000000000..fd278a6d16d --- /dev/null +++ b/shells/carapace-bin/Makefile @@ -0,0 +1,43 @@ +PORTNAME= carapace-bin +DISTVERSIONPREFIX= v +DISTVERSION= 0.28.4 +CATEGORIES= shells + +MAINTAINER= vendion@gmail.com +COMMENT= Multi-shell multi-command argument completer +WWW= https://rsteube.github.io/carapace-bin/ + +LICENSE= MIT +LICENSE_FILE= ${GO_WRKSRC}/LICENSE + +USES= go:modules,1.21 +USE_GITHUB= yes +GH_ACCOUNT= rsteube +GH_PROJECT= carapace-bin +GH_TUPLE= bahlo:generic-list-go:v0.2.0:bahlo_generic_list_go/vendor/github.com/bahlo/generic-list-go \ + buger:jsonparser:v1.1.1:buger_jsonparser/vendor/github.com/buger/jsonparser \ + go-ini:ini:v1.67.0:go_ini_ini/vendor/gopkg.in/ini.v1 \ + go-yaml:yaml:v3.0.1:go_yaml_yaml/vendor/gopkg.in/yaml.v3 \ + golang:mod:v0.14.0:golang_mod/vendor/golang.org/x/mod \ + inconshreveable:mousetrap:v1.1.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \ + invopop:jsonschema:v0.9.0:invopop_jsonschema/vendor/github.com/invopop/jsonschema \ + mailru:easyjson:v0.7.7:mailru_easyjson/vendor/github.com/mailru/easyjson \ + pelletier:go-toml:v1.9.5:pelletier_go_toml/vendor/github.com/pelletier/go-toml \ + rsteube:carapace-bridge:v0.1.4:rsteube_carapace_bridge/vendor/github.com/rsteube/carapace-bridge \ + rsteube:carapace-pflag:v0.2.0:rsteube_carapace_pflag/vendor/github.com/spf13/pflag \ + rsteube:carapace-shlex:v0.0.4:rsteube_carapace_shlex/vendor/github.com/rsteube/carapace-shlex \ + rsteube:carapace-spec:v0.11.1:rsteube_carapace_spec/vendor/github.com/rsteube/carapace-spec \ + rsteube:carapace:v0.44.1:rsteube_carapace/vendor/github.com/rsteube/carapace \ + spf13:cobra:v1.8.0:spf13_cobra/vendor/github.com/spf13/cobra \ + wk8:go-ordered-map:v2.1.8:wk8_go_ordered_map_v2/vendor/github.com/wk8/go-ordered-map/v2 + +GO_TARGET= ./cmd/carapace +GO_BUILDFLAGS= -ldflags="-s -w" -tags release + +PLIST_FILES= bin/carapace + +do-configure: + cd ${GO_WRKSRC} ; \ + ${GO_ENV} ${GO_CMD} generate ./... + +.include diff --git a/shells/carapace-bin/distinfo b/shells/carapace-bin/distinfo new file mode 100644 index 00000000000..c742b978e7e --- /dev/null +++ b/shells/carapace-bin/distinfo @@ -0,0 +1,35 @@ +TIMESTAMP = 1701529590 +SHA256 (rsteube-carapace-bin-v0.28.4_GH0.tar.gz) = 72ce6330ef1def7515e114435b653915ba2150b43bde947f83f8fa8150f900d6 +SIZE (rsteube-carapace-bin-v0.28.4_GH0.tar.gz) = 12427053 +SHA256 (bahlo-generic-list-go-v0.2.0_GH0.tar.gz) = 4e9c7972e36312d788808b85e27f629ed0ecb0f7dd3a12e456f0ce6c0e883d1f +SIZE (bahlo-generic-list-go-v0.2.0_GH0.tar.gz) = 5049 +SHA256 (buger-jsonparser-v1.1.1_GH0.tar.gz) = cf208ab8af3ca20759d65f39e0a07891b13a8afeac2a2ee05216bef89e85d8e6 +SIZE (buger-jsonparser-v1.1.1_GH0.tar.gz) = 55200 +SHA256 (go-ini-ini-v1.67.0_GH0.tar.gz) = 06ba51234140118d1b6064f1817aa89cc971c6e7ce04cb9d286e6660d89296c8 +SIZE (go-ini-ini-v1.67.0_GH0.tar.gz) = 53531 +SHA256 (go-yaml-yaml-v3.0.1_GH0.tar.gz) = cf05411540d3e6ef8f1fd88434b34f94cedaceb540329031d80e23b74540c4e5 +SIZE (go-yaml-yaml-v3.0.1_GH0.tar.gz) = 91173 +SHA256 (golang-mod-v0.14.0_GH0.tar.gz) = 39b576b1491cd8a092a9df5e4029b23608887e4670e7a2211c07ea786944953c +SIZE (golang-mod-v0.14.0_GH0.tar.gz) = 122036 +SHA256 (inconshreveable-mousetrap-v1.1.0_GH0.tar.gz) = ab23e7c5cbf42564eb0190ee051b7217c04fd2599d2f26e9ebe205db75963141 +SIZE (inconshreveable-mousetrap-v1.1.0_GH0.tar.gz) = 5338 +SHA256 (invopop-jsonschema-v0.9.0_GH0.tar.gz) = 81fbac7b6b2416b9739945171b5a1ee76fdb3a5d93b2bc589ddafd4f2f833084 +SIZE (invopop-jsonschema-v0.9.0_GH0.tar.gz) = 30795 +SHA256 (mailru-easyjson-v0.7.7_GH0.tar.gz) = 18ce2051cda6b20a09163d9ecedf905593d7777db043b32b263e62b1cebb7f73 +SIZE (mailru-easyjson-v0.7.7_GH0.tar.gz) = 81404 +SHA256 (pelletier-go-toml-v1.9.5_GH0.tar.gz) = 7ee5ee9344a5c18eebf9487782e00b2dbeaaf19be64b447a1e1d90f8aed710e8 +SIZE (pelletier-go-toml-v1.9.5_GH0.tar.gz) = 106932 +SHA256 (rsteube-carapace-bridge-v0.1.4_GH0.tar.gz) = 24a84366170d0a3f85ef6c56dd3f617ce91be6b9c52b392585fbc0e63de2a33a +SIZE (rsteube-carapace-bridge-v0.1.4_GH0.tar.gz) = 13414 +SHA256 (rsteube-carapace-pflag-v0.2.0_GH0.tar.gz) = 07fa8f1d6125acf6b5e0f5e4babd765a27cdacf7816e3d820f94193256b411d4 +SIZE (rsteube-carapace-pflag-v0.2.0_GH0.tar.gz) = 56181 +SHA256 (rsteube-carapace-shlex-v0.0.4_GH0.tar.gz) = d1bf642ce1c5690f83b8eb08ccecb7f39f6e520f218696acf789c0a203735939 +SIZE (rsteube-carapace-shlex-v0.0.4_GH0.tar.gz) = 12235 +SHA256 (rsteube-carapace-spec-v0.11.1_GH0.tar.gz) = 301629163f10281da5eb6b93462aa8a89993586a3915a586ce2978e4b6a087e7 +SIZE (rsteube-carapace-spec-v0.11.1_GH0.tar.gz) = 102421 +SHA256 (rsteube-carapace-v0.44.1_GH0.tar.gz) = 39c55435919f45363f99665c5d51b0cfd008e2a5e6b9a72cf02ae05ff06e4e9a +SIZE (rsteube-carapace-v0.44.1_GH0.tar.gz) = 282443 +SHA256 (spf13-cobra-v1.8.0_GH0.tar.gz) = 66605a6a2297d819e3f92fa38fa6d7771fb8a4adb00e9aa7cb34021bd8389602 +SIZE (spf13-cobra-v1.8.0_GH0.tar.gz) = 189706 +SHA256 (wk8-go-ordered-map-v2.1.8_GH0.tar.gz) = de9c9c67b7907d7a0714b4773585144aa0b4fdf7f36ab42d103cd2edc500eb20 +SIZE (wk8-go-ordered-map-v2.1.8_GH0.tar.gz) = 20796 diff --git a/shells/carapace-bin/pkg-descr b/shells/carapace-bin/pkg-descr new file mode 100644 index 00000000000..ed867116247 --- /dev/null +++ b/shells/carapace-bin/pkg-descr @@ -0,0 +1,3 @@ +Carapace-bin is a multi-shell multi-command argument completer based on +rsteube/carapace. It provides argument completion for multiple CLI commands, +and works across multiple POSIX and non-POSIX shells. -- 2.43.0