sysutils/vagrant: Enable Bash and Zsh completions
PR: 254297 Approved by: joe@thrallingpenguin.com (maintainer) Differential Revision: https://reviews.freebsd.org/D29266
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
PORTNAME= vagrant
|
||||
PORTVERSION= 2.2.14
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= sysutils rubygems devel
|
||||
|
||||
MAINTAINER= joe@thrallingpenguin.com
|
||||
@@ -61,6 +61,12 @@ RUBYGEM_ARGS= -l --no-document --no-update-sources \
|
||||
--ignore-dependencies --bindir=${STAGEDIR}${PREFIX}/bin
|
||||
GEM_ENV+= RB_USER_INSTALL=yes
|
||||
|
||||
OPTIONS_DEFINE= BASH ZSH
|
||||
OPTIONS_DEFAULT= BASH ZSH
|
||||
|
||||
BASH_PLIST_FILES= share/bash-completion/completions/vagrant
|
||||
ZSH_PLIST_FILES= share/share/zsh/site-functions/_vagrant
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' ${WRKSRC}/bin/vagrant
|
||||
|
||||
@@ -80,4 +86,12 @@ post-install:
|
||||
${RMDIR} ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER}/doc
|
||||
${RM} ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER}/gems/${PORTNAME}-${PORTVERSION}/.runner.sh
|
||||
|
||||
post-install-BASH-on:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
|
||||
${RLN} ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER}/gems/${PORTNAME}-${PORTVERSION}/contrib/bash/completion.sh ${STAGEDIR}${PREFIX}/share/bash-completion/completions/vagrant
|
||||
|
||||
post-install-ZSH-on:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/share/zsh/site-functions
|
||||
${RLN} ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER}/gems/${PORTNAME}-${PORTVERSION}/contrib/zsh/_vagrant ${STAGEDIR}${PREFIX}/share/share/zsh/site-functions
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
Reference in New Issue
Block a user