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 3AF77158042 for ; Fri, 15 Nov 2024 17:43:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4CE14E0894; Fri, 15 Nov 2024 17:43:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 565A6E0894 for ; Fri, 15 Nov 2024 17:43:39 +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 46E0C342FF3 for ; Fri, 15 Nov 2024 17:43:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A513A1626 for ; Fri, 15 Nov 2024 17:43:35 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1731690087.988b32e554b17341cf89abb65e6fb23426dd973e.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master 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: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 988b32e554b17341cf89abb65e6fb23426dd973e X-VCS-Branch: master Date: Fri, 15 Nov 2024 17:43:35 +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: 6b6a6d26-4be9-4466-a84f-12dcc3cdb30e X-Archives-Hash: e3c1795411e7a467ddd366b8dc34ec3a commit: 988b32e554b17341cf89abb65e6fb23426dd973e Author: Henri Gasc eurecom fr> AuthorDate: Fri Nov 15 17:01:27 2024 +0000 Commit: Julien Roy jroy ca> 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"