| 114 | variant python25 description {use python25 for the experimental python interface} conflicts python26 python27 { |
| 115 | configure.env-append PYTHON=${prefix}/bin/python2.5 |
| 116 | depends_lib-append port:python25 |
| 117 | } |
| 118 | |
| 119 | variant python26 description {use python26 for the experimental python interface} conflicts python25 python27 { |
| 120 | configure.env-append PYTHON=${prefix}/bin/python2.6 |
| 121 | depends_lib-append port:python26 |
| 122 | } |
| 123 | |
| 124 | variant python27 description {use python27 for the experimental python interface} conflicts python25 python26 { |
| 125 | configure.env-append PYTHON=${prefix}/bin/python2.7 |
| 126 | depends_lib-append port:python27 |
| 127 | } |
| 128 | |
| 129 | pre-configure { |
| 130 | if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} { |
| 131 | configure.args-append --with-python |
| 132 | configure.args-delete --without-python |
| 133 | } |
| 134 | if {[variant_isset python25]} { |
| 135 | reinplace "s|python-config|python2.5-config|g" ${worksrcpath}/configure |
| 136 | } |
| 137 | if {[variant_isset python26]} { |
| 138 | reinplace "s|python-config|python2.6-config|g" ${worksrcpath}/configure |
| 139 | } |
| 140 | if {[variant_isset python27]} { |
| 141 | reinplace "s|python-config|python2.7-config|g" ${worksrcpath}/configure |
| 142 | } |
| 143 | } |
| 144 | |