Ticket #53756: Portfile-asymptote.diff

File Portfile-asymptote.diff, 2.8 KB (added by Schamschula (Marius Schamschula), 8 years ago)
  • Portfile

    old new  
    8888        set python.branch   3.4
    8989    } elseif {[variant_isset python35]} {
    9090        set python.branch   3.5
     91    } elseif {[variant_isset python36]} {
     92        set python.branch   3.6
    9193    }
    9294    if {${python.branch} != ""} {
    9395        set python.bin      ${prefix}/bin/python${python.branch}
     
    108110
    109111# asymptote's GUI needs either pyXY-pil or pyXY-Pillow
    110112# https://trac.macports.org/ticket/44284
    111 variant python27 conflicts python34 python35 description {Enable xasy GUI using Python 2.7} {
     113variant python27 conflicts python34 python35 python36 description {Enable xasy GUI using Python 2.7} {
    112114    set python.version  27
    113115    set python.branch   "[string range ${python.version} 0 end-1].[string index ${python.version} end]"
    114116
    115117    depends_lib-append  port:py${python.version}-tkinter \
    116118                        path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow
    117119}
    118 variant python34 conflicts python27 python35 description {Enable xasy GUI using Python 3.4} {
     120variant python34 conflicts python27 python35 python36 description {Enable xasy GUI using Python 3.4} {
    119121    set python.version  34
    120122    set python.branch   "[string range ${python.version} 0 end-1].[string index ${python.version} end]"
    121123
    122124    depends_lib-append  port:py${python.version}-tkinter \
    123125                        path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow
    124126}
    125 variant python35 conflicts python27 python34 description {Enable xasy GUI using Python 3.5} {
     127variant python35 conflicts python27 python34 python36 description {Enable xasy GUI using Python 3.5} {
    126128    set python.version  35
    127129    set python.branch   "[string range ${python.version} 0 end-1].[string index ${python.version} end]"
    128130
    129131    depends_lib-append  port:py${python.version}-tkinter \
    130132                        path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow
    131133}
     134variant python36 conflicts python27 python34 python35 description {Enable xasy GUI using Python 3.6} {
     135    set python.version  36
     136    set python.branch   "[string range ${python.version} 0 end-1].[string index ${python.version} end]"
     137
     138    depends_lib-append  port:py${python.version}-tkinter \
     139                        path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow
     140}
    132141
    133 if {![variant_isset python27] && ![variant_isset python34]} {
     142if {![variant_isset python27] && ![variant_isset python34] && ![variant_isset python36]} {
    134143    default_variants +python35
    135144}
    136145