Ticket #40297: py-robotframework-ride.Portfile.diff

File py-robotframework-ride.Portfile.diff, 1.8 KB (added by mojca (Mojca Miklavec), 11 years ago)
  • Portfile

     
    3434    build.cmd           ${python.bin} setup.py
    3535    destroot.cmd        ${python.bin} setup.py
    3636    depends_lib-append  port:py${python.version}-robotframework \
    37         port:py${python.version}-wxpython-2.8 \
    38         port:py${python.version}-paver
     37                        port:py${python.version}-paver
    3938
    40     # TODO: this port probably needs a variant to switch between py-wxpython-2.8 and py-wxpython-3.0
    41     #       until it starts working properly on py-wxpython-3.0
    42     # Depending on 2.8 for now
    43 #    if {${os.major}>=12} {
    44 #        depends_lib-delete port:py${python.version}-wxpython-2.8
    45 #        depends_lib-append port:py${python.version}-wxpython-3.0
    46 #    }
    47 
    4839    post-extract {
    4940        reinplace "s/pybot/pybot-${python.branch}/g" $worksrcpath/src/robotide/contrib/testrunner/runprofiles.py
    5041    }
    5142
    52     # with 'py-wxpython-3.0' and 'py-wxpython-2.8 +gtk' this should not be needed
    53     # this should only be issued when depending on 'py-wxpython-2.8 +carbon' on 64-bit OS or deleted
    54     # notes "To run, use 'arch -i386 ride.py-${python.branch}' to use 32bit architecture"
     43    variant wxpython30 conflicts wxpython28 description {Use wxPython 3.0 with Cocoa (experimental)} {
     44        depends_lib-append  port:py${python.version}-wxpython-3.0
     45        notes-append "Warning: wxPython 3.0 is not fully compatible with robotframework-ride.\n"
     46    }
     47
     48    variant wxpython28 conflicts wxpython28 description {Use wxPython 2.8 with GTK} {
     49        depends_lib-append  port:py${python.version}-wxpython-2.8
     50    }
     51
     52    if {![variant_isset wxpython30] && ![variant_isset wxpython28]} {
     53        default_variants    +wxpython28
     54    }
    5555}
    5656
    5757if {${name} eq ${subport}} {