mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 13:33:32 -04:00
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@pm.me>
This commit is contained in:
@@ -9,4 +9,7 @@
|
|||||||
<remote-id type="github">sxyazi/yazi</remote-id>
|
<remote-id type="github">sxyazi/yazi</remote-id>
|
||||||
<bugs-to>https://github.com/sxyazi/yazi/issues</bugs-to>
|
<bugs-to>https://github.com/sxyazi/yazi/issues</bugs-to>
|
||||||
</upstream>
|
</upstream>
|
||||||
|
<use>
|
||||||
|
<flag name="cli">Install CLI Data Distribution Service</flag>
|
||||||
|
</use>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
|||||||
@@ -324,7 +324,11 @@ LICENSE+="
|
|||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
IUSE="+cli"
|
||||||
|
|
||||||
|
QA_FLAGS_IGNORED="
|
||||||
|
usr/bin/ya.*
|
||||||
|
"
|
||||||
|
|
||||||
DOCS=(
|
DOCS=(
|
||||||
README.md
|
README.md
|
||||||
@@ -336,13 +340,26 @@ src_prepare() {
|
|||||||
eapply_user
|
eapply_user
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cargo_src_compile
|
||||||
|
use cli && cargo_src_compile -p "${PN}-cli"
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
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}"
|
newbashcomp "${S}/yazi-boot/completions/${PN}.bash" "${PN}"
|
||||||
dozshcomp "${S}/yazi-boot/completions/_${PN}"
|
dozshcomp "${S}/yazi-boot/completions/_${PN}"
|
||||||
dofishcomp "${S}/yazi-boot/completions/${PN}.fish"
|
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"
|
domenu "assets/${PN}.desktop"
|
||||||
einstalldocs
|
einstalldocs
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user