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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B7388158164 for ; Sun, 17 Nov 2024 11:01:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7C8AE0E8B; Sun, 17 Nov 2024 11:01:23 +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 91563E0E8B for ; Sun, 17 Nov 2024 11:01:22 +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 2CC4D335DC5 for ; Sun, 17 Nov 2024 11:01:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5FD5817EC for ; Sun, 17 Nov 2024 11:01:20 +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: <1731841271.d2060976b775ad70bd3934b7f23ce1c019894da0.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-r1.ebuild media-video/wl-screenrec/wl-screenrec-0.1.6-r2.ebuild X-VCS-Directories: media-video/wl-screenrec/ X-VCS-Committer: gasc X-VCS-Committer-Name: Henri Gasc X-VCS-Revision: d2060976b775ad70bd3934b7f23ce1c019894da0 X-VCS-Branch: dev Date: Sun, 17 Nov 2024 11:01:20 +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: f3e281ac-0751-4320-973b-3d466be79075 X-Archives-Hash: b1f0b602ac51ca6b4d15f544f9147d80 commit: d2060976b775ad70bd3934b7f23ce1c019894da0 Author: Henri Gasc eurecom fr> AuthorDate: Sat Nov 16 14:16:34 2024 +0000 Commit: Henri Gasc eurecom fr> CommitDate: Sun Nov 17 11:01:11 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d2060976 media-video/wl-screenrec: Fix *DEPEND and src_* steps Signed-off-by: Henri Gasc eurecom.fr> ....1.6-r1.ebuild => wl-screenrec-0.1.6-r2.ebuild} | 31 +++++++++++++--------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/media-video/wl-screenrec/wl-screenrec-0.1.6-r1.ebuild b/media-video/wl-screenrec/wl-screenrec-0.1.6-r2.ebuild similarity index 77% rename from media-video/wl-screenrec/wl-screenrec-0.1.6-r1.ebuild rename to media-video/wl-screenrec/wl-screenrec-0.1.6-r2.ebuild index 98228fd56..74da5b8ad 100644 --- a/media-video/wl-screenrec/wl-screenrec-0.1.6-r1.ebuild +++ b/media-video/wl-screenrec/wl-screenrec-0.1.6-r2.ebuild @@ -129,14 +129,17 @@ KEYWORDS="~amd64" RESTRICT="test" BDEPEND=" - media-video/ffmpeg:= - x11-libs/libdrm $(llvm_gen_dep ' sys-devel/clang:${LLVM_SLOT} ') " -RDEPEND="${BDEPEND}" -DEPEND="${RDEPEND}" +RDEPEND=" + media-video/ffmpeg:=[vaapi] + x11-libs/libdrm +" +DEPEND=" + ${RDEPEND} +" QA_FLAGS_IGNORED="usr/bin/${PN}" @@ -148,23 +151,27 @@ pkg_setup() { 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" + ./"$(cargo_target_dir)/${PN}" --generate-completions bash > "${S}/wl-screenrec" || \ + die "Could not generate bash completion" + ./"$(cargo_target_dir)/${PN}" --generate-completions fish > "${S}/wl-screenrec.fish" || \ + die "Could not generate fish completion" + ./"$(cargo_target_dir)/${PN}" --generate-completions zsh > "${S}/_wl-screenrec" || \ + die "Could not generate zsh completion" } src_install() { cargo_src_install - dobashcomp "${S}/wl-screenrec.bash" - dofishcomp "${S}/wl-screenrec.fish" - dozshcomp "${S}/wl-screenrec.zsh" + dobashcomp "${S}/wl-screenrec" || die "Could not install bash completion" + dofishcomp "${S}/wl-screenrec.fish" || die "Could not install fish completion" + dozshcomp "${S}/_wl-screenrec" || die "Could not install zsh completion" } pkg_postinst() { - elog "To use this software, you need vaapi encoding support." - elog "You also need a wayland compositor that supports the" + elog "You need a wayland compositor that supports the" elog "following unstable protocols:" elog " - wlr-output-management-unstable-v1" elog " - wlr-screencopy-unstable-v1" + elog "You should also make sure you have the correct librairies" + elog "installed. See: https://trac.ffmpeg.org/wiki/Hardware/VAAPI" }