app-misc/joshuto: use optfeature for the patched font hint
devicons 需要 media-fonts/nerd-fonts,属于可选运行时功能。 Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
1 parent
c3ae7c6256
commit
12fcbeb50e
1 file changed
+3
-7
@@ -8,7 +8,7 @@ EAPI=8
|
||||
CRATES="
|
||||
"
|
||||
|
||||
inherit cargo
|
||||
inherit cargo optfeature
|
||||
|
||||
DESCRIPTION="Terminal file manager inspired by ranger"
|
||||
HOMEPAGE="https://github.com/kamiyaa/joshuto"
|
||||
@@ -51,10 +51,6 @@ src_compile() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog ""
|
||||
elog "For proper devicons support, correct patched font is needed"
|
||||
elog "For example:"
|
||||
elog "https://github.com/ryanoasis/nerd-fonts"
|
||||
elog "or media-fonts/nerd-fonts"
|
||||
elog ""
|
||||
optfeature "devicons support, which needs a patched font" \
|
||||
media-fonts/nerd-fonts
|
||||
}
|
||||
Reference in new issue
Block a user