Ticket #51066: Portfile-nghttp2.diff

File Portfile-nghttp2.diff, 1.5 KB (added by Schamschula (Marius Schamschula), 6 years ago)
  • Portfile

    old new  
    2222checksums           rmd160 ef40a5c6782294116863e22890c0a74a54715fdb \
    2323                    sha256 3d600ef8bfd151769559bc23806877b8b4eaf3d66776e6c1427b9c04cce8e853
    2424
    25 if {![variant_isset python35]} { default_variants +python27 }
     25if {![variant_isset python34] && ![variant_isset python35] } { default_variants +python27 }
    2626
    27 if {![variant_isset python27] && ![variant_isset python35]} {
     27if {![variant_isset python27] && ![variant_isset python34] && ![variant_isset python35]} {
    2828    error "You must select one of the python variants."
    2929}
    3030
    3131if {[variant_isset python27]} { set PythonVersion   2.7 }
     32if {[variant_isset python34]} { set PythonVersion   3.4 }
    3233if {[variant_isset python35]} { set PythonVersion   3.5 }
    3334set PythonBranch    [join [lrange [split ${PythonVersion} .] 0 1] ""]
    3435
     
    6263    xinstall -d ${destroot}${prefix}/lib/python${PythonVersion}/site-packages/
    6364}
    6465
    65 variant python27 conflicts python35 description {Build using Python 2.7} {
     66variant python27 conflicts python34 python35 description {Build using Python 2.7} {
    6667    configure.env-append   PYTHON_EXTRA_LDFLAGS="-u _PyMac_Error ${frameworks_dir}/Python.framework/Versions/${PythonVersion}/Python"
    6768}
    6869
    69 variant python35 conflicts python27 description {Build using Python 3.5} {}
     70variant python34 conflicts python27 python35 description {Build using Python 3.4} {}
     71
     72variant python35 conflicts python27 python34 description {Build using Python 3.5} {}