From nobody Wed Aug 16 16:26:54 2023 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 4RQtnW2fQsz4qqK0; Wed, 16 Aug 2023 16:26:55 +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 4RQtnW1RXdz3JFl; Wed, 16 Aug 2023 16:26:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692203215; 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=4Svq+Dx1X/hawwOU/G30VHnWMcpviwzJcd/fiRw9A2g=; b=qqsXVNl+2o4hj02KhqK/x918bFehHmHCBBqBvWCtbnh4+nEbzOq8siqeXSs+hz1ms4h7Xy kG2W6cx/hjSzu/vp8d6Ib62ky65cEZi3UGyT6Obn7FODC/rhrA5Ep8qups1W1Xpz2OYv6k XsLSOA+9Cc/l+aBsDIEHGOLMpRrmzV/o2MHvQL20N8NHA2ZyQYI1Xw+ThC+JH9Wi9gEPvY IUiKXP/SSx+1fpP+vHjofS2idImCj8KyNyQ43/dsGji5MdTQbHh0ONLInr+Kd2OPUT8E3k z8RU2qCctU3dYxeRof3lfTBVJ2Hii2Y/08vyaQmIQ3c6PpShpZ+tlkyJtL5rBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692203215; 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=4Svq+Dx1X/hawwOU/G30VHnWMcpviwzJcd/fiRw9A2g=; b=WdsBdF2H6LiwYJbk5SjMbduVzRccfXW81IvMaXPzHVjzoyBVATZnMtIdn5RzyKC5gdBpI7 3R/Rour/AgITTroizQ8paBVj1MZUXIFjRv3fMkmDMwr0R+u6eoNwmgNq0aRv8d74yqilG0 D2iE2bK/qkDea3ApTRYXnZjFUMBTnnUpE08ST3G8xZrK65ZYhY7+zIu2SMwa/zRL0KOK5P qhTQJEL6qrOvmibpwvj9gpTIY9fVsp/KKc2VL0j5n2bZKz0GNneOf5zu27/6o6knAzzVGV FO9ncd2Ib7JVsne6306WzP1QYKjpn021cV3nFh4TiLsLhcH7rFHNYM4EMHbVSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692203215; a=rsa-sha256; cv=none; b=oKBziV77Id4c8tsSE0PnYl2hsuWt2eMGbg5I180pbq9AiLts94TGo2EisQDCrRfQ6ZAcXo KY4TmKAFTQ7ZfkFQZIzh93IWFhCN0mCRapGPfpCVS+VvSVZ6E4lAX2jWeHbXv+3Xme/vkN gH5HGhpsWYLqKLOqWi1KI+w3iTVnAtTpXKhvQYfi5tmqSvPjlMx/IjnfBJMmNKL6Ef2pmU DhTirl3uSZmlhDYksgpKTQbj6yRzugXqUJx6pav6+6z9zl/mN9dAgDEKwbX+P5jHc/In00 aX/LSQGCs5KV76zT88Br9BS7isuBzVdK6Fu+bw8Zz/a50++vxgsIF6asgFI3lQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RQtnW0QgWzySD; Wed, 16 Aug 2023 16:26:55 +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 37GGQsj7009012; Wed, 16 Aug 2023 16:26:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37GGQs0G009009; Wed, 16 Aug 2023 16:26:54 GMT (envelope-from git) Date: Wed, 16 Aug 2023 16:26:54 GMT Message-Id: <202308161626.37GGQs0G009009@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: b5143c450942 - main - deskutils/just: Add COMPLETIONS option, ON by default 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b5143c4509426867c175d5c67ab0b9f8b2b76afc Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=b5143c4509426867c175d5c67ab0b9f8b2b76afc commit b5143c4509426867c175d5c67ab0b9f8b2b76afc Author: Yuri Victorovich AuthorDate: 2023-08-16 14:31:59 +0000 Commit: Yuri Victorovich CommitDate: 2023-08-16 16:26:52 +0000 deskutils/just: Add COMPLETIONS option, ON by default PR: 273158 Requested by: Michael Adler --- deskutils/just/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/deskutils/just/Makefile b/deskutils/just/Makefile index c7811dc77ba1..17191fb1d797 100644 --- a/deskutils/just/Makefile +++ b/deskutils/just/Makefile @@ -1,6 +1,6 @@ PORTNAME= just DISTVERSION= 1.14.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= deskutils MAINTAINER= yuri@FreeBSD.org @@ -137,7 +137,21 @@ CARGO_CRATES= aho-corasick-1.0.1 \ yansi-0.5.1 PLIST_FILES= bin/${PORTNAME} +OPTIONS_DEFINE= COMPLETIONS +OPTIONS_DEFAULT= COMPLETIONS + +COMPLETIONS_DESC= Build and install bash, fish and zsh shell completions +COMPLETIONS_PLIST_FILES= share/bash-completion/completions/${PORTNAME} \ + share/fish/vendor_completions.d/${PORTNAME}.fish \ + share/zsh/site-functions/_${PORTNAME} + post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} +post-install-COMPLETIONS-on: +.for _shell in bash fish zsh + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} --completions ${_shell} \ + >${STAGEDIR}${PREFIX}/${COMPLETIONS_PLIST_FILES:M*${_shell}*} +.endfor + .include