From nobody Mon Feb 26 08:39:42 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TjvDt2ztbz5ChQb; Mon, 26 Feb 2024 08:39:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TjvDt2GXgz4lvs; Mon, 26 Feb 2024 08:39:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708936782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=64XtRO9EPFS9k+h4e0EvWQf+1v5E5kbp08IknYeyFAY=; b=mwfqpZVIYR68++pE8M1vBELTwpvBUPG+iOW/NmMrKPNeTEny2sNIYo22JzBv/T7+TLbKE2 wZVFQCkZ4CODvBjxGkxgQVjtzLmqkFCt17vchy2bZRVxjA2Zzo78oXcgRtBPabyD2kw/cy vXGp4KJhwLqTSvUtQFMje1Q93Ga2at84XK7kkH6pbWkGK7dn7KavSmiret86lKvTW67REy 3ijqN8uhXAP+p/NTmhov68Qex88JqAoQ2VQSQrjNdEkIwCfP9l3GLVkJtjOozWlgaOYHVJ 6nqbt31KXPr0dFIL/Q5V8+071jPumk3R9ouA7gJ73+X8iMdZm4bBxejFKmTA6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708936782; a=rsa-sha256; cv=none; b=epDXoMZhViZPGMx1oFB1yk82Ykgd0rOD0ZJAe425KhBw/AQdV+ZhFYVDeOrKCrqVH4ZdiK N7c7bagPJWzeiD7Sg+DvrLM+eAz02yUgN9Hb4LNvcZD2NFLGiLU2Y2XYIt3OGv/HGoFTyw PpotKD+Xcx34fE6Rd+pyRGRXMkXSz7sTEWY4ztq994IyNWljIMKdVDkD9ZLeUkDBddI6ST iuTT2Mm09DjjyluqQ+p+qVfEWTV+VxEfXHB76zO+fjy5OPKN6bFKwfDplkk7A3kDi07hvW DBm3F0GNiU+HaBvN1/BQ6aaNnhrdjAkZTZ5DJdal5j7FYJ1HHWbTofOJiEQ9ng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708936782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=64XtRO9EPFS9k+h4e0EvWQf+1v5E5kbp08IknYeyFAY=; b=w3LRU+eiTAKcTdFUTMH3suC7CsAbWG72wnKXrfJ/tNNXVFN4eTL3LWVnmhq0Zgu3XFCYhG K70UrcOhg4RnAQwcnPNQZYgDmbE4bcSqNKXiBijSgPEGaEza7QzdwqcKKjJP7vCHtfFQd7 M+FHD08ACaxVXMZWKmctBHGLRp3cAkBc9E5/fjzdTHVBdfPIdxbZrS0qQsMgLiqHJm3Y+v /3/B1xpn0QuGwA3O5QpHaRcJvqxMiCy4rtRjB9dyAC78HTyUhCHamFBclMyjyokaw364d0 /Fd0MYveiusGXDDRbNWnLP0tgTl3hEJiVodfELv4FL2SxLrel/z0HCakgRZDcA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TjvDt1DMYzLkK; Mon, 26 Feb 2024 08:39:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41Q8dgtP011122; Mon, 26 Feb 2024 08:39:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41Q8dgFa011119; Mon, 26 Feb 2024 08:39:42 GMT (envelope-from git) Date: Mon, 26 Feb 2024 08:39:42 GMT Message-Id: <202402260839.41Q8dgFa011119@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: ecc74ffa42ac - main - shells/carapace: add port: Multi-shell multi-command argument completer List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ecc74ffa42ac7858205e8b78cc9fd62e4b351ab5 Auto-Submitted: auto-generated The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=ecc74ffa42ac7858205e8b78cc9fd62e4b351ab5 commit ecc74ffa42ac7858205e8b78cc9fd62e4b351ab5 Author: Hiroki Tagato AuthorDate: 2024-02-26 08:37:57 +0000 Commit: Hiroki Tagato CommitDate: 2024-02-26 08:39:29 +0000 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/ --- shells/Makefile | 1 + shells/carapace/Makefile | 32 ++++++++++++++++++++++++++++++++ shells/carapace/distinfo | 5 +++++ shells/carapace/pkg-descr | 2 ++ 4 files changed, 40 insertions(+) diff --git a/shells/Makefile b/shells/Makefile index 1415e3554b8c..bc75f22e17e8 100644 --- a/shells/Makefile +++ b/shells/Makefile @@ -11,6 +11,7 @@ SUBDIR += bashc SUBDIR += bicon SUBDIR += bosh + SUBDIR += carapace SUBDIR += ch SUBDIR += dash SUBDIR += elvish diff --git a/shells/carapace/Makefile b/shells/carapace/Makefile new file mode 100644 index 000000000000..c6982e27f224 --- /dev/null +++ b/shells/carapace/Makefile @@ -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 diff --git a/shells/carapace/distinfo b/shells/carapace/distinfo new file mode 100644 index 000000000000..980f793af9ef --- /dev/null +++ b/shells/carapace/distinfo @@ -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 diff --git a/shells/carapace/pkg-descr b/shells/carapace/pkg-descr new file mode 100644 index 000000000000..7f8b534bc446 --- /dev/null +++ b/shells/carapace/pkg-descr @@ -0,0 +1,2 @@ +Carapace provides argument completion for multiple CLI commands, and +works across multiple POSIX and non-POSIX shells.