Ticket #26418: xorg-xcb-proto-Portfile.diff

File xorg-xcb-proto-Portfile.diff, 1.2 KB (added by jmroot (Joshua Root), 13 years ago)
  • Portfile

     
    2222
    2323depends_run     port:libxml2
    2424
     25if {[variant_isset python31] || [variant_isset python32]} {
     26    patchfiles-append xcbproto-python3.patch
     27    post-patch {
     28        system -W ${worksrcpath}/xcbgen "$2to3 -w *.py"
     29    }
     30}
     31
     32set 2to3 ""
    2533variant python25 conflicts python26 python27 python31 python32 description {Use python 2.5} {
    2634    depends_run-append      port:python25
    2735    configure.python        ${prefix}/bin/python2.5
     
    4048variant python31 conflicts python25 python26 python27 python32 description {Use python 3.1} {
    4149    depends_run-append      port:python31
    4250    configure.python        ${prefix}/bin/python3.1
     51    set 2to3 "${prefix}/bin/2to3-3.1"
    4352}
    4453
    4554variant python32 conflicts python25 python26 python27 python31 description {Use python 3.2} {
    4655    depends_run-append      port:python32
    4756    configure.python        ${prefix}/bin/python3.2
     57    set 2to3 "${prefix}/bin/2to3-3.2"
    4858}
    4959
    5060if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python31] && ![variant_isset python32]} {