From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9CFA215800A for ; Mon, 17 Jul 2023 14:24:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E3AD3E087F; Mon, 17 Jul 2023 14:24:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C95CBE087F for ; Mon, 17 Jul 2023 14:24:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E3FE9340D4F for ; Mon, 17 Jul 2023 14:24:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7CAD8137 for ; Mon, 17 Jul 2023 14:24:28 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1689603666.0dc3cf6dd34d411d7dd8d2aaab7c3b319dcb3f22.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/shell-completion.eclass X-VCS-Directories: eclass/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 0dc3cf6dd34d411d7dd8d2aaab7c3b319dcb3f22 X-VCS-Branch: master Date: Mon, 17 Jul 2023 14:24:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8d6d2084-e2ce-4b4c-a7af-fcce74583cef X-Archives-Hash: e6056c9d553d35a106d1edac0ec4f0b3 commit: 0dc3cf6dd34d411d7dd8d2aaab7c3b319dcb3f22 Author: Florian Schmaus gentoo org> AuthorDate: Mon Jul 17 14:21:06 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Mon Jul 17 14:21:06 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0dc3cf6d shell-completion.eclass: promoted to ::gentoo Signed-off-by: Florian Schmaus gentoo.org> eclass/shell-completion.eclass | 114 ----------------------------------------- 1 file changed, 114 deletions(-) diff --git a/eclass/shell-completion.eclass b/eclass/shell-completion.eclass deleted file mode 100644 index b7b59802a..000000000 --- a/eclass/shell-completion.eclass +++ /dev/null @@ -1,114 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# @ECLASS: shell-completion.eclass -# @SUPPORTED_EAPIS: 8 -# @PROVIDES: bash-completion-r1 -# @AUTHOR: -# Alfred Wingate -# @MAINTAINER: -# Jonas Frei -# @BLURB: a few quick functions to install various shell completion files -# @DESCRIPTION: -# This eclass provides a standardised way to install shell completions -# for popular shells. It inherits the already widely adopted -# 'bash-completion-r1', thus extending on its functionality. - -case ${EAPI} in - 8) ;; - *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" -esac - -if [[ ! ${_SHELL_COMPLETION_ECLASS} ]]; then -_SHELL_COMPLETION_ECLASS=1 - -# Extend bash-completion-r1 -inherit bash-completion-r1 - -# @FUNCTION: _shell-completion_get_fishcompdir -# @INTERNAL -# @RETURN: unprefixed fish completions directory -_shell-completion_get_fishcompdir() { - echo "/usr/share/fish/vendor_completions.d" -} - -# @FUNCTION: _shell-completion_get_zshcompdir -# @INTERNAL -# @RETURN: unprefixed zsh completions directory -_shell-completion_get_zshcompdir() { - echo "/usr/share/zsh/site-functions" -} - -# @FUNCTION: get_fishcompdir -# @RETURN: the fish completions directory (with EPREFIX) -get_fishcompdir() { - debug-print-function ${FUNCNAME} "${@}" - - echo "${EPREFIX}$(_shell-completion_get_fishcompdir)" -} - -# @FUNCTION: get_zshcompdir -# @RETURN: the zsh completions directory (with EPREFIX) -get_zshcompdir() { - debug-print-function ${FUNCNAME} "${@}" - - echo "${EPREFIX}$(_shell-completion_get_zshcompdir)" -} - -# @FUNCTION: dofishcomp -# @USAGE: -# @DESCRIPTION: -# Install fish completion files passed as args. -dofishcomp() { - debug-print-function ${FUNCNAME} "${@}" - - ( - insopts -m 0644 - insinto "$(_shell-completion_get_fishcompdir)" - doins "${@}" - ) -} - -# @FUNCTION: dozshcomp -# @USAGE: -# @DESCRIPTION: -# Install zsh completion files passed as args. -dozshcomp() { - debug-print-function ${FUNCNAME} "${@}" - - ( - insopts -m 0644 - insinto "$(_shell-completion_get_zshcompdir)" - doins "${@}" - ) -} - -# @FUNCTION: newfishcomp -# @USAGE: -# @DESCRIPTION: -# Install fish file under a new name. -newfishcomp() { - debug-print-function ${FUNCNAME} "${@}" - - ( - insopts -m 0644 - insinto "$(_shell-completion_get_fishcompdir)" - newins "${@}" - ) -} - -# @FUNCTION: newzshcomp -# @USAGE: -# @DESCRIPTION: -# Install zsh file under a new name. -newzshcomp() { - debug-print-function ${FUNCNAME} "${@}" - - ( - insopts -m 0644 - insinto "$(_shell-completion_get_zshcompdir)" - newins "${@}" - ) -} - -fi From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B882815800A for ; Mon, 17 Jul 2023 14:24:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C4E9E087C; Mon, 17 Jul 2023 14:24:24 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 86C90E087C for ; Mon, 17 Jul 2023 14:24:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BC077340D7C for ; Mon, 17 Jul 2023 14:24:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B94EB79 for ; Mon, 17 Jul 2023 14:24:22 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1689603666.0dc3cf6dd34d411d7dd8d2aaab7c3b319dcb3f22.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/shell-completion.eclass X-VCS-Directories: eclass/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 0dc3cf6dd34d411d7dd8d2aaab7c3b319dcb3f22 X-VCS-Branch: dev Date: Mon, 17 Jul 2023 14:24:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 03468bc0-4ae8-484f-a29f-89cf3973c7bc X-Archives-Hash: 295be0bcc875a0921797ad90b896f7ec Message-ID: <20230717142422.Ld-E8ug00dviTdVKQIv3O_Fj5L4DG7X0t0dKM8q61ds@z> commit: 0dc3cf6dd34d411d7dd8d2aaab7c3b319dcb3f22 Author: Florian Schmaus gentoo org> AuthorDate: Mon Jul 17 14:21:06 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Mon Jul 17 14:21:06 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0dc3cf6d shell-completion.eclass: promoted to ::gentoo Signed-off-by: Florian Schmaus gentoo.org> eclass/shell-completion.eclass | 114 ----------------------------------------- 1 file changed, 114 deletions(-) diff --git a/eclass/shell-completion.eclass b/eclass/shell-completion.eclass deleted file mode 100644 index b7b59802a..000000000 --- a/eclass/shell-completion.eclass +++ /dev/null @@ -1,114 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# @ECLASS: shell-completion.eclass -# @SUPPORTED_EAPIS: 8 -# @PROVIDES: bash-completion-r1 -# @AUTHOR: -# Alfred Wingate -# @MAINTAINER: -# Jonas Frei -# @BLURB: a few quick functions to install various shell completion files -# @DESCRIPTION: -# This eclass provides a standardised way to install shell completions -# for popular shells. It inherits the already widely adopted -# 'bash-completion-r1', thus extending on its functionality. - -case ${EAPI} in - 8) ;; - *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" -esac - -if [[ ! ${_SHELL_COMPLETION_ECLASS} ]]; then -_SHELL_COMPLETION_ECLASS=1 - -# Extend bash-completion-r1 -inherit bash-completion-r1 - -# @FUNCTION: _shell-completion_get_fishcompdir -# @INTERNAL -# @RETURN: unprefixed fish completions directory -_shell-completion_get_fishcompdir() { - echo "/usr/share/fish/vendor_completions.d" -} - -# @FUNCTION: _shell-completion_get_zshcompdir -# @INTERNAL -# @RETURN: unprefixed zsh completions directory -_shell-completion_get_zshcompdir() { - echo "/usr/share/zsh/site-functions" -} - -# @FUNCTION: get_fishcompdir -# @RETURN: the fish completions directory (with EPREFIX) -get_fishcompdir() { - debug-print-function ${FUNCNAME} "${@}" - - echo "${EPREFIX}$(_shell-completion_get_fishcompdir)" -} - -# @FUNCTION: get_zshcompdir -# @RETURN: the zsh completions directory (with EPREFIX) -get_zshcompdir() { - debug-print-function ${FUNCNAME} "${@}" - - echo "${EPREFIX}$(_shell-completion_get_zshcompdir)" -} - -# @FUNCTION: dofishcomp -# @USAGE: -# @DESCRIPTION: -# Install fish completion files passed as args. -dofishcomp() { - debug-print-function ${FUNCNAME} "${@}" - - ( - insopts -m 0644 - insinto "$(_shell-completion_get_fishcompdir)" - doins "${@}" - ) -} - -# @FUNCTION: dozshcomp -# @USAGE: -# @DESCRIPTION: -# Install zsh completion files passed as args. -dozshcomp() { - debug-print-function ${FUNCNAME} "${@}" - - ( - insopts -m 0644 - insinto "$(_shell-completion_get_zshcompdir)" - doins "${@}" - ) -} - -# @FUNCTION: newfishcomp -# @USAGE: -# @DESCRIPTION: -# Install fish file under a new name. -newfishcomp() { - debug-print-function ${FUNCNAME} "${@}" - - ( - insopts -m 0644 - insinto "$(_shell-completion_get_fishcompdir)" - newins "${@}" - ) -} - -# @FUNCTION: newzshcomp -# @USAGE: -# @DESCRIPTION: -# Install zsh file under a new name. -newzshcomp() { - debug-print-function ${FUNCNAME} "${@}" - - ( - insopts -m 0644 - insinto "$(_shell-completion_get_zshcompdir)" - newins "${@}" - ) -} - -fi