diff --git a/sysutils/smug/Makefile b/sysutils/smug/Makefile index ebbb2cecc362..64efa08473cf 100644 --- a/sysutils/smug/Makefile +++ b/sysutils/smug/Makefile @@ -1,49 +1,49 @@ PORTNAME= smug DISTVERSIONPREFIX= v DISTVERSION= 0.3.2 PORTREVISION= 4 CATEGORIES= sysutils MAINTAINER= lcook@FreeBSD.org COMMENT= Session manager and task runner for tmux WWW= https://github.com/ivaaaan/smug LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= tmux:sysutils/tmux USES= go:modules GO_MODULE= github.com/ivaaaan/${PORTNAME} GO_BUILDFLAGS= -ldflags "\ -s -w \ -X main.Version=${DISTVERSIONFULL}" PLIST_FILES= bin/${PORTNAME} PORTDOCS= CODE_OF_CONDUCT.md README.md OPTIONS_DEFINE= COMPLETIONS DOCS MANPAGES OPTIONS_DEFAULT= COMPLETIONS MANPAGES COMPLETIONS_DESC= Install bash and fish shell completions COMPLETIONS_PLIST_FILES= share/bash-completion/completions/${PORTNAME} \ share/fish/vendor_completions.d/${PORTNAME}.fish MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz post-install-COMPLETIONS-on: - ${INSTALL_DATA} ${WRKSRC}/completion/${PORTNAME}.bash \ - ${STAGEDIR}${PREFIX}/share/bash-completion/completions/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/completion/${PORTNAME}.fish \ - ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/${PORTNAME}.fish +.for _shell in bash fish + ${INSTALL_DATA} ${WRKSRC}/completion/${PORTNAME}.${_shell} \ + ${STAGEDIR}${PREFIX}/${COMPLETIONS_PLIST_FILES:M*${_shell}*} +.endfor post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \ ${STAGEDIR}${DOCSDIR} post-install-MANPAGES-on: ${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1 \ ${STAGEDIR}${MAN1PREFIX}/man/man1 .include