<pre style='margin:0'>
Aaron Madlon-Kay (amake) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5d2d72fce6f7a14081f7e4ac7c9fd2802090923b">https://github.com/macports/macports-ports/commit/5d2d72fce6f7a14081f7e4ac7c9fd2802090923b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5d2d72fce6f7a14081f7e4ac7c9fd2802090923b
</span>Author: Aaron Madlon-Kay <amake@macports.org>
AuthorDate: Thu Sep 20 23:25:53 2018 +0900

<span style='display:block; white-space:pre;color:#404040;'>    golang-1.0 portgroup: handle packages with custom package IDs
</span>---
 _resources/port1.0/group/golang-1.0.tcl | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/golang-1.0.tcl b/_resources/port1.0/group/golang-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 1fc7c12..8b56b7e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/golang-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/golang-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,6 +53,14 @@ proc go.setup {go_package go_version {go_tag_prefix ""} {go_tag_suffix ""}} {
</span>     go.package          ${go_package}
     go.version          ${go_version}
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    # go.package is split up here into go.{domain,author,project}, but a port
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # may override just go.package when, for instance, the upstream author has
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # decided to customize the package ID but still host on e.g. GitHub. The
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # shfmt port is an example of this.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # It is assumed in this portgroup that go.{domain,author,project} will
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # remain consistent with the distfile; this is needed when moving the source
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # into the GOPATH in the post-extract block later on.
</span>     lassign [go._translate_package_id ${go_package}] go.domain go.author go.project
 
     switch ${go.domain} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -237,7 +245,10 @@ proc handle_set_go_vendors {vendors_str} {
</span> # work.
 post-extract {
     if {${fetch.type} eq "standard"} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        file mkdir ${gopath}/src/${go.domain}/${go.author}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # Don't try to create the worksrcpath using go.{domain,author,project}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # as the result will not be accurate when go.package has been
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # customized.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        file mkdir [file dirname ${worksrcpath}]
</span>         move [glob ${workpath}/${go.author}-${go.project}-*] ${worksrcpath}
     }
 
</pre><pre style='margin:0'>

</pre>