You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
bottom: install man page and completions
This commit is contained in:
@@ -6,7 +6,7 @@ PortGroup github 1.0
|
||||
|
||||
github.setup ClementTsang bottom 0.14.3
|
||||
github.tarball_from archive
|
||||
revision 0
|
||||
revision 1
|
||||
|
||||
description \
|
||||
Yet another cross-platform graphical process/system monitor
|
||||
@@ -27,13 +27,29 @@ checksums ${distname}${extract.suffix} \
|
||||
sha256 dca5cd43313c7d5c48bd78e95c778943a45b3cc0f418c368f9d2fe5b44456fa9 \
|
||||
size 3518112
|
||||
|
||||
build.env-append BTM_GENERATE=1
|
||||
|
||||
set exec_name btm
|
||||
|
||||
destroot {
|
||||
xinstall -m 0755 \
|
||||
${worksrcpath}/target/[cargo.rust_platform]/release/btm \
|
||||
${worksrcpath}/target/[cargo.rust_platform]/release/${exec_name} \
|
||||
${destroot}${prefix}/bin/
|
||||
# All supported shells: bash, fish, powershell, zsh, elvish, nushell, fig
|
||||
set comp_path(bash) ${destroot}${prefix}/share/bash-completion/completions/
|
||||
set comp_path(fish) ${destroot}${prefix}/share/fish/vendor_completions.d/
|
||||
set comp_path(zsh) ${destroot}${prefix}/share/zsh/site-functions/
|
||||
set comp_file(bash) ${exec_name}.bash
|
||||
set comp_file(fish) ${exec_name}.fish
|
||||
set comp_file(zsh) _${exec_name}
|
||||
foreach shell {bash zsh} {
|
||||
xinstall -d $comp_path(${shell})
|
||||
xinstall -m 0644 ${worksrcpath}/target/tmp/${name}/completion/$comp_file(${shell}) $comp_path(${shell})
|
||||
}
|
||||
xinstall -m 0644 ${worksrcpath}/target/tmp/${name}/manpage/${exec_name}.1 ${destroot}${prefix}/share/man/man1
|
||||
}
|
||||
|
||||
notes "${name} is installed as btm"
|
||||
notes "${name} is installed as ${exec_name}"
|
||||
|
||||
cargo.crates \
|
||||
aho-corasick 1.1.4 ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301 \
|
||||
|
||||
Reference in New Issue
Block a user