Ticket #47648: llvm-3.7-proxy.diff

File llvm-3.7-proxy.diff, 4.2 KB (added by raimue (Rainer Müller), 10 years ago)
  • Portfile

     
    234234}
    235235
    236236post-extract {
     237    # Get HTTP proxy arguments if required, assuming we can use the same proxy for all repositories
     238    set proxy_args [portfetch::svn_proxy_args http://llvm.org/svn/llvm-project/cfe/trunk]
    237239    if {${subport} eq "llvm-${llvm_version}"} {
    238240        if {[variant_isset polly]} {
    239241            if {${worksrcdir} eq "trunk"} {
    240                 system "cd ${worksrcpath}/tools && svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/polly/trunk polly"
     242                system "cd ${worksrcpath}/tools && svn ${proxy_args} co -r ${svn.revision} http://llvm.org/svn/llvm-project/polly/trunk polly"
    241243            } elseif {${worksrcdir} eq "release_${llvm_version_no_dot}" } {
    242                 system "cd ${worksrcpath}/tools && svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/polly/branches/release_${llvm_version_no_dot} polly"
     244                system "cd ${worksrcpath}/tools && svn ${proxy_args} co -r ${svn.revision} http://llvm.org/svn/llvm-project/polly/branches/release_${llvm_version_no_dot} polly"
    243245            } else {
    244246                file rename ${workpath}/polly-${version}.src ${worksrcpath}/tools/polly
    245247            }
     
    246248        }
    247249    } elseif {${subport} eq "clang-${llvm_version}"} {
    248250        if {${worksrcdir} eq "trunk"} {
    249             system "cd ${worksrcpath}/tools && svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/trunk clang"
    250             system "cd ${worksrcpath}/projects && svn co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt"
    251             system "cd ${worksrcpath}/projects && svn co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/trunk libcxx"
    252             system "cd ${worksrcpath}/tools/clang/tools && svn co -r ${clang-modernize_rev} http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra"
     251            system "cd ${worksrcpath}/tools && svn ${proxy_args} co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/trunk clang"
     252            system "cd ${worksrcpath}/projects && svn ${proxy_args} co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt"
     253            system "cd ${worksrcpath}/projects && svn ${proxy_args} co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/trunk libcxx"
     254            system "cd ${worksrcpath}/tools/clang/tools && svn ${proxy_args} co -r ${clang-modernize_rev} http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra"
    253255        } elseif {${worksrcdir} eq "release_${llvm_version_no_dot}" } {
    254             system "cd ${worksrcpath}/tools && svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/branches/release_${llvm_version_no_dot} clang"
    255             system "cd ${worksrcpath}/projects && svn co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/branches/release_${llvm_version_no_dot} compiler-rt"
    256             system "cd ${worksrcpath}/projects && svn co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/branches/release_${llvm_version_no_dot} libcxx"
    257             system "cd ${worksrcpath}/tools/clang/tools && svn co -r ${clang-modernize_rev} http://llvm.org/svn/llvm-project/clang-tools-extra/branches/release_${llvm_version_no_dot} extra"
     256            system "cd ${worksrcpath}/tools && svn ${proxy_args} co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/branches/release_${llvm_version_no_dot} clang"
     257            system "cd ${worksrcpath}/projects && svn ${proxy_args} co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/branches/release_${llvm_version_no_dot} compiler-rt"
     258            system "cd ${worksrcpath}/projects && svn ${proxy_args} co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/branches/release_${llvm_version_no_dot} libcxx"
     259            system "cd ${worksrcpath}/tools/clang/tools && svn ${proxy_args} co -r ${clang-modernize_rev} http://llvm.org/svn/llvm-project/clang-tools-extra/branches/release_${llvm_version_no_dot} extra"
    258260        } else {
    259261            file rename ${workpath}/cfe-${version}.src ${worksrcpath}/tools/clang
    260262            file rename ${workpath}/compiler-rt-${version}.src ${worksrcpath}/projects/compiler-rt