1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

sysutils/smug: Simplify shell completion installation

This commit is contained in:
Lewis Cook 2022-12-13 20:46:02 +00:00
parent d7308cf12f
commit da864ad356

View File

@ -32,10 +32,10 @@ COMPLETIONS_PLIST_FILES= share/bash-completion/completions/${PORTNAME} \
MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz
post-install-COMPLETIONS-on: post-install-COMPLETIONS-on:
${INSTALL_DATA} ${WRKSRC}/completion/${PORTNAME}.bash \ .for _shell in bash fish
${STAGEDIR}${PREFIX}/share/bash-completion/completions/${PORTNAME} ${INSTALL_DATA} ${WRKSRC}/completion/${PORTNAME}.${_shell} \
${INSTALL_DATA} ${WRKSRC}/completion/${PORTNAME}.fish \ ${STAGEDIR}${PREFIX}/${COMPLETIONS_PLIST_FILES:M*${_shell}*}
${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/${PORTNAME}.fish .endfor
post-install-DOCS-on: post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}