Ticket #53756: Portfile-asymptote.diff
File Portfile-asymptote.diff, 2.8 KB (added by Schamschula (Marius Schamschula), 8 years ago) |
---|
-
Portfile
old new 88 88 set python.branch 3.4 89 89 } elseif {[variant_isset python35]} { 90 90 set python.branch 3.5 91 } elseif {[variant_isset python36]} { 92 set python.branch 3.6 91 93 } 92 94 if {${python.branch} != ""} { 93 95 set python.bin ${prefix}/bin/python${python.branch} … … 108 110 109 111 # asymptote's GUI needs either pyXY-pil or pyXY-Pillow 110 112 # https://trac.macports.org/ticket/44284 111 variant python27 conflicts python34 python35 description {Enable xasy GUI using Python 2.7} {113 variant python27 conflicts python34 python35 python36 description {Enable xasy GUI using Python 2.7} { 112 114 set python.version 27 113 115 set python.branch "[string range ${python.version} 0 end-1].[string index ${python.version} end]" 114 116 115 117 depends_lib-append port:py${python.version}-tkinter \ 116 118 path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow 117 119 } 118 variant python34 conflicts python27 python35 description {Enable xasy GUI using Python 3.4} {120 variant python34 conflicts python27 python35 python36 description {Enable xasy GUI using Python 3.4} { 119 121 set python.version 34 120 122 set python.branch "[string range ${python.version} 0 end-1].[string index ${python.version} end]" 121 123 122 124 depends_lib-append port:py${python.version}-tkinter \ 123 125 path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow 124 126 } 125 variant python35 conflicts python27 python34 description {Enable xasy GUI using Python 3.5} {127 variant python35 conflicts python27 python34 python36 description {Enable xasy GUI using Python 3.5} { 126 128 set python.version 35 127 129 set python.branch "[string range ${python.version} 0 end-1].[string index ${python.version} end]" 128 130 129 131 depends_lib-append port:py${python.version}-tkinter \ 130 132 path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow 131 133 } 134 variant 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 } 132 141 133 if {![variant_isset python27] && ![variant_isset python34] } {142 if {![variant_isset python27] && ![variant_isset python34] && ![variant_isset python36]} { 134 143 default_variants +python35 135 144 } 136 145