aboutsummaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2008-12-05 21:20:00 +0800
committerdes <des@FreeBSD.org>2008-12-05 21:20:00 +0800
commit82d7692a66f67c558079b17faf417fc88a937a35 (patch)
treeec4296a54f0a5557f2f47af6454e7e85955cf4b5 /shells
parent159d9820ded45f10b0688eb0e7d166a531565d7a (diff)
downloadfreebsd-ports-gnome-82d7692a66f67c558079b17faf417fc88a937a35.tar.gz
freebsd-ports-gnome-82d7692a66f67c558079b17faf417fc88a937a35.tar.zst
freebsd-ports-gnome-82d7692a66f67c558079b17faf417fc88a937a35.zip
Precompile functions and completion definitions at installation time.
Submitted by: Baptiste Daroussin <baptiste.daroussin@gmail.com>
Diffstat (limited to 'shells')
-rw-r--r--shells/zsh/Makefile8
-rw-r--r--shells/zsh/pkg-plist24
2 files changed, 31 insertions, 1 deletions
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile
index 0bfcf1fe8724..b351cb7907a6 100644
--- a/shells/zsh/Makefile
+++ b/shells/zsh/Makefile
@@ -7,7 +7,7 @@
PORTNAME= zsh
PORTVERSION= 4.3.9
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= shells
MASTER_SITES= SF
.if !defined(NOPORTDOCS)
@@ -124,5 +124,11 @@ post-install:
@(${GREP} -v ${PREFIX}/bin/zsh ${SHELLS}.bak; \
${ECHO_CMD} ${PREFIX}/bin/zsh) > ${SHELLS}
@${RM} ${SHELLS}.bak
+ @${PREFIX}/bin/zsh -fc ' \
+ setopt extendedglob; \
+ for i in ${DATADIR}/${ZSH_VER}/functions/**/*(/) ; do \
+ zcompile -U -M $$i.zwc $$i/*~*.zwc(^/) ; \
+ chmod 644 $$i.zwc ; \
+ done'
.include <bsd.port.post.mk>
diff --git a/shells/zsh/pkg-plist b/shells/zsh/pkg-plist
index 36979bfa0d9d..6d6a4dacc93b 100644
--- a/shells/zsh/pkg-plist
+++ b/shells/zsh/pkg-plist
@@ -830,6 +830,30 @@ bin/zsh-%%ZSH_VER%%
%%DATADIR%%/%%ZSH_VER%%/functions/Zle/which-command
%%DATADIR%%/%%ZSH_VER%%/functions/Zle/zed-set-file-name
%%DATADIR%%/%%ZSH_VER%%/scripts/newuser
+%%DATADIR%%/%%ZSH_VER%%/functions/Zle.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Zftp.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/VCS_Info/Backends.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/VCS_Info.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/TCP.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Prompts.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Newuser.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Misc.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/MIME.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Exceptions.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Zsh.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/X.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Unix.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Redhat.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Mandriva.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Linux.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Debian.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Darwin.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Cygwin.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Base.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/BSD.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion/AIX.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Completion.zwc
+%%DATADIR%%/%%ZSH_VER%%/functions/Calendar.zwc
@dirrm %%DATADIR%%/%%ZSH_VER%%/functions/Zle
@dirrm %%DATADIR%%/%%ZSH_VER%%/functions/Zftp
@dirrm %%DATADIR%%/%%ZSH_VER%%/functions/VCS_Info/Backends