Ticket #29321: Portfile-go.diff
File Portfile-go.diff, 1.3 KB (added by gaochangjian@…, 14 years ago) |
---|
-
Portfile
old new 78 78 # bin files 79 79 file delete ${destroot}${prefix}/bin 80 80 file copy ${GOBIN} ${destroot}${prefix} 81 # on Darwin, have to install and setgid; see ${GOROOT}/src/sudo.bash 82 foreach i {prof cov} { 83 file copy ${worksrcpath}/src/cmd/$i/6$i ${destroot}${prefix}/bin 84 chgrp procmod ${destroot}${prefix}/bin/6$i 85 chmod g+s ${destroot}${prefix}/bin/6$i 86 } 81 87 82 88 # lib files 83 89 file delete -force ${destroot}${prefix}/lib … … 94 100 file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name} 95 101 xinstall -m 644 -W ${worksrcpath} favicon.ico \ 96 102 ${destroot}${prefix}/share/doc/${name}/${name}.ico 103 # godoc command required documentation 104 xinstall -m 755 -d ${destroot}${prefix}/src/go 105 file copy ${worksrcpath} ${destroot}${prefix}/src/go 106 ${destroot}${prefix}/src/go/clean.bash 107 file delete ${destroot}${prefix}/src/go/bin 108 file delete ${destroot}${prefix}/src/go/pkg 109 ln -s ${destroot}${prefix}/src/go/src/pkg ${destroot}${prefix}/src/pkg 110 # gomake command required makefiles 111 ln -s ${destroot}${prefix}/src/go/src/Make.* ${destroot}${prefix}/src 97 112 98 113 # bash completion 99 114 xinstall -m 755 -d ${destroot}${prefix}/etc/bash_completion.d