| 45 | variant python25 conflicts python26 python27 description {Use python 2.5} { |
| 46 | depends_build-append port:python25 |
| 47 | depends_build-append port:py25-libxml2 |
| 48 | post-configure { |
| 49 | reinplace "s|#!/usr/bin/env python|#!/usr/bin/env python2.5|" \ |
| 50 | ${worksrcpath}/tools/xml2po.py |
| 51 | } |
| 52 | } |
| 53 | variant python26 conflicts python25 python27 description {Use python 2.6} { |
| 54 | depends_build-append port:python26 |
| 55 | depends_build-append port:py26-libxml2 |
| 56 | post-configure { |
| 57 | reinplace "s|#!/usr/bin/env python|#!/usr/bin/env python2.6|" \ |
| 58 | ${worksrcpath}/tools/xml2po.py |
| 59 | } |
| 60 | } |
| 61 | variant python27 conflicts python25 python26 description {Use python 2.7} { |
| 62 | depends_build-append port:python27 |
| 63 | depends_build-append port:py27-libxml2 |
| 64 | post-configure { |
| 65 | reinplace "s|#!/usr/bin/env python|#!/usr/bin/env python2.7|" \ |
| 66 | ${worksrcpath}/tools/xml2po.py |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | # Default to python 2.7 |
| 71 | if {![variant_isset python25] && ![variant_isset python26]} { |
| 72 | default_variants +python27 |
| 73 | } |
| 74 | |