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: app-misc/onefetch/
Date: Thu, 13 Apr 2023 05:42:22 +0000 (UTC)	[thread overview]
Message-ID: <1681363848.4b505c44050b532a73661763d70786f3a179cb93.freijon@gentoo> (raw)

commit:     4b505c44050b532a73661763d70786f3a179cb93
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Thu Apr 13 05:30:48 2023 +0000
Commit:     Jonas Frei <freijon <AT> pm <DOT> me>
CommitDate: Thu Apr 13 05:30:48 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b505c44

app-misc/onefetch: Using eclass 'shell-completion', fixed 'debug' USE

Signed-off-by: Jonas Frei <freijon <AT> pm.me>

 app-misc/onefetch/onefetch-2.17.0.ebuild | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/app-misc/onefetch/onefetch-2.17.0.ebuild b/app-misc/onefetch/onefetch-2.17.0.ebuild
index 6303f41cf..aee0c2b91 100644
--- a/app-misc/onefetch/onefetch-2.17.0.ebuild
+++ b/app-misc/onefetch/onefetch-2.17.0.ebuild
@@ -374,7 +374,7 @@ CRATES="
 	zstd-sys-2.0.1+zstd.1.5.2
 "
 
-inherit bash-completion-r1 cargo
+inherit cargo shell-completion
 
 DESCRIPTION="Command-line Git information tool"
 HOMEPAGE="https://onefetch.dev"
@@ -398,7 +398,7 @@ QA_FLAGS_IGNORED="usr/bin/onefetch"
 
 src_compile() {
 	cargo_src_compile
-	local _completion="target/release/${PN} --generate"
+	local _completion="target/$(usex debug debug release)/${PN} --generate"
 	mkdir completions || die
 	$_completion bash > completions/${PN} || die
 	$_completion fish > completions/${PN}.fish || die
@@ -409,10 +409,8 @@ src_install() {
 	doman docs/${PN}.1
 
 	dobashcomp completions/${PN}
-	insinto /usr/share/fish/vendor_completions.d
-	doins completions/${PN}.fish
-	insinto /usr/share/zsh/site-functions
-	doins completions/_${PN}
+	dofishcomp completions/${PN}.fish
+	dozshcomp completions/_${PN}
 
 	cargo_src_install
 }


             reply	other threads:[~2023-04-13  5:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-13  5:42 Jonas Frei [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-09 14:56 [gentoo-commits] repo/proj/guru:dev commit in: app-misc/onefetch/ Lucio Sauer
2024-05-12 21:08 Lucio Sauer
2023-12-07  0:01 Lucio Sauer
2023-06-25 19:16 Lucio Sauer
2023-05-16  1:40 Lucio Sauer
2023-05-16  1:40 Lucio Sauer
2023-05-01 15:10 Lucio Sauer
2023-04-13  0:18 Lucio Sauer
2023-04-13  0:18 Lucio Sauer
2023-02-21  4:01 Lucio Sauer
2023-02-21  4:01 Lucio Sauer
2023-02-19  5:17 Anna Vyalkova
2022-12-27 23:18 Rahul Sandhu

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=1681363848.4b505c44050b532a73661763d70786f3a179cb93.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