public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-misc/yazi/
Date: Thu, 27 Jun 2024 08:41:31 +0000 (UTC)	[thread overview]
Message-ID: <1719426549.c4c7b4ddfa1acf456f8d214fa3cd28a00b0e3231.davidroman@gentoo> (raw)

commit:     c4c7b4ddfa1acf456f8d214fa3cd28a00b0e3231
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Wed Jun 26 18:22:48 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Jun 26 18:29:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c4c7b4dd

app-misc/yazi: Added USE flag 'cli'

This USE flag enables the DDS (Data Distribution Service).
See https://yazi-rs.github.io/docs/dds
An additional binary 'ya' will be compiled/installed.
It's not installed by default by upstream, that's why I don't install it
unconditionally but rather with a USE flag. May change in the future.

cc: @micielski

Signed-off-by: Jonas Frei <freijon <AT> pm.me>

 app-misc/yazi/metadata.xml                          |  3 +++
 .../{yazi-0.2.5.ebuild => yazi-0.2.5-r1.ebuild}     | 21 +++++++++++++++++++--
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/app-misc/yazi/metadata.xml b/app-misc/yazi/metadata.xml
index d626eca12..928f3e53f 100644
--- a/app-misc/yazi/metadata.xml
+++ b/app-misc/yazi/metadata.xml
@@ -9,4 +9,7 @@
 		<remote-id type="github">sxyazi/yazi</remote-id>
 		<bugs-to>https://github.com/sxyazi/yazi/issues</bugs-to>
 	</upstream>
+	<use>
+		<flag name="cli">Install CLI Data Distribution Service</flag>
+	</use>
 </pkgmetadata>

diff --git a/app-misc/yazi/yazi-0.2.5.ebuild b/app-misc/yazi/yazi-0.2.5-r1.ebuild
similarity index 94%
rename from app-misc/yazi/yazi-0.2.5.ebuild
rename to app-misc/yazi/yazi-0.2.5-r1.ebuild
index 18d4cfc90..6db0d5ffb 100644
--- a/app-misc/yazi/yazi-0.2.5.ebuild
+++ b/app-misc/yazi/yazi-0.2.5-r1.ebuild
@@ -324,7 +324,11 @@ LICENSE+="
 SLOT="0"
 KEYWORDS="~amd64"
 
-QA_FLAGS_IGNORED="usr/bin/${PN}"
+IUSE="+cli"
+
+QA_FLAGS_IGNORED="
+	usr/bin/ya.*
+"
 
 DOCS=(
 	README.md
@@ -336,13 +340,26 @@ src_prepare() {
 	eapply_user
 }
 
+src_compile() {
+	cargo_src_compile
+	use cli && cargo_src_compile -p "${PN}-cli"
+}
+
 src_install() {
-	dobin target/$(usex debug debug release)/yazi
+	dobin "target/$(usex debug debug release)/${PN}"
+	use cli && dobin "target/$(usex debug debug release)/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
 }


             reply	other threads:[~2024-06-27  8:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-27  8:41 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-10 11:04 [gentoo-commits] repo/proj/guru:master commit in: app-misc/yazi/ David Roman
2025-03-08 11:18 Lucio Sauer
2025-02-17  9:49 David Roman
2025-02-17  9:49 David Roman
2025-02-13  9:56 David Roman
2025-01-02 19:28 David Roman
2025-01-02 18:46 [gentoo-commits] repo/proj/guru:dev " David Roman
2025-01-02 19:26 ` [gentoo-commits] repo/proj/guru:master " David Roman
2024-10-08 10:23 David Roman
2024-09-15 21:45 Julien Roy
2024-09-08 16:32 David Roman
2024-08-30 13:16 David Roman
2024-06-27  8:41 David Roman
2024-05-14 15:51 Julien Roy
2024-05-14 15:51 Julien Roy
2024-04-16  7:06 Florian Schmaus
2024-04-15 20:52 Julien Roy
2024-02-23 13:11 David Roman
2024-02-23 13:10 David Roman
2024-01-17 13:51 David Roman
2024-01-01  3:56 David Roman
2024-01-01  3:56 David Roman
2023-10-08 20:58 David Roman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1719426549.c4c7b4ddfa1acf456f8d214fa3cd28a00b0e3231.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox