<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/f541f2fc9930173fcb9eea1462d61f807f8ee2ca">https://github.com/macports/macports-ports/commit/f541f2fc9930173fcb9eea1462d61f807f8ee2ca</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 f541f2f  py-awscli: add bash and zsh completion variants
</span>f541f2f is described below

<span style='display:block; white-space:pre;color:#808000;'>commit f541f2fc9930173fcb9eea1462d61f807f8ee2ca
</span>Author: newtonne <newtonne@users.noreply.github.com>
AuthorDate: Mon Sep 10 07:21:39 2018 +0100

<span style='display:block; white-space:pre;color:#404040;'>    py-awscli: add bash and zsh completion variants
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Note that an _aws file has been added for the zsh completion, within
</span><span style='display:block; white-space:pre;color:#404040;'>    which, the aws_zsh_completer.sh script is sourced.
</span>---
 python/py-awscli/Portfile   | 19 +++++++++++++++++++
 python/py-awscli/files/_aws |  6 ++++++
 2 files changed, 25 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-awscli/Portfile b/python/py-awscli/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6f515a6..2e2eb82 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-awscli/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-awscli/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup           python 1.0
</span> 
 name                py-awscli
 version             1.15.16
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> platforms           darwin
 supported_archs     noarch
 license             Apache-2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,5 +53,23 @@ if {${name} ne ${subport}} {
</span>              ${worksrcpath}/${subport}
     }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # bash completion
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set bash_compl_path ${prefix}/etc/bash_completion.d
</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;'>+        xinstall -m 0644 ${worksrcpath}/bin/aws_bash_completer \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ${destroot}${bash_compl_path}/aws_bash_completer-${python.branch}
</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;'>+            xinstall -m 0644 ${worksrcpath}/bin/aws_zsh_completer.sh \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                ${filespath}/_aws \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                ${destroot}${zsh_compl_path}
</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>     livecheck.type      none
 }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-awscli/files/_aws b/python/py-awscli/files/_aws
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..d05942a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-awscli/files/_aws
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#compdef aws
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+_aws () {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    local e
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    e=$(dirname ${funcsourcetrace[1]%:*})/aws_zsh_completer.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if [[ -f $e ]]; then source $e; fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>

</pre>