Ticket #26418: xorg-libxcb-Portfile.diff

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

     
    2727                port:xorg-xcb-proto \
    2828                port:xorg-libpthread-stubs
    2929
     30if {[variant_isset python31] || [variant_isset python32]} {
     31    patchfiles-append libxcb-python3.patch
     32    post-patch {
     33        system -W ${worksrcpath}/src "$2to3 -w *.py"
     34    }
     35}
     36
     37set 2to3 ""
    3038variant python25 conflicts python26 python27 python31 python32 description {Use python 2.5} {
    3139    depends_run-append      port:python25
    3240    configure.python        ${prefix}/bin/python2.5
     
    4553variant python31 conflicts python25 python26 python27 python32 description {Use python 3.1} {
    4654    depends_run-append      port:python31
    4755    configure.python        ${prefix}/bin/python3.1
     56    set 2to3 "${prefix}/bin/2to3-3.1"
    4857}
    4958
    5059variant python32 conflicts python25 python26 python27 python31 description {Use python 3.2} {
    5160    depends_run-append      port:python32
    5261    configure.python        ${prefix}/bin/python3.2
     62    set 2to3 "${prefix}/bin/2to3-3.2"
    5363}
    5464
    5565if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python31] && ![variant_isset python32]} {