<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2fd3545b0c26d58c6fb3b4ff41e6a97aeef65e3a">https://github.com/macports/macports-ports/commit/2fd3545b0c26d58c6fb3b4ff41e6a97aeef65e3a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 2fd3545b0c26d58c6fb3b4ff41e6a97aeef65e3a
</span>Author: Austin Ziegler <austin@zieglers.ca>
AuthorDate: Sun Oct 29 20:13:45 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> fnm: fix fish completions location
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> `$destroot/$prefix/share/fish/completions` is for the completion files
</span><span style='display:block; white-space:pre;color:#404040;'> included with fish, not for use by package
</span><span style='display:block; white-space:pre;color:#404040;'> managers installing additional files. The correct location is
</span><span style='display:block; white-space:pre;color:#404040;'> `$destroot/$prefix/share/fish/vendor_completions.d`.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This change leaves the completion generated commented out, but makes it
</span><span style='display:block; white-space:pre;color:#404040;'> point to the correct place if the decision is made to reintroduce this
</span><span style='display:block; white-space:pre;color:#404040;'> (I think it should be reintroduced, as is done with `ripgrep/Portfile`).
</span>---
devel/fnm/Portfile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/fnm/Portfile b/devel/fnm/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6b14f13b7a8..f570d4e0329 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/fnm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/fnm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup cargo 1.0
</span>
github.setup Schniz fnm 1.35.1 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 Fast and simple Node.js version manager, built in Rust
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -50,7 +50,7 @@ post-destroot {
</span> # system "${fnm_bin} completions --shell=zsh > ${zsh_completion_dir}/_${name}"
#
# # fish completion
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# set fish_completion_dir ${destroot}${prefix}/share/fish/completions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# set fish_completion_dir ${destroot}${prefix}/share/fish/vendor_completions.d
</span> # xinstall -d ${fish_completion_dir}
# system "${fnm_bin} completions --shell=fish > ${fish_completion_dir}/${name}.fish"
}
</pre><pre style='margin:0'>
</pre>