<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/f64648a35d0fda24a84290e715f6351e3edaa17b">https://github.com/macports/macports-ports/commit/f64648a35d0fda24a84290e715f6351e3edaa17b</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 f64648a35d0 fd: Generate bash and fish completions
</span>f64648a35d0 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit f64648a35d0fda24a84290e715f6351e3edaa17b
</span>Author: Keto <therealketo@gmail.com>
AuthorDate: Tue Sep 19 21:34:00 2023 -0400

<span style='display:block; white-space:pre;color:#404040;'>    fd: Generate bash and fish completions
</span>---
 sysutils/fd/Portfile | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/fd/Portfile b/sysutils/fd/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f12bfb24cdd..be59b912017 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/fd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/fd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup           github  1.0
</span> 
 github.setup        sharkdp fd 8.7.0 v
 github.tarball_from archive
<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         simple, fast and user-friendly alternative to find
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,12 +27,11 @@ checksums           ${distname}${extract.suffix} \
</span>                     sha256  13da15f3197d58a54768aaad0099c80ad2e9756dd1b0c7df68c413ad2d5238c9 \
                     size    116286
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-pre-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    file mkdir ${worksrcpath}/shell_completions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    system -W ${worksrcpath} "target/[cargo.rust_platform]/release/${name} --gen-completions bash > ${name}.bash"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    system -W ${worksrcpath} "target/[cargo.rust_platform]/release/${name} --gen-completions fish > ${name}.fish"
</span> }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.env-append    SHELL_COMPLETIONS_DIR=shell_completions
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> destroot {
     xinstall -m 0755 \
         ${worksrcpath}/target/[cargo.rust_platform]/release/${name} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,6 +51,16 @@ destroot {
</span>     xinstall -m 0644 \
         ${worksrcpath}/contrib/completion/_fd \
         ${destroot}${prefix}/share/zsh/site-functions/_fd
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d ${destroot}${prefix}/share/bash-completion/completions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -m 0644 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${worksrcpath}/${name}.bash \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${destroot}${prefix}/share/bash-completion/completions/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d ${destroot}${prefix}/share/fish/vendor_completions.d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -m 0644 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${worksrcpath}/${name}.fish \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${destroot}${prefix}/share/fish/vendor_completions.d
</span> }
 
 cargo.crates \
</pre><pre style='margin:0'>

</pre>