From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 EB7F41582EF for ; Sat, 08 Mar 2025 11:41:44 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id CCCE9340C53 for ; Sat, 08 Mar 2025 11:41:44 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id BB6D3110105; Sat, 08 Mar 2025 11:41:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id B044F110105 for ; Sat, 08 Mar 2025 11:41:43 +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 54620340C57 for ; Sat, 08 Mar 2025 11:41:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B2768280C for ; Sat, 08 Mar 2025 11:41:41 +0000 (UTC) From: "Saad Abdullah" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Saad Abdullah" Message-ID: <1741434058.611129d1c5425587cc201724bb37f035a3b1355c.ingenarelitems@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/yazi/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-misc/yazi/yazi-9999.ebuild X-VCS-Directories: app-misc/yazi/ X-VCS-Committer: ingenarelitems X-VCS-Committer-Name: Saad Abdullah X-VCS-Revision: 611129d1c5425587cc201724bb37f035a3b1355c X-VCS-Branch: dev Date: Sat, 08 Mar 2025 11:41:41 +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: ab717c2e-f85d-4c37-ab64-9833fc9ac7f3 X-Archives-Hash: 81ceeb322a65e7ddbc251f214445b139 commit: 611129d1c5425587cc201724bb37f035a3b1355c Author: ingenarel gmail com> AuthorDate: Sat Mar 8 11:40:30 2025 +0000 Commit: Saad Abdullah gmail com> CommitDate: Sat Mar 8 11:40:58 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=611129d1 app-misc/yazi: add 9999 Signed-off-by: ingenarel gmail.com> app-misc/yazi/yazi-9999.ebuild | 74 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/app-misc/yazi/yazi-9999.ebuild b/app-misc/yazi/yazi-9999.ebuild new file mode 100644 index 000000000..f82f02011 --- /dev/null +++ b/app-misc/yazi/yazi-9999.ebuild @@ -0,0 +1,74 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cargo git-r3 desktop shell-completion xdg + +DESCRIPTION="Blazing fast terminal file manager written in Rust, based on async I/O." +HOMEPAGE="https://yazi-rs.github.io" +EGIT_REPO_URI="https://github.com/sxyazi/yazi.git" + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" +Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0 +CC0-1.0 ISC MIT MPL-2.0 UoI-NCSA Unicode-3.0 ZLIB +" + +SLOT="0" +IUSE="+cli" + +QA_FLAGS_IGNORED=" +usr/bin/ya.* +" + +RDEPEND=" +dev-libs/oniguruma +" +DEPEND="${RDEPEND}" + +DOCS=( + "README.md" + "yazi-config/preset/keymap-default.toml" + "yazi-config/preset/theme-dark.toml" + "yazi-config/preset/theme-light.toml" + "yazi-config/preset/yazi-default.toml" +) + +src_unpack() { + git-r3_src_unpack + cargo_live_src_unpack +} + +src_prepare() { + export YAZI_GEN_COMPLETIONS=true + sed -i -r 's/strip\s+= true/strip = false/' Cargo.toml || die "Sed failed!" + eapply_user +} + +src_compile() { + # workaround for GCC 15 issues: + # unvendor libonig from rust-onig. see bugs 943785, 945008 + export RUSTONIG_SYSTEM_LIBONIG=1 + cargo_src_compile + use cli && cargo_src_compile -p "${PN}-cli" +} + +src_install() { + dobin "$(cargo_target_dir)/${PN}" + use cli && dobin "$(cargo_target_dir)/ya" + + newbashcomp "${S}/yazi-boot/completions/${PN}.bash" "${PN}" + dozshcomp "${S}/yazi-boot/completions/_${PN}" + dofishcomp "${S}/yazi-boot/completions/${PN}.fish" + + if use cli; then + newbashcomp "${S}/yazi-cli/completions/ya.bash" "ya" + dozshcomp "${S}/yazi-cli/completions/_ya" + dofishcomp "${S}/yazi-cli/completions/ya.fish" + fi + + domenu "assets/${PN}.desktop" + einstalldocs +}