summaryrefslogtreecommitdiff
path: root/shells/fish/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'shells/fish/Makefile')
-rw-r--r--shells/fish/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/shells/fish/Makefile b/shells/fish/Makefile
index 46eca7926d61..5575f818070b 100644
--- a/shells/fish/Makefile
+++ b/shells/fish/Makefile
@@ -1,8 +1,12 @@
PORTNAME= fish
-DISTVERSION= 3.7.1
+DISTVERSION= 4.0.2
CATEGORIES= shells
MASTER_SITES= https://github.com/fish-shell/fish-shell/releases/download/${PORTVERSION}/
+PATCH_SITES= https://github.com/fish-shell/fish-shell/pull/
+# https://github.com/fish-shell/fish-shell/pull/11486
+PATCHFILES+= 11486.patch:-p1
+
MAINTAINER= asomers@FreeBSD.org
COMMENT= User friendly command line shell
WWW= https://fishshell.com/
@@ -10,14 +14,19 @@ WWW= https://fishshell.com/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
+BUILD_DEPENDS= ${RUST_DEFAULT}>=1.70.0:lang/${RUST_DEFAULT}
LIB_DEPENDS= libpcre2-32.so:devel/pcre2
# The python dependency is only needed by shebangfix. At runtime python is
# only needed by some optional scripts that aren't in PATH.
-USES= cmake compiler:c++11-lang cpe localbase ncurses python:env \
- shebangfix tar:xz
+USES= cargo cmake cpe localbase ncurses python:env shebangfix tar:xz
+DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}
CPE_VENDOR= fishshell
SHEBANG_FILES= share/tools/*.py share/tools/web_config/webconfig.py
+# We need USES=cargo for fetching crates. But the actual build is done by
+# cmake.
+CARGO_BUILD= no
+CARGO_INSTALL= no
CONFLICTS_INSTALL= comms/mlan3