| 112 | global python.default_version |
| 113 | python.version |
| 114 | set mp.names {} |
| 115 | foreach v [option $option] { |
| 116 | lappend mp.names python[join [split $v "."] ""] |
| 117 | } |
| 118 | # Default variant |
| 119 | # set mp.python.select {} |
| 120 | foreach mp.name ${mp.names} { |
| 121 | set idx [lsearch ${mp.names} ${mp.name}] |
| 122 | set mp.version [lindex [option $option] $idx] |
| 123 | set mp.conflicts [lreplace ${mp.names} $idx $idx] |
| 124 | eval [subst { |
| 125 | variant ${mp.name} conflicts ${mp.conflicts} description "Use MacPorts ${mp.name}" { |
| 126 | depends_lib-append port:${mp.name} |
| 127 | }}] |
| 128 | if [variant_isset ${mp.name}] { |
| 129 | python.version ${mp.version} |
| 130 | # Default variant |
| 131 | # set mp.python.select ${mp.name} |
| 132 | } |
| 133 | } |
| 134 | # Default variant |
| 135 | # if {"${mp.python.select}" eq ""} { |
| 136 | # default_variants-append +python${python.default_version} |
| 137 | # } |