mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
sysutils/bottom: Build and install manpages and shell completions
This commit is contained in:
parent
54610a8baa
commit
76c5d932b9
1 changed files with 14 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue