1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

shells/carapace: add port: Multi-shell multi-command argument completer

Carapace provides argument completion for multiple CLI commands, and
works across multiple POSIX and non-POSIX shells.

WWW: https://carapace.sh/
This commit is contained in:
Hiroki Tagato 2024-02-26 17:37:57 +09:00
parent 2b7869778c
commit ecc74ffa42
4 changed files with 40 additions and 0 deletions

View File

@ -11,6 +11,7 @@
SUBDIR += bashc
SUBDIR += bicon
SUBDIR += bosh
SUBDIR += carapace
SUBDIR += ch
SUBDIR += dash
SUBDIR += elvish

32
shells/carapace/Makefile Normal file
View File

@ -0,0 +1,32 @@
PORTNAME= carapace
DISTVERSIONPREFIX= v
DISTVERSION= 0.30.2
CATEGORIES= shells
MAINTAINER= tagattie@FreeBSD.org
COMMENT= Multi-shell multi-command argument completer
WWW= https://carapace.sh/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules,1.21
GO_MODULE= github.com/rsteube/carapace-bin
GO_TARGET= ./cmd/carapace
GO_BUILDFLAGS= -ldflags "-s -w -X main.version=${DISTVERSION}"
PLIST_FILES= bin/carapace
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
pre-build:
cd ${GO_WRKSRC} && \
${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} generate ./cmd/...
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

5
shells/carapace/distinfo Normal file
View File

@ -0,0 +1,5 @@
TIMESTAMP = 1708860055
SHA256 (go/shells_carapace/carapace-v0.30.2/v0.30.2.mod) = 9bebd26f556d49995475fa9b15a98915b5bc06b7da8798567374c4c2d303dff9
SIZE (go/shells_carapace/carapace-v0.30.2/v0.30.2.mod) = 799
SHA256 (go/shells_carapace/carapace-v0.30.2/v0.30.2.zip) = 3544d6e3d665ef53ad5cb92a65f1f952f5f3b869af75716b730247ce7e256f52
SIZE (go/shells_carapace/carapace-v0.30.2/v0.30.2.zip) = 16679116

View File

@ -0,0 +1,2 @@
Carapace provides argument completion for multiple CLI commands, and
works across multiple POSIX and non-POSIX shells.