public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jonas Frei" <freijon@pm.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/fnm/
Date: Wed, 12 Apr 2023 04:04:42 +0000 (UTC)	[thread overview]
Message-ID: <1681272079.945501cb11c369c03b08d23c0853d3d388c1a3f1.freijon@gentoo> (raw)

commit:     945501cb11c369c03b08d23c0853d3d388c1a3f1
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Wed Apr 12 03:58:03 2023 +0000
Commit:     Jonas Frei <freijon <AT> pm <DOT> 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 <freijon <AT> 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
 }


             reply	other threads:[~2023-04-12  4:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12  4:04 Jonas Frei [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-19 14:44 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/fnm/ Takuya Wakazono
2022-09-08 10:24 Andrew Ammerlaan
2022-06-25  3:06 Alexey Zapparov
2022-06-24  2:26 Alexey Zapparov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1681272079.945501cb11c369c03b08d23c0853d3d388c1a3f1.freijon@gentoo \
    --to=freijon@pm.me \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox