<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[140801] trunk/dports/lang</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/140801">140801</a></dd>
<dt>Author</dt> <dd>ciserlohn@macports.org</dd>
<dt>Date</dt> <dd>2015-10-03 02:04:55 -0700 (Sat, 03 Oct 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>go: update to version 1.5.1 (closes #48940)</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportslanggoPortfile">trunk/dports/lang/go/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/lang/go-1.4/</li>
<li><a href="#trunkdportslanggo14Portfile">trunk/dports/lang/go-1.4/Portfile</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportslanggoPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/lang/go/Portfile (140800 => 140801)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/go/Portfile        2015-10-03 08:57:52 UTC (rev 140800)
+++ trunk/dports/lang/go/Portfile        2015-10-03 09:04:55 UTC (rev 140801)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> 
</span><span class="cx"> name                go
</span><span class="cx"> epoch               2
</span><del>-version             1.4.2
</del><ins>+version             1.5.1
</ins><span class="cx"> categories          lang
</span><span class="cx"> platforms           darwin freebsd linux
</span><span class="cx"> license             BSD
</span><span class="lines">@@ -28,26 +28,21 @@
</span><span class="cx"> distfiles           ${name}${version}.src.tar.gz
</span><span class="cx"> worksrcdir          ${name}
</span><span class="cx"> 
</span><del>-checksums           rmd160  dea15b3b4c31554a47b40799f4b9a926ea760e70 \
-                    sha256  299a6fd8f8adfdce15bc06bde926e7b252ae8e24dd5b16b7d8791ed79e7b5e9b
</del><ins>+checksums           rmd160  751d078789bcd6ec0d85e09f5f40d9959877e202 \
+                    sha256  a889873e98d9a72ae396a9b7dd597c29dcd709cafa9097d9c4ba04cff0ec436b
</ins><span class="cx"> 
</span><ins>+depends_run         port:go-1.4
+
</ins><span class="cx"> set GOROOT          ${worksrcpath}
</span><del>-set GOROOT_FINAL    ${prefix}/go
</del><ins>+set GOROOT_FINAL    ${prefix}/lib/${name}
</ins><span class="cx"> 
</span><span class="cx"> switch ${build_arch} {
</span><span class="cx">     i386 {
</span><span class="cx">         set GOARCH 386
</span><del>-        set cmd_prefix 8
</del><span class="cx">     }
</span><span class="cx">     x86_64 {
</span><span class="cx">         set GOARCH amd64
</span><del>-        set cmd_prefix 6
</del><span class="cx">     }
</span><del>-    default {
-        # unsupported arch, but GOARCH needs to be set to something to prevent errors
-        set GOARCH x
-        set cmd_prefix 6
-    }
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> pre-fetch {
</span><span class="lines">@@ -62,47 +57,48 @@
</span><span class="cx"> build.dir           ${worksrcpath}/src
</span><span class="cx"> build.cmd           ./make.bash
</span><span class="cx"> build.target
</span><del>-build.env           GOROOT=${GOROOT} GOBIN= GOARCH=${GOARCH} \
-                    GOROOT_FINAL=${GOROOT_FINAL} \
-                    CC=${configure.cc} \
-                    GCC=${configure.cc}
</del><ins>+build.env           GOROOT_BOOTSTRAP=${prefix}/lib/go-1.4 \
+                    GOROOT=${GOROOT} \
+                    GOARCH=${GOARCH} \
+                    GOOS=darwin \
+                    GOROOT_FINAL=${GOROOT_FINAL}
</ins><span class="cx"> 
</span><span class="cx"> use_parallel_build  no
</span><ins>+
</ins><span class="cx"> post-build {
</span><del>-    # remove mercurial extras
-    system &quot;find ${worksrcpath} -type d -name .hg -print0 | xargs -0 rm -rf&quot;
</del><ins>+    system &quot;find ${worksrcpath} -type d -name .hg* -print0 | xargs -0 rm -rf&quot;
+    delete ${worksrcpath}/pkg/bootstrap
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-test.run            yes
-test.dir            ${worksrcpath}/src
-test.cmd            ./run.bash
-test.target
-test.env            ${build.env}
-
</del><span class="cx"> destroot {
</span><del>-    # standard distribution
-    file copy ${worksrcpath} ${destroot}${GOROOT_FINAL}
</del><span class="cx"> 
</span><del>-    # binary symlinks
-    foreach f [list go gofmt] {
-        system &quot;cd ${destroot}${prefix}/bin/ &amp;&amp; ln -s ../go/bin/$f ./$f&quot;
</del><ins>+    set grfdir ${destroot}${GOROOT_FINAL}
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    
+    xinstall -d ${grfdir}
+    xinstall -d ${docdir}
+    
+    foreach f {api bin lib misc pkg src test} {
+        copy ${worksrcpath}/${f} ${grfdir}
</ins><span class="cx">     }
</span><del>-}
</del><span class="cx"> 
</span><del>-destroot.violate_mtree     yes
</del><ins>+    foreach f {go gofmt} {
+        system -W ${destroot}${prefix}/bin/ &quot;ln -s ../lib/${name}/bin/$f ./$f&quot;
+#        ln -s ${grfdir}/bin/${f} ${destroot}${prefix}/bin/${f}
+    }
</ins><span class="cx"> 
</span><del>-platform darwin {
-    build.env-append GOOS=darwin
-    test.env-append GOOS=darwin
</del><ins>+    xinstall -m 644 -W ${worksrcpath} \
+        AUTHORS \
+        CONTRIBUTING.md \
+        CONTRIBUTORS \
+        LICENSE \
+        README.md \
+        PATENTS \
+        VERSION \
+        ${docdir}
+
+    copy {*}[glob -directory ${worksrcpath}/doc *] ${docdir}
</ins><span class="cx"> }
</span><del>-platform freebsd {
-    build.env-append GOOS=freebsd
-    test.env-append GOOS=freebsd
-}
-platform linux {
-    build.env-append GOOS=linux
-    test.env-append GOOS=linux
-}
</del><span class="cx"> 
</span><span class="cx"> livecheck.type      regex
</span><span class="cx"> livecheck.url       ${homepage}/dl/
</span></span></pre></div>
<a id="trunkdportslanggo14Portfilefromrev140772trunkdportslanggoPortfile"></a>
<div class="copfile"><h4>Copied: trunk/dports/lang/go-1.4/Portfile (from rev 140772, trunk/dports/lang/go/Portfile) (0 => 140801)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/go-1.4/Portfile                                (rev 0)
+++ trunk/dports/lang/go-1.4/Portfile        2015-10-03 09:04:55 UTC (rev 140801)
</span><span class="lines">@@ -0,0 +1,101 @@
</span><ins>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                go-1.4
+
+version             1.4.3
+categories          lang
+platforms           darwin
+license             BSD
+maintainers         ciserlohn
+description         compiled, garbage-collected, concurrent programming \
+                    language developed by Google Inc.
+long_description    \
+    The Go programming language is an open source project to make programmers \
+    more productive. Go is expressive, concise, clean, and efficient. Its \
+    concurrency mechanisms make it easy to write programs that get the most \
+    out of multicore and networked machines, while its novel type system \
+    enables flexible and modular program construction. Go compiles quickly \
+    to machine code yet has the convenience of garbage collection and the \
+    power of run-time reflection. It's a fast, statically typed, compiled \
+    language that feels like a dynamically typed, interpreted language. Go \
+    is developed by Google Inc.
+
+homepage            https://golang.org/
+master_sites        https://storage.googleapis.com/golang/
+distfiles           go${version}.src.tar.gz
+worksrcdir          go
+
+checksums           rmd160  b1fbb2805a777c8107e7c946f36a881303ac5e35 \
+                    sha256  9947fc705b0b841b5938c48b22dc33e9647ec0752bae66e50278df4f23f64959
+
+set GOROOT          ${worksrcpath}
+set GOROOT_FINAL    ${prefix}/lib/${name}
+
+switch ${build_arch} {
+    i386 {
+        set GOARCH 386
+    }
+    x86_64 {
+        set GOARCH amd64
+    }
+}
+
+pre-fetch {
+    if {&quot;big&quot; == ${os.endian}} {
+        ui_error &quot;${name} can only be used on an Intel Mac or other computer with a little-endian processor.&quot;
+        return -code error &quot;incompatible processor&quot;
+    }
+}
+
+use_configure       no
+
+build.dir           ${worksrcpath}/src
+build.cmd           ./make.bash
+build.target
+build.env           GOROOT=${GOROOT} \
+                    GOARCH=${GOARCH} \
+                    GOOS=darwin \
+                    GOROOT_FINAL=${GOROOT_FINAL} \
+                    CC=${configure.cc} \
+                    GCC=${configure.cc}
+
+use_parallel_build  no
+
+post-build {
+    system &quot;find ${worksrcpath} -type d -name .hg* -print0 | xargs -0 rm -rf&quot;
+}
+
+destroot {
+
+    set grfdir ${destroot}${GOROOT_FINAL}
+    set bindir ${grfdir}/bin
+    set docdir ${destroot}${prefix}/share/doc/${name}
+
+    xinstall -d ${grfdir}
+    xinstall -d ${bindir}
+    xinstall -d ${docdir}
+
+    xinstall -m 755 -W ${worksrcpath} \
+        bin/go \
+        ${bindir}
+
+    foreach f {pkg src} {
+        copy ${worksrcpath}/${f} ${grfdir}
+    }
+
+    xinstall -m 644 -W ${worksrcpath} \
+        AUTHORS \
+        CONTRIBUTORS \
+        LICENSE \
+        README \
+        PATENTS \
+        VERSION \
+        ${docdir}
+}
+
+livecheck.type      regex
+livecheck.url       ${homepage}/dl/
+livecheck.regex     {go(1\.4\.[0-9.]+).src.tar.gz}
</ins></span></pre>
</div>
</div>

</body>
</html>