Ticket #42051: python.patch

File python.patch, 2.5 KB (added by jeremyhu (Jeremy Huddleston Sequoia), 11 years ago)

possible patch

  • Portfile

     
    4646    depends_extract     bin:svn:subversion
    4747    depends_skip_archcheck-append ld64 subversion
    4848
    49     default_variants    +analyzer
     49    default_variants-append    +analyzer
    5050}
    5151
    5252#fetch.type              svn
     
    256256    }
    257257}
    258258
     259set pythonver ""
     260set pythonverdot ""
     261
     262if {![variant_isset python25] && ![variant_isset python26]} {
     263    default_variants-append +python27
     264}
     265
     266variant python25 conflicts python26 python27 description {Use python 2.5} {
     267    set pythonver 25
     268    set pythonverdot 2.5
     269    configure.args-append --with-python=${prefix}/bin/python2.5
     270}
     271
     272variant python26 conflicts python25 python27 description {Use python 2.6} {
     273    set pythonver 26
     274    set pythonverdot 2.6
     275    configure.args-append --with-python=${prefix}/bin/python2.6
     276}
     277
     278variant python27 conflicts python25 python26 description {Use python 2.7} {
     279    set pythonver 27
     280    set pythonverdot 2.7
     281    configure.args-append --with-python=${prefix}/bin/python2.7
     282}
     283
     284
     285
    259286if {${subport} == "llvm-${llvm_version}"} {
    260287    variant ocaml description {Enable generation of OCaml binding} {
    261288        depends_lib-append   port:ocaml
     
    268295} elseif {${subport} == "clang-${llvm_version}"} {
    269296    variant arm_runtime description {Build and install the arm runtime for iOS development (requires iOS SDK)} {}
    270297
    271     set pythonver ""
    272     set pythonverdot ""
    273 
    274     if {![variant_isset python25] && ![variant_isset python26]} {
    275         default_variants +python27
    276     }
    277 
    278     variant python25 conflicts python26 python27 description {Use python 2.5} {
    279         set pythonver 25
    280         set pythonverdot 2.5
    281         configure.args-append --with-python=${prefix}/bin/python2.5
    282     }
    283 
    284     variant python26 conflicts python25 python27 description {Use python 2.6} {
    285         set pythonver 26
    286         set pythonverdot 2.6
    287         configure.args-append --with-python=${prefix}/bin/python2.6
    288     }
    289 
    290     variant python27 conflicts python25 python26 description {Use python 2.7} {
    291         set pythonver 27
    292         set pythonverdot 2.7
    293         configure.args-append --with-python=${prefix}/bin/python2.7
    294     }
    295 
    296298    variant analyzer description {Install clang static analyzer} {
    297299        if {[string equal "${pythonver}" ""]} {
    298300            ui_error "You mush select a python variant to use the clang static analyzer (+analyzer)"