Changeset 97891


Ignore:
Timestamp:
Sep 19, 2012, 1:23:06 AM (12 years ago)
Author:
singingwolfboy@…
Message:

go: updated to 1.0.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/go/Portfile

    r95777 r97891  
    44
    55name                go
    6 epoch               1
    7 version             60.3
    8 revision            1
     6epoch               2
     7version             1.0.2
     8revision            0
    99categories          lang
    1010platforms           darwin freebsd linux
     
    2525
    2626homepage            http://golang.org/
    27 fetch.type          hg
    28 hg.url              https://go.googlecode.com/hg/
    29 hg.tag              release.r${version}
     27#fetch.type          hg
     28#hg.url              https://go.googlecode.com/hg/
     29#hg.tag              release.r${version}
     30master_sites        googlecode:${name}
     31distfiles           ${name}${version}.src.tar.gz
     32worksrcdir          ${name}
     33
     34checksums           rmd160  684a48992cef4f33c9de51243a7056c75ecdfb93 \
     35                    sha256  70fcfb455087c14cc59b7a65c78003fcd1323d73f9b991c1e52db535d6bc95a8
    3036
    3137depends_build       bin:bison:bison \
     
    6773build.dir           ${worksrcpath}/src
    6874build.cmd           ./make.bash
    69 build.target   
     75build.target
    7076build.env           GOROOT=${GOROOT} GOBIN=${GOBIN} GOARCH=${GOARCH} \
    7177                    GOROOT_FINAL=${prefix}
     
    7985test.dir            ${worksrcpath}/src
    8086test.cmd            ./run.bash
    81 test.target 
     87test.target
    8288test.env            ${build.env}
    8389
     
    8692    file delete ${destroot}${prefix}/bin
    8793    file copy ${GOBIN} ${destroot}${prefix}
    88     # on Darwin, have to install and setgid; see ${GOROOT}/src/sudo.bash
    89     foreach i {prof cov} {
    90         xinstall -g procmod -m 2755 ${worksrcpath}/src/cmd/$i/${cmd_prefix}$i \
    91             ${destroot}${prefix}/bin
    92     }
    93        
     94
    9495    # lib files
    9596    file delete -force ${destroot}${prefix}/lib
    9697    file copy ${worksrcpath}/lib ${destroot}${prefix}
    97    
     98
    9899    # compiled packages: violates mtree
    99100    file copy ${worksrcpath}/pkg ${destroot}${prefix}
    100101
    101102    # do not install include files: see #30203
    102    
     103
    103104    # documentation
    104105    xinstall -m 755 -d ${destroot}${prefix}/share/doc/
     
    106107    xinstall -m 644 -W ${worksrcpath} favicon.ico \
    107108        ${destroot}${prefix}/share/doc/${name}/${name}.ico
    108     # godoc command required documentation 
    109     xinstall -m 755 -d ${destroot}${prefix}/src/go
    110     file copy ${worksrcpath} ${destroot}${prefix}/src/go
    111     system "cd ${destroot}${prefix}/src/${name}/${name}-${version}/src && ./clean.bash"
    112     file delete ${destroot}${prefix}/src/${name}/${name}-${version}/bin
    113     file delete ${destroot}${prefix}/src/${name}/${name}-${version}/pkg
    114     ln -s ${prefix}/src/${name}/${name}-${version}/src/pkg ${destroot}${prefix}/src/pkg
    115     # gomake command required makefiles 
    116     foreach f [glob -tails -directory ${destroot}${prefix}/src/${name}/${name}-${version}/src/ Make.*] {
    117         ln -s ${name}/${name}-${version}/src/${f} ${destroot}${prefix}/src
     109    # godoc command required documentation
     110    xinstall -m 755 -d ${destroot}${prefix}/src
     111    file copy ${worksrcpath} ${destroot}${prefix}/src/${name}-${version}
     112    #system "cd ${destroot}${prefix}/src/${name}-${version}/src && ./clean.bash"
     113    delete ${destroot}${prefix}/src/${name}-${version}/bin
     114    delete ${destroot}${prefix}/src/${name}-${version}/pkg
     115    ln -s ${prefix}/src/${name}-${version}/src/pkg ${destroot}${prefix}/src/pkg
     116    # gomake command required makefiles
     117    foreach f [glob -tails -directory ${destroot}${prefix}/src/${name}-${version}/src/ Make.*] {
     118        ln -s ${name}-${version}/src/${f} ${destroot}${prefix}/src
    118119    }
    119120
Note: See TracChangeset for help on using the changeset viewer.