<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6a64723982290941c2ca5b6530347331eab2af3d">https://github.com/macports/macports-ports/commit/6a64723982290941c2ca5b6530347331eab2af3d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 6a647239822 bat: add man and shell completions
</span>6a647239822 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 6a64723982290941c2ca5b6530347331eab2af3d
</span>Author: Maksim Fomkin <maxxfm@gmail.com>
AuthorDate: Sat Mar 13 19:58:51 2021 +0200

<span style='display:block; white-space:pre;color:#404040;'>    bat: add man and shell completions
</span>---
 textproc/bat/Portfile       | 17 ++++++++++++++++-
 textproc/bat/files/bat.bash |  1 +
 2 files changed, 17 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/bat/Portfile b/textproc/bat/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e4c64850007..fda990a5f36 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/bat/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/bat/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup           github 1.0
</span> PortGroup           cargo 1.0
 
 github.setup        sharkdp bat 0.18.0 v
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> 
 description         A cat(1) clone with syntax highlighting and Git integration.
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,6 +31,21 @@ destroot {
</span>     xinstall -m 755 \
         ${worksrcpath}/target/[cargo.rust_platform]/release/${name} \
         ${destroot}${prefix}/bin/
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    set assets_path [glob ${worksrcpath}/target/[cargo.rust_platform]/release/build/${name}-*]/out/assets/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Install man
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -m 644 ${assets_path}/manual/${name}.1 ${destroot}${prefix}/share/man/man1/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Install shell completions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    set bash_comp_path ${destroot}${prefix}/share/bash-completion/completions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d ${bash_comp_path}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Use simple _longopt-based completions file until bat ships with its own bash completions file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -m 644 ${filespath}/bat.bash ${bash_comp_path}/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    set zsh_comp_path ${destroot}${prefix}/share/zsh/site-functions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d ${zsh_comp_path}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -m 644 ${assets_path}/completions/${name}.zsh ${zsh_comp_path}/_${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    set fish_comp_path ${destroot}${prefix}/share/fish/completions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d ${fish_comp_path}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -m 644 ${assets_path}/completions/${name}.fish ${fish_comp_path}
</span> }
 
 cargo.crates \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/bat/files/bat.bash b/textproc/bat/files/bat.bash
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..0338a90ac5c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/bat/files/bat.bash
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+complete -F _longopt bat
</span></pre><pre style='margin:0'>

</pre>