summaryrefslogtreecommitdiff
path: root/sysutils/tailspin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/tailspin/Makefile')
-rw-r--r--sysutils/tailspin/Makefile34
1 files changed, 20 insertions, 14 deletions
diff --git a/sysutils/tailspin/Makefile b/sysutils/tailspin/Makefile
index 20e8024882bc..ebcc3da0a2b6 100644
--- a/sysutils/tailspin/Makefile
+++ b/sysutils/tailspin/Makefile
@@ -1,5 +1,6 @@
PORTNAME= tailspin
-DISTVERSION= 5.4.5
+DISTVERSION= 5.5.0
+PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= tagattie@FreeBSD.org
@@ -14,26 +15,27 @@ USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= bensadeh
-PLIST_FILES= bin/tspin \
- etc/bash_completion.d/tspin \
- share/fish/completions/tspin.fish \
- share/man/man1/tspin.1.gz \
- share/zsh/site-functions/_tspin
-
+PLIST_FILES= bin/tspin
PORTDOCS= CHANGELOG.md README.md
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= COMPLETIONS DOCS MANPAGES
+OPTIONS_DEFAULT=COMPLETIONS MANPAGES
-post-install:
- ${INSTALL_MAN} ${WRKSRC}/man/tspin.1 \
- ${STAGEDIR}${PREFIX}/share/man/man1
- @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
+COMPLETIONS_DESC= Build and/or install shell completions
+
+COMPLETIONS_PLIST_FILES=etc/bash_completion.d/tspin \
+ share/fish/completions/tspin.fish \
+ share/zsh/site-functions/_tspin
+MANPAGES_PLIST_FILES= share/man/man1/tspin.1.gz
+
+post-install-COMPLETIONS-on:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d \
+ ${STAGEDIR}${PREFIX}/share/fish/completions \
+ ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/completions/tspin.bash \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/tspin
- @${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
${INSTALL_DATA} ${WRKSRC}/completions/tspin.fish \
${STAGEDIR}${PREFIX}/share/fish/completions/tspin.fish
- @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/completions/tspin.zsh \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_tspin
@@ -41,4 +43,8 @@ post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+post-install-MANPAGES-on:
+ ${INSTALL_MAN} ${WRKSRC}/man/tspin.1 \
+ ${STAGEDIR}${PREFIX}/share/man/man1
+
.include <bsd.port.mk>