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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BA7B01581C1 for ; Sat, 6 Jul 2024 08:33:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03D40E2B12; Sat, 6 Jul 2024 08:33:52 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D8F55E2B13 for ; Sat, 6 Jul 2024 08:33:51 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 31E12343051 for ; Sat, 6 Jul 2024 08:33:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 870331DE0 for ; Sat, 6 Jul 2024 08:33:47 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1720254822.5dccc19fd20977139473a777023883dd7c67e163.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/ripgrep/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/ripgrep/ripgrep-14.1.0-r1.ebuild X-VCS-Directories: sys-apps/ripgrep/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 5dccc19fd20977139473a777023883dd7c67e163 X-VCS-Branch: master Date: Sat, 6 Jul 2024 08:33:47 +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: c29b8161-20a0-4bc8-8381-af47742a6e22 X-Archives-Hash: 513f0b781351b7d39e246e8bd8f6bf58 commit: 5dccc19fd20977139473a777023883dd7c67e163 Author: Michał Górny gentoo org> AuthorDate: Sat Jul 6 08:31:39 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Jul 6 08:33:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dccc19f sys-apps/ripgrep: Optimize generator calls Signed-off-by: Michał Górny gentoo.org> sys-apps/ripgrep/ripgrep-14.1.0-r1.ebuild | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/sys-apps/ripgrep/ripgrep-14.1.0-r1.ebuild b/sys-apps/ripgrep/ripgrep-14.1.0-r1.ebuild index 3fa239d3ba2e..d4bc8a7fe4fc 100644 --- a/sys-apps/ripgrep/ripgrep-14.1.0-r1.ebuild +++ b/sys-apps/ripgrep/ripgrep-14.1.0-r1.ebuild @@ -98,22 +98,15 @@ src_configure() { src_install() { cargo_src_install - newbashcomp - rg <<-EOF - $("$(cargo_target_dir)"/rg --generate complete-bash) - EOF + local gen=( "$(cargo_target_dir)"/rg --generate ) + newbashcomp - rg < <( "${gen[@]}" complete-bash || die ) insinto /usr/share/fish/vendor_completions.d - newins - rg.fish <<-EOF - $("$(cargo_target_dir)"/rg --generate complete-fish) - EOF + newins - rg.fish < <( "${gen[@]}" complete-fish || die ) insinto /usr/share/zsh/site-functions - newins - _rg <<-EOF - $("$(cargo_target_dir)"/rg --generate complete-zsh) - EOF + newins - _rg < <( "${gen[@]}" complete-zsh || die ) dodoc CHANGELOG.md FAQ.md GUIDE.md README.md - newman - rg.1 <<-EOF - $("$(cargo_target_dir)"/rg --generate man) - EOF + newman - rg.1 < <( "${gen[@]}" man || die ) }