Ticket #42071: Portfile.diff

File Portfile.diff, 2.2 KB (added by zpeeters@…, 9 years ago)
  • Portfile

    old new  
    1010categories          x11 graphics
    1111maintainers         jeremyhu openmaintainer
    1212license             MIT
    13 license_noconflict  py26-libxml2 py27-libxml2
     13license_noconflict  py26-libxml2 py27-libxml2 py32-libxml2 py33-libxml2
    1414description         Mesa 3D Graphics Library
    1515long_description    Mesa is an open-source implementation of the OpenGL specification, a system for rendering interactive 3D graphics.
    1616
     
    9191    patchfiles-append iglx.patch
    9292}
    9393
    94 variant python26 conflicts python27 description {Use python 2.6} {
     94variant python26 conflicts python27 python32 python33 description {Use python 2.6} {
    9595    depends_build-append \
    9696        port:py26-libxml2
    9797    build.args-append \
    9898        PYTHON2="${prefix}/bin/python2.6"
    9999}
    100100
    101 variant python27 conflicts python26 description {Use python 2.7} {
     101variant python27 conflicts python26 python32 python33 description {Use python 2.7} {
    102102    depends_build-append \
    103103        port:py27-libxml2
    104104    build.args-append \
    105105        PYTHON2="${prefix}/bin/python2.7"
    106106}
    107107
    108 if {![variant_isset python26] && ![variant_isset python27]} {
     108variant python32 conflicts python26 python27 python33 description {Use python 3.2} {
     109    depends_build-append \
     110        port:py32-libxml2
     111    patchfiles-append \
     112        patch-python3-fixes.diff
     113    build.args-append \
     114        PYTHON2="${prefix}/bin/python3.2"
     115   
     116    post-configure {
     117        # do not try to 'fix' next->__next__
     118        system -W ${worksrcpath} "${prefix}/bin/2to3-3.2 -wn -x next . src/glsl/tests/compare_ir"
     119    }
     120}
     121
     122variant python33 conflicts python26 python27 python32 description {Use python 3.3} {
     123    depends_build-append \
     124        port:py32-libxml2
     125    patchfiles-append \
     126        patch-python3-fixes.diff
     127    build.args-append \
     128        PYTHON2="${prefix}/bin/python3.3"
     129   
     130    post-configure {
     131        # do not try to 'fix' next->__next__
     132        system -W ${worksrcpath} "${prefix}/bin/2to3-3.3 -wn -x next . src/glsl/tests/compare_ir"
     133    }
     134}
     135
     136if {![variant_isset python26] && ![variant_isset python27] && \
     137    ![variant_isset python32] && ![variant_isset python33]} {
    109138    default_variants +python27
    110139}
    111140