<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b8718a2e2655ad9b89ae631c5a0b6abeac08bbfe">https://github.com/macports/macports-ports/commit/b8718a2e2655ad9b89ae631c5a0b6abeac08bbfe</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 b8718a2e265 ollama: add completion variant; formatting
</span>b8718a2e265 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit b8718a2e2655ad9b89ae631c5a0b6abeac08bbfe
</span>Author: i0ntempest <i0ntempest@i0ntempest.com>
AuthorDate: Fri May 30 23:36:51 2025 +1000

<span style='display:block; white-space:pre;color:#404040;'>    ollama: add completion variant; formatting
</span>---
 llm/ollama/Portfile | 33 +++++++++++++++++++++++----------
 1 file changed, 23 insertions(+), 10 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/llm/ollama/Portfile b/llm/ollama/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6e1aff24280..15c352d8ee9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/llm/ollama/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/llm/ollama/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,6 @@ PortSystem          1.0
</span> PortGroup           golang 1.0
 
 go.setup            github.com/ollama/ollama 0.9.0 v
<span style='display:block; white-space:pre;background:#ffe0e0;'>-go.offline_build    no
</span> github.tarball_from archive
 revision            0
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,6 +25,7 @@ checksums           rmd160  c0fd02350da1684ec1b6e1de351883f1391d8fe3 \
</span> patchfiles-append   patch-6854.diff
 patch.args          -p1
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+go.offline_build    no
</span> build.post_args     -ldflags \"-s -w \
                     -X 'github.com/${github.author}/${github.project}/version.Version=${version}' \
                     -X 'github.com/${github.author}/${github.project}/server.mode=release'\"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,7 +43,7 @@ add_users           ${ollama_user} \
</span>                     realname=Ollama
 
 destroot.keepdirs-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    ${destroot}${ol_models_path}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    ${destroot}${ol_models_path}
</span> 
 destroot {
     xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,7 +64,7 @@ destroot {
</span> 
     system -W ${destroot}${prefix}/etc/LaunchDaemons/${startupitem.uniquename} \
          "/usr/libexec/PlistBuddy -c \"Add :SessionCreate bool true\" ${startupitem.plist} &&\
<span style='display:block; white-space:pre;background:#ffe0e0;'>-         /usr/libexec/PlistBuddy -c \"Add :ProcessType string Interactive\" ${startupitem.plist}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+          /usr/libexec/PlistBuddy -c \"Add :ProcessType string Interactive\" ${startupitem.plist}"
</span> }
 
 post-activate {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -73,17 +73,30 @@ post-activate {
</span>     }
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-startupitem.create          yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-startupitem.executable      ${prefix}/libexec/${name}/${wrapper_script}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-startupitem.user            ${ollama_user}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-startupitem.group           ${ollama_user}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.create  yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.executable \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    ${prefix}/libexec/${name}/${wrapper_script}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.user    ${ollama_user}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.group   ${ollama_user}
</span> 
 variant logging description {Enable logging for startup item} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    startupitem.logfile     ${ol_log_file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    startupitem.logfile \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    ${ol_log_file}
</span>     startupitem.logfile.stderr \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                            ${ol_log_file}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    startupitem.logevents   yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    ${ol_log_file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    startupitem.logevents \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    yes
</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 completion description "Install bash completion for ${name}" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Use this until upstream has implemented proper shell completions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    depends_run-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:ollama-bash-completion-plugin
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default_variants-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    +completion
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> notes-append "
     The example config file is copied to ${config_path}/${env_file} and its content\
     will be preserved across upgrades and reinstalls. This config file configures ${name}\
</pre><pre style='margin:0'>

</pre>