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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6A91C158042 for ; Fri, 15 Nov 2024 17:02:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97594E0AD3; Fri, 15 Nov 2024 17:02:15 +0000 (UTC) Received: from smtp.gentoo.org (dev.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 825D7E0AD3 for ; Fri, 15 Nov 2024 17:02:15 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A936F342FEB for ; Fri, 15 Nov 2024 17:02:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1AF0418C4 for ; Fri, 15 Nov 2024 17:02:13 +0000 (UTC) From: "Henri Gasc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Henri Gasc" Message-ID: <1731690087.988b32e554b17341cf89abb65e6fb23426dd973e.gasc@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-video/wl-screenrec/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-video/wl-screenrec/wl-screenrec-0.1.6.ebuild X-VCS-Directories: media-video/wl-screenrec/ X-VCS-Committer: gasc X-VCS-Committer-Name: Henri Gasc X-VCS-Revision: 988b32e554b17341cf89abb65e6fb23426dd973e X-VCS-Branch: dev Date: Fri, 15 Nov 2024 17:02:13 +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: 271ce72e-4fcc-4f74-b36e-9fbe6c9d2f6d X-Archives-Hash: ce7693e7f2d76092a920bbdb0e3bed04 commit: 988b32e554b17341cf89abb65e6fb23426dd973e Author: Henri Gasc eurecom fr> AuthorDate: Fri Nov 15 17:01:27 2024 +0000 Commit: Henri Gasc eurecom 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 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"