Ticket #35285: Portfile.diff

File Portfile.diff, 1.3 KB (added by someuser12, 12 years ago)

Proposal of a patch to the Portfile

  • Portfile

    old new  
    4242
    4343configure.env   ALL_LINGUAS='${lingua}'
    4444
     45variant 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}
     53variant 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}
     61variant 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
     71if {![variant_isset python25] && ![variant_isset python26]} {
     72    default_variants +python27
     73}
     74
    4575livecheck.type  regex
    4676livecheck.url   http://gimp.cp-dev.com/gimp/help/
    4777livecheck.regex ${gname}-(\\d+(?:\\.\\d+)*)${extract.suffix}