public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jonas Frei" <freijon@pm.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/yazi/
Date: Wed, 26 Jun 2024 18:30:00 +0000 (UTC)	[thread overview]
Message-ID: <1719426549.c4c7b4ddfa1acf456f8d214fa3cd28a00b0e3231.freijon@gentoo> (raw)

commit:     c4c7b4ddfa1acf456f8d214fa3cd28a00b0e3231
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Wed Jun 26 18:22:48 2024 +0000
Commit:     Jonas Frei <freijon <AT> pm <DOT> me>
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-26 18:30 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-26 18:30 Jonas Frei [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-08 11:41 [gentoo-commits] repo/proj/guru:dev commit in: app-misc/yazi/ Saad Abdullah
2025-03-08 11:03 Saad Abdullah
2025-02-15 16:57 demize
2025-02-15 16:57 demize
2025-02-12 19:31 demize
2025-01-02 19:07 f00wl
2025-01-02 18:46 David Roman
2024-10-08  0:13 Amano Kenji
2024-09-15 11:09 f00wl
2024-09-07 20:42 f00wl
2024-08-28 15:37 Takuya Wakazono
2024-06-26 19:21 Jonas Frei
2024-05-14  8:10 Remigiusz Micielski
2024-05-14  8:04 Remigiusz Micielski
2024-04-16  3:52 Jonas Frei
2024-04-15 20:19 Jonas Frei
2024-02-23 12:18 Remigiusz Micielski
2024-02-23 12:18 Remigiusz Micielski
2024-01-27 11:50 Remigiusz Micielski
2024-01-17 10:02 Remigiusz Micielski
2024-01-01  3:26 Joe Kappus
2024-01-01  3:23 Joe Kappus
2023-10-08 13:38 Remigiusz Micielski

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.freijon@gentoo \
    --to=freijon@pm.me \
    --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