[97891] trunk/dports/lang/go/Portfile

singingwolfboy at macports.org singingwolfboy at macports.org
Tue Sep 18 18:23:06 PDT 2012


Revision: 97891
          http://trac.macports.org//changeset/97891
Author:   singingwolfboy at macports.org
Date:     2012-09-18 18:23:06 -0700 (Tue, 18 Sep 2012)
Log Message:
-----------
go: updated to 1.0.2

Modified Paths:
--------------
    trunk/dports/lang/go/Portfile

Modified: trunk/dports/lang/go/Portfile
===================================================================
--- trunk/dports/lang/go/Portfile	2012-09-18 22:42:50 UTC (rev 97890)
+++ trunk/dports/lang/go/Portfile	2012-09-19 01:23:06 UTC (rev 97891)
@@ -3,9 +3,9 @@
 PortSystem          1.0
 
 name                go
-epoch               1
-version             60.3
-revision            1
+epoch               2
+version             1.0.2
+revision            0
 categories          lang
 platforms           darwin freebsd linux
 license             BSD
@@ -24,10 +24,16 @@
     is developed by Google Inc.
 
 homepage            http://golang.org/
-fetch.type          hg
-hg.url              https://go.googlecode.com/hg/
-hg.tag              release.r${version}
+#fetch.type          hg
+#hg.url              https://go.googlecode.com/hg/
+#hg.tag              release.r${version}
+master_sites        googlecode:${name}
+distfiles           ${name}${version}.src.tar.gz
+worksrcdir          ${name}
 
+checksums           rmd160  684a48992cef4f33c9de51243a7056c75ecdfb93 \
+                    sha256  70fcfb455087c14cc59b7a65c78003fcd1323d73f9b991c1e52db535d6bc95a8
+
 depends_build       bin:bison:bison \
                     bin:make:gmake \
                     bin:awk:gawk \
@@ -66,7 +72,7 @@
 }
 build.dir           ${worksrcpath}/src
 build.cmd           ./make.bash
-build.target    
+build.target
 build.env           GOROOT=${GOROOT} GOBIN=${GOBIN} GOARCH=${GOARCH} \
                     GOROOT_FINAL=${prefix}
 use_parallel_build  no
@@ -78,43 +84,38 @@
 test.run            yes
 test.dir            ${worksrcpath}/src
 test.cmd            ./run.bash
-test.target 
+test.target
 test.env            ${build.env}
 
 destroot {
     # bin files
     file delete ${destroot}${prefix}/bin
     file copy ${GOBIN} ${destroot}${prefix}
-    # on Darwin, have to install and setgid; see ${GOROOT}/src/sudo.bash 
-    foreach i {prof cov} { 
-        xinstall -g procmod -m 2755 ${worksrcpath}/src/cmd/$i/${cmd_prefix}$i \
-            ${destroot}${prefix}/bin
-    } 
-        
+
     # lib files
     file delete -force ${destroot}${prefix}/lib
     file copy ${worksrcpath}/lib ${destroot}${prefix}
-    
+
     # compiled packages: violates mtree
     file copy ${worksrcpath}/pkg ${destroot}${prefix}
 
     # do not install include files: see #30203
-    
+
     # documentation
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/
     file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
     xinstall -m 644 -W ${worksrcpath} favicon.ico \
         ${destroot}${prefix}/share/doc/${name}/${name}.ico
-    # godoc command required documentation 
-    xinstall -m 755 -d ${destroot}${prefix}/src/go 
-    file copy ${worksrcpath} ${destroot}${prefix}/src/go 
-    system "cd ${destroot}${prefix}/src/${name}/${name}-${version}/src && ./clean.bash" 
-    file delete ${destroot}${prefix}/src/${name}/${name}-${version}/bin 
-    file delete ${destroot}${prefix}/src/${name}/${name}-${version}/pkg 
-    ln -s ${prefix}/src/${name}/${name}-${version}/src/pkg ${destroot}${prefix}/src/pkg 
-    # gomake command required makefiles 
-    foreach f [glob -tails -directory ${destroot}${prefix}/src/${name}/${name}-${version}/src/ Make.*] {
-        ln -s ${name}/${name}-${version}/src/${f} ${destroot}${prefix}/src
+    # godoc command required documentation
+    xinstall -m 755 -d ${destroot}${prefix}/src
+    file copy ${worksrcpath} ${destroot}${prefix}/src/${name}-${version}
+    #system "cd ${destroot}${prefix}/src/${name}-${version}/src && ./clean.bash"
+    delete ${destroot}${prefix}/src/${name}-${version}/bin
+    delete ${destroot}${prefix}/src/${name}-${version}/pkg
+    ln -s ${prefix}/src/${name}-${version}/src/pkg ${destroot}${prefix}/src/pkg
+    # gomake command required makefiles
+    foreach f [glob -tails -directory ${destroot}${prefix}/src/${name}-${version}/src/ Make.*] {
+        ln -s ${name}-${version}/src/${f} ${destroot}${prefix}/src
     }
 
     # bash completion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120918/f8e0b047/attachment.html>


More information about the macports-changes mailing list