Ticket #46314: Portfile.diff
File Portfile.diff, 1.9 KB (added by b@…, 10 years ago) |
---|
-
(a) Portfile vs. (b) Portfile-go
a b 5 5 6 6 name go 7 7 epoch 2 8 version 1. 3.38 version 1.4 9 9 categories lang 10 10 platforms darwin freebsd linux 11 11 license BSD … … 28 28 distfiles ${name}${version}.src.tar.gz 29 29 worksrcdir ${name} 30 30 31 checksums rmd160 1a1819c8ceaaaf2f938e90b750da428debd6972e\32 sha256 1bb6fde89cfe8b9756a875af55d994cce0994861227b5dc0f268c143d91cd5ff31 checksums rmd160 b9ddec14cf5a9f99225d3d3e5bd88ed9ea37207f \ 32 sha256 3ae9f67e45a5ca7004b28808da8b1367d328a371d641ddbe636c0fb0ae0ffdae 33 33 34 34 set GOROOT ${worksrcpath} 35 35 set GOROOT_FINAL ${prefix}/go … … 83 83 # standard distribution 84 84 file copy ${worksrcpath} ${destroot}${GOROOT_FINAL} 85 85 86 # bash completion87 xinstall -m 755 -d ${destroot}${prefix}/etc/bash_completion.d88 xinstall -m 644 -W ${worksrcpath}/misc/bash ${name} \89 ${destroot}${prefix}/etc/bash_completion.d/${name}90 91 # emacs syntax highlighting92 xinstall -m 755 -d ${destroot}${prefix}/share/emacs/site-lisp/93 eval xinstall -m 644 [glob ${worksrcpath}/misc/emacs/*.el] \94 ${destroot}${prefix}/share/emacs/site-lisp/95 96 # vim syntax highlighting97 set vimdir ${destroot}${prefix}/share/vim/vimfiles98 xinstall -m 755 -d ${vimdir}/syntax ${vimdir}/ftdetect ${vimdir}/ftplugin99 xinstall -m 644 ${worksrcpath}/misc/vim/syntax/go.vim \100 ${vimdir}/syntax/go.vim101 xinstall -m 644 ${worksrcpath}/misc/vim/ftdetect/gofiletype.vim \102 ${vimdir}/ftdetect/go.vim103 xinstall -m 644 ${worksrcpath}/misc/vim/ftplugin/go/import.vim \104 ${vimdir}/ftplugin/go.vim105 106 86 # binary symlinks 107 87 foreach f [list go godoc gofmt] { 108 88 system "cd ${destroot}${prefix}/bin/ && ln -s ../go/bin/$f ./$f"