commit: 5dccc19fd20977139473a777023883dd7c67e163 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Jul 6 08:31:39 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> 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 <mgorny <AT> 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 ) }