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 A99A915ACFC for ; Wed, 12 Apr 2023 04:04:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA7BFE089F; Wed, 12 Apr 2023 04:04:46 +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 92274E089F for ; Wed, 12 Apr 2023 04:04:46 +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 CC54B340F04 for ; Wed, 12 Apr 2023 04:04:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B5929A3E for ; Wed, 12 Apr 2023 04:04:42 +0000 (UTC) From: "Jonas Frei" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jonas Frei" Message-ID: <1681272079.945501cb11c369c03b08d23c0853d3d388c1a3f1.freijon@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/fnm/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-util/fnm/fnm-1.33.1.ebuild X-VCS-Directories: dev-util/fnm/ X-VCS-Committer: freijon X-VCS-Committer-Name: Jonas Frei X-VCS-Revision: 945501cb11c369c03b08d23c0853d3d388c1a3f1 X-VCS-Branch: dev Date: Wed, 12 Apr 2023 04:04:42 +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: 1a0c7693-b2c2-44d6-89e0-3aef8fa3084e X-Archives-Hash: 63a957e005e114898a0049b4492007ae commit: 945501cb11c369c03b08d23c0853d3d388c1a3f1 Author: Jonas Frei pm me> AuthorDate: Wed Apr 12 03:58:03 2023 +0000 Commit: Jonas Frei pm me> CommitDate: Wed Apr 12 04:01:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=945501cb dev-util/fnm: Make use of 'shell-completion' eclass Signed-off-by: Jonas Frei pm.me> dev-util/fnm/fnm-1.33.1.ebuild | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/dev-util/fnm/fnm-1.33.1.ebuild b/dev-util/fnm/fnm-1.33.1.ebuild index 40df75220..82e3fa532 100644 --- a/dev-util/fnm/fnm-1.33.1.ebuild +++ b/dev-util/fnm/fnm-1.33.1.ebuild @@ -243,7 +243,7 @@ CRATES=" zstd-sys-2.0.1+zstd.1.5.2 " -inherit cargo bash-completion-r1 flag-o-matic +inherit cargo flag-o-matic shell-completion DESCRIPTION="Fast and simple Node.js version manager" HOMEPAGE="https://github.com/Schniz/fnm" @@ -284,16 +284,14 @@ src_prepare() { src_install() { cargo_src_install - "${D}"/usr/bin/fnm completions --shell bash > fnm.bash-completion || die "Cannot generate bash completions" - newbashcomp fnm.bash-completion fnm + "${D}"/usr/bin/fnm completions --shell bash > "${PN}.bash-completion" || die "Cannot generate bash completions" + newbashcomp "${PN}.bash-completion" "${PN}" - "${D}"/usr/bin/fnm completions --shell zsh > fnm.zsh-completion || die "Cannot generate zsh completions" - insinto /usr/share/zsh/site-functions - newins fnm.zsh-completion _fnm + "${D}"/usr/bin/fnm completions --shell zsh > "${PN}.zsh-completion" || die "Cannot generate zsh completions" + newzshcomp "${PN}.zsh-completion" "_${PN}" - "${D}"/usr/bin/fnm completions --shell fish > fnm.fish-completion || die "Cannot generate fish completions" - insinto /usr/share/fish/vendor_completions.d/ - newins fnm.fish-completion fnm.fish + "${D}"/usr/bin/fnm completions --shell fish > "${PN}.fish-completion" || die "Cannot generate fish completions" + newfishcomp "${PN}.fish-completion" "${PN}.fish" dodoc CHANGELOG.md README.md }