mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
Precompile functions and completion definitions at installation time.
Submitted by: Baptiste Daroussin <baptiste.daroussin@gmail.com>
This commit is contained in:
parent
b555c3ef00
commit
175c869d3f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=223811
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user