Changeset 97891
- Timestamp:
- Sep 19, 2012, 1:23:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/lang/go/Portfile
r95777 r97891 4 4 5 5 name go 6 epoch 17 version 60.38 revision 16 epoch 2 7 version 1.0.2 8 revision 0 9 9 categories lang 10 10 platforms darwin freebsd linux … … 25 25 26 26 homepage 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} 30 master_sites googlecode:${name} 31 distfiles ${name}${version}.src.tar.gz 32 worksrcdir ${name} 33 34 checksums rmd160 684a48992cef4f33c9de51243a7056c75ecdfb93 \ 35 sha256 70fcfb455087c14cc59b7a65c78003fcd1323d73f9b991c1e52db535d6bc95a8 30 36 31 37 depends_build bin:bison:bison \ … … 67 73 build.dir ${worksrcpath}/src 68 74 build.cmd ./make.bash 69 build.target 75 build.target 70 76 build.env GOROOT=${GOROOT} GOBIN=${GOBIN} GOARCH=${GOARCH} \ 71 77 GOROOT_FINAL=${prefix} … … 79 85 test.dir ${worksrcpath}/src 80 86 test.cmd ./run.bash 81 test.target 87 test.target 82 88 test.env ${build.env} 83 89 … … 86 92 file delete ${destroot}${prefix}/bin 87 93 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 94 95 # lib files 95 96 file delete -force ${destroot}${prefix}/lib 96 97 file copy ${worksrcpath}/lib ${destroot}${prefix} 97 98 98 99 # compiled packages: violates mtree 99 100 file copy ${worksrcpath}/pkg ${destroot}${prefix} 100 101 101 102 # do not install include files: see #30203 102 103 103 104 # documentation 104 105 xinstall -m 755 -d ${destroot}${prefix}/share/doc/ … … 106 107 xinstall -m 644 -W ${worksrcpath} favicon.ico \ 107 108 ${destroot}${prefix}/share/doc/${name}/${name}.ico 108 # godoc command required documentation 109 xinstall -m 755 -d ${destroot}${prefix}/src /go110 file copy ${worksrcpath} ${destroot}${prefix}/src/ go111 system "cd ${destroot}${prefix}/src/${name}/${name}-${version}/src && ./clean.bash"112 file delete ${destroot}${prefix}/src/${name}/${name}-${version}/bin113 file delete ${destroot}${prefix}/src/${name}/${name}-${version}/pkg114 ln -s ${prefix}/src/${name} /${name}-${version}/src/pkg ${destroot}${prefix}/src/pkg115 # 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}/src109 # 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 118 119 } 119 120
Note: See TracChangeset
for help on using the changeset viewer.