git: 76c5d932b983 - main - sysutils/bottom: Build and install manpages and shell completions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Sep 2022 15:05:27 UTC
The branch main has been updated by adamw: URL: https://cgit.FreeBSD.org/ports/commit/?id=76c5d932b98351e367f18abd1d38e7eb0fc803bc commit 76c5d932b98351e367f18abd1d38e7eb0fc803bc Author: Adam Weinberger <adamw@FreeBSD.org> AuthorDate: 2022-09-27 15:05:09 +0000 Commit: Adam Weinberger <adamw@FreeBSD.org> CommitDate: 2022-09-27 15:05:23 +0000 sysutils/bottom: Build and install manpages and shell completions --- sysutils/bottom/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sysutils/bottom/Makefile b/sysutils/bottom/Makefile index 571e9deca840..048631560d58 100644 --- a/sysutils/bottom/Makefile +++ b/sysutils/bottom/Makefile @@ -1,5 +1,6 @@ PORTNAME= bottom DISTVERSION= 0.6.8-r20220909 +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= adamw@FreeBSD.org @@ -14,11 +15,18 @@ USE_GITHUB= yes GH_ACCOUNT= ClementTsang GH_TAGNAME= 7218918 -PLIST_FILES= bin/btm PORTDOCS= * +PLIST_FILES= bin/btm \ + man/man1/btm.1.gz \ + share/bash-completion/completions/btm.bash \ + share/fish/vendor_completions.d/btm.fish \ + share/zsh/site-functions/_btm OPTIONS_DEFINE= DOCS +# Build manpages and shell completion +CARGO_ENV+= BTM_GENERATE=true + CARGO_CRATES= addr2line-0.17.0 \ adler-1.0.2 \ aho-corasick-0.7.18 \ @@ -203,8 +211,13 @@ CARGO_CRATES= addr2line-0.17.0 \ winapi-x86_64-pc-windows-gnu-0.4.0 \ wrapcenum-derive-0.4.0 +GEN_DIR= ${WRKDIR}/bottom-*/target/tmp/bottom post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/btm + ${INSTALL_MAN} ${GEN_DIR}/manpage/btm.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + ${INSTALL_DATA} ${GEN_DIR}/completion/btm.bash ${STAGEDIR}${PREFIX}/share/bash-completion/completions + ${INSTALL_DATA} ${GEN_DIR}/completion/btm.fish ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d + ${INSTALL_DATA} ${GEN_DIR}/completion/_btm ${STAGEDIR}${PREFIX}/share/zsh/site-functions post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR}