<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8a61216620c14e885ddf54d1fb8df5badb897d36">https://github.com/macports/macports-ports/commit/8a61216620c14e885ddf54d1fb8df5badb897d36</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 8a61216620c stgit: Add completion variants for Bash, Zsh, Fish
</span>8a61216620c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8a61216620c14e885ddf54d1fb8df5badb897d36
</span>Author: Vadim-Valdis Yudaev <judaew@outlook.de>
AuthorDate: Sat Mar 20 15:37:04 2021 +0200
<span style='display:block; white-space:pre;color:#404040;'> stgit: Add completion variants for Bash, Zsh, Fish
</span>---
devel/stgit/Portfile | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/stgit/Portfile b/devel/stgit/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 11ed864827a..5f61c46c994 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/stgit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/stgit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,6 +6,7 @@ PortGroup python 1.0
</span>
github.setup stacked-git stgit 1.0 v
github.tarball_from releases
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories devel python
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -59,6 +60,36 @@ post-destroot {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+default_variants +bash_completion
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant bash_completion {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set bash_compl_path ${prefix}/share/bash-completion/completions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${bash_compl_path}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/share/stgit/completion/stgit.bash \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${bash_compl_path}/stg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant zsh_completion {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set zsh_compl_path ${prefix}/share/zsh/site-functions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${zsh_compl_path}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/share/stgit/completion/stgit.zsh \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${zsh_compl_path}/_stg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant fish_completion \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description {Enable completion support for Fish} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set fish_compl_path ${prefix}/share/fish/completions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${fish_compl_path}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/share/stgit/completion/stgit.fish \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${fish_compl_path}/stg.fish
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> variant html_man_docs \
description {Build and install documentation in HTML and manpage format} {
# Need to add post-destroot addition of extra docs...
</pre><pre style='margin:0'>
</pre>