aboutsummaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2020-08-06 21:06:47 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2020-08-06 21:06:47 +0000
commit7362a40870e98f547c49f03629e5104dc02eaec6 (patch)
tree14e01a87ca9f9a04771b0fb42174cc0dd6810c8d /shells
parenta85a666bb2dce99a7b4de4efb78830f9b6d10f35 (diff)
downloadports-7362a40870e98f547c49f03629e5104dc02eaec6.tar.gz
ports-7362a40870e98f547c49f03629e5104dc02eaec6.zip
shells/starship: Make fonts optional
PR: 248506 Submitted by: Trond.Endrestol@ximalas.info
Notes
Notes: svn path=/head/; revision=544294
Diffstat (limited to 'shells')
-rw-r--r--shells/starship/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/shells/starship/Makefile b/shells/starship/Makefile
index 12b44f525dc7..46a1d7e4aa70 100644
--- a/shells/starship/Makefile
+++ b/shells/starship/Makefile
@@ -2,6 +2,7 @@
PORTNAME= starship
DISTVERSION= 0.44.0
+PORTREVISION= 1
CATEGORIES= shells
MASTER_SITES= CRATESIO
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@@ -14,7 +15,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libgit2.so:devel/libgit2 \
libssh2.so:security/libssh2
-RUN_DEPENDS= nerd-fonts>0:x11-fonts/nerd-fonts
USES= cargo ssl
@@ -178,6 +178,11 @@ CARGO_CRATES= aho-corasick-0.7.13 \
PLIST_FILES= bin/${PORTNAME}
+OPTIONS_DEFINE= FONTS
+OPTIONS_DEFAULT= FONTS
+FONTS_DESC= Install fonts
+FONTS_RUN_DEPENDS= nerd-fonts>0:x11-fonts/nerd-fonts
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}