commit:     f1450d863be954e2a8f17c588370a7dfe67af2eb
Author:     Randy Barlow <randy <AT> electronsweatshop <DOT> com>
AuthorDate: Sun Dec  8 16:11:00 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Jan  3 17:06:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1450d86

app-shells/starship: Use optfeature for fonts

These fonts seem to work decently well with starship in my experience,
but they are not the only suitable fonts. The user can install any
nerdfont they wish as described by uptsream's documentation.

starship doesn't require fonts to be installed on the same machine it is
running on necessarily. For example, if starship is installed on a
remote system accessed via ssh, the fonts should be installed on the
client machine.

Signed-off-by: Randy Barlow <randy <AT> electronsweatshop.com>
Closes: https://github.com/gentoo/gentoo/pull/39636
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../{starship-1.21.1.ebuild => starship-1.21.1-r1.ebuild}         | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/app-shells/starship/starship-1.21.1.ebuild 
b/app-shells/starship/starship-1.21.1-r1.ebuild
similarity index 98%
rename from app-shells/starship/starship-1.21.1.ebuild
rename to app-shells/starship/starship-1.21.1-r1.ebuild
index d025f86408d2..d090c5a8c639 100644
--- a/app-shells/starship/starship-1.21.1.ebuild
+++ b/app-shells/starship/starship-1.21.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2024 Gentoo Authors
+# Copyright 2022-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -397,7 +397,7 @@ CRATES="
 "
 
 RUST_MIN_VER="1.80.0"
-inherit cargo
+inherit cargo optfeature
 
 DESCRIPTION="The minimal, blazing-fast, and infinitely customizable prompt for 
any shell"
 HOMEPAGE="https://starship.rs/";
@@ -436,3 +436,7 @@ src_install() {
        cargo_src_install
        dodoc README.md
 }
+
+pkg_postinst() {
+       optfeature "font support" media-fonts/iosevka media-fonts/noto-emoji
+}

Reply via email to