public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Henri Gasc" <gasc@eurecom.fr>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-video/wl-screenrec/
Date: Fri, 15 Nov 2024 17:02:13 +0000 (UTC)	[thread overview]
Message-ID: <1731690087.988b32e554b17341cf89abb65e6fb23426dd973e.gasc@gentoo> (raw)

commit:     988b32e554b17341cf89abb65e6fb23426dd973e
Author:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Fri Nov 15 17:01:27 2024 +0000
Commit:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
CommitDate: Fri Nov 15 17:01:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=988b32e5

media-video/wl-screenrec: Add shells completions

Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>

 media-video/wl-screenrec/wl-screenrec-0.1.6.ebuild | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/media-video/wl-screenrec/wl-screenrec-0.1.6.ebuild b/media-video/wl-screenrec/wl-screenrec-0.1.6.ebuild
index 7f26f9ff9..6177f11b3 100644
--- a/media-video/wl-screenrec/wl-screenrec-0.1.6.ebuild
+++ b/media-video/wl-screenrec/wl-screenrec-0.1.6.ebuild
@@ -110,7 +110,7 @@ CRATES="
 	windows_x86_64_msvc@0.52.6
 "
 
-inherit cargo
+inherit cargo shell-completion
 
 DESCRIPTION="High performance screen/audio recorder for wlroots"
 HOMEPAGE="https://github.com/russelltg/wl-screenrec"
@@ -135,6 +135,22 @@ DEPEND="${RDEPEND}"
 
 QA_FLAGS_IGNORED="usr/bin/${PN}"
 
+src_compile() {
+	cargo_src_compile
+
+	./"${S}"/target/release/"${PN}" --generate-completions bash > "${S}/wl-screenrec.bash"
+	./"${S}"/target/release/"${PN}" --generate-completions fish > "${S}/wl-screenrec.fish"
+	./"${S}"/target/release/"${PN}" --generate-completions zsh > "${S}/wl-screenrec.zsh"
+}
+
+src_install() {
+	cargo_src_install
+
+	dobashcomp "${S}/wl-screenrec.bash"
+	dofishcomp "${S}/wl-screenrec.fish"
+	dozshcomp "${S}/wl-screenrec.zsh"
+}
+
 pkg_postinst() {
 	elog "To use this software, you need vaapi encoding support."
 	elog "You also need a wayland compositor that supports the"


             reply	other threads:[~2024-11-15 17:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15 17:02 Henri Gasc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-17 11:01 [gentoo-commits] repo/proj/guru:dev commit in: media-video/wl-screenrec/ Henri Gasc
2024-11-15 22:16 Henri Gasc
2024-11-15 16:37 Henri Gasc
2024-09-12 11:59 Henri Gasc
2024-03-10 17:45 Henri Gasc
2024-01-08 13:52 Henri Gasc
2023-12-28 20:41 Henri Gasc
2023-12-26 17:40 Henri Gasc

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=1731690087.988b32e554b17341cf89abb65e6fb23426dd973e.gasc@gentoo \
    --to=gasc@eurecom.fr \
    --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