Ticket #44188: llvm-all-python.patch

File llvm-all-python.patch, 6.5 KB (added by Ionic (Mihai Moldovan), 10 years ago)

Merged patch against clang 2.9, 3.0, 3.1, 3.2, 3.3, 3.4 and 3.5.

  • lang/llvm-2.9/Portfile

    old new  
    285285    variant python25 conflicts python26 python27 description {Use python 2.5} {
    286286        set pythonver 25
    287287        set pythonverdot 2.5
     288        depends_build-append port:python25
    288289    }
    289290
    290291    variant python26 conflicts python25 python27 description {Use python 2.6} {
    291292        set pythonver 26
    292293        set pythonverdot 2.6
     294        depends_build-append port:python26
    293295    }
    294296
    295297    variant python27 conflicts python25 python26 description {Use python 2.7} {
    296298        set pythonver 27
    297299        set pythonverdot 2.7
     300        depends_build-append port:python27
    298301    }
    299302
    300303    variant analyzer description {Install clang static analyzer} {
  • lang/llvm-3.0/Portfile

    old new  
    282282    variant python25 conflicts python26 python27 description {Use python 2.5} {
    283283        set pythonver 25
    284284        set pythonverdot 2.5
     285        depends_build-append port:python25
    285286    }
    286287
    287288    variant python26 conflicts python25 python27 description {Use python 2.6} {
    288289        set pythonver 26
    289290        set pythonverdot 2.6
     291        depends_build-append port:python26
    290292    }
    291293
    292294    variant python27 conflicts python25 python26 description {Use python 2.7} {
    293295        set pythonver 27
    294296        set pythonverdot 2.7
     297        depends_build-append port:python27
    295298    }
    296299
    297300    variant analyzer description {Install clang static analyzer} {
  • lang/llvm-3.1/Portfile

    old new  
    286286    variant python25 conflicts python26 python27 description {Use python 2.5} {
    287287        set pythonver 25
    288288        set pythonverdot 2.5
     289        depends_build-append port:python25
    289290    }
    290291
    291292    variant python26 conflicts python25 python27 description {Use python 2.6} {
    292293        set pythonver 26
    293294        set pythonverdot 2.6
     295        depends_build-append port:python26
    294296    }
    295297
    296298    variant python27 conflicts python25 python26 description {Use python 2.7} {
    297299        set pythonver 27
    298300        set pythonverdot 2.7
     301        depends_build-append port:python27
    299302    }
    300303
    301304    variant analyzer description {Install clang static analyzer} {
  • lang/llvm-3.2/Portfile

    old new  
    298298    variant python25 conflicts python26 python27 description {Use python 2.5} {
    299299        set pythonver 25
    300300        set pythonverdot 2.5
     301        depends_build-append port:python25
    301302    }
    302303
    303304    variant python26 conflicts python25 python27 description {Use python 2.6} {
    304305        set pythonver 26
    305306        set pythonverdot 2.6
     307        depends_build-append port:python26
    306308    }
    307309
    308310    variant python27 conflicts python25 python26 description {Use python 2.7} {
    309311        set pythonver 27
    310312        set pythonverdot 2.7
     313        depends_build-append port:python27
    311314    }
    312315
    313316    variant analyzer description {Install clang static analyzer} {
  • lang/llvm-3.3/Portfile

    old new  
    294294    variant python25 conflicts python26 python27 description {Use python 2.5} {
    295295        set pythonver 25
    296296        set pythonverdot 2.5
     297        depends_build-append port:python25
    297298        configure.args-append --with-python=${prefix}/bin/python2.5
    298299    }
    299300
    300301    variant python26 conflicts python25 python27 description {Use python 2.6} {
    301302        set pythonver 26
    302303        set pythonverdot 2.6
     304        depends_build-append port:python26
    303305        configure.args-append --with-python=${prefix}/bin/python2.6
    304306    }
    305307
    306308    variant python27 conflicts python25 python26 description {Use python 2.7} {
    307309        set pythonver 27
    308310        set pythonverdot 2.7
     311        depends_build-append port:python27
    309312        configure.args-append --with-python=${prefix}/bin/python2.7
    310313    }
    311314
  • lang/llvm-3.4/Portfile

    old new  
    55
    66set llvm_version        3.4
    77set llvm_version_no_dot 34
    8 revision                3
     8revision                4
    99name                    llvm-${llvm_version}
    1010subport                 clang-${llvm_version} { revision 4 }
    1111set suffix              mp-${llvm_version}
     
    4242                        that can be built using the Clang frontend as a \
    4343                        library to parse C/C++ code.
    4444
    45     depends_lib         port:llvm-${llvm_version} port:libffi
    46     depends_run         port:clang_select port:ld64 port:python27
     45    depends_lib         port:llvm-${llvm_version} port:libffi port:python27
     46    depends_run         port:clang_select port:ld64
    4747    depends_extract     bin:svn:subversion
    4848    depends_build       port:cctools
    4949    depends_skip_archcheck-append cctools ld64 subversion
     
    133133} elseif {${subport} == "clang-${llvm_version}"} {
    134134    select.group        clang
    135135    select.file         ${filespath}/mp-${subport}
     136
     137    configure.args-append --with-python=${prefix}/bin/python2.7
    136138}
    137139
    138140# g++-4.0 fails to build some of the newer C++ for ppc
  • lang/llvm-3.5/Portfile

    old new  
    4242                        that can be built using the Clang frontend as a \
    4343                        library to parse C/C++ code.
    4444
    45     depends_lib         port:llvm-${llvm_version} port:libffi
    46     depends_run         port:clang_select port:ld64 port:python27
     45    depends_lib         port:llvm-${llvm_version} port:libffi port:python27
     46    depends_run         port:clang_select port:ld64
    4747    depends_extract     bin:svn:subversion
    4848    depends_build       port:cctools
    4949    depends_skip_archcheck-append cctools ld64 subversion
     
    5858set libcxx_rev          ${svn.revision}
    5959set clang-modernize_rev ${svn.revision}
    6060version                 ${llvm_version}-r${svn.revision}
     61revision                1
    6162worksrcdir              trunk
    6263svn.url                 http://llvm.org/svn/llvm-project/llvm/trunk
    6364#worksrcdir              release_${llvm_version_no_dot}
     
    113114} elseif {${subport} == "clang-${llvm_version}"} {
    114115    select.group        clang
    115116    select.file         ${filespath}/mp-${subport}
     117
     118    configure.args-append --with-python=${prefix}/bin/python27
    116119}
    117120
    118121# llvm-3.5 and later requires a C++11 runtime