git: 3382cf278ef6 - main - sysutils/vagrant: Enable Bash and Zsh completions
Mateusz Piotrowski
0mp at FreeBSD.org
Fri Apr 16 13:50:44 UTC 2021
The branch main has been updated by 0mp:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3382cf278ef6245210cf256e9fcd2766351f1f73
commit 3382cf278ef6245210cf256e9fcd2766351f1f73
Author: Mateusz Piotrowski <0mp at FreeBSD.org>
AuthorDate: 2021-04-16 13:45:23 +0000
Commit: Mateusz Piotrowski <0mp at FreeBSD.org>
CommitDate: 2021-04-16 13:50:51 +0000
sysutils/vagrant: Enable Bash and Zsh completions
PR: 254297
Approved by: joe at thrallingpenguin.com (maintainer)
Differential Revision: https://reviews.freebsd.org/D29266
---
sysutils/vagrant/Makefile | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/sysutils/vagrant/Makefile b/sysutils/vagrant/Makefile
index 666e63918738..96562a2d1ada 100644
--- a/sysutils/vagrant/Makefile
+++ b/sysutils/vagrant/Makefile
@@ -3,7 +3,7 @@
PORTNAME= vagrant
PORTVERSION= 2.2.14
DISTVERSIONPREFIX= v
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils rubygems devel
MAINTAINER= joe at 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>
More information about the dev-commits-ports-all
mailing list