[MacPorts] #40297: py-robotframework-ride: fix the wxWidgets variants and explicit supported_archs
MacPorts
noreply at macports.org
Mon Dec 30 16:43:07 PST 2013
#40297: py-robotframework-ride: fix the wxWidgets variants and explicit
supported_archs
-------------------------------------+-------------------
Reporter: mojca@… | Owner: jwa@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py-robotframework-ride |
-------------------------------------+-------------------
Comment (by mojca@…):
See also the other comments in #40333, but here's one possible way of
fixing the variants in `py-robotframework-ride`:
{{{
variant wxwidgets30 conflicts wxgtk28 wxwidgets28 description {Use
wxPython 3.0 (not fully functional yet)} {
wxWidgets.use wxPython-3.0
depends_lib-append port:py${python.version}-wxpython-3.0
}
variant wxwidgets28 conflicts wxgtk28 wxwidgets30 description {Use
32-bit Carbon-based wxPython 2.8} {
wxWidgets.use wxWidgets-2.8
depends_lib-append port:py${python.version}-wxpython-2.8
require_active_variants port:py${python.version}-wxpython-2.8
carbon gtk
# TODO: conditionally use the following notes on x86_64 only
notes "To run, use 'arch -i386 ride.py-${python.branch}' to use
32-bit architecture"
}
variant wxgtk28 conflicts wxwidgets28 wxwidgets30 description {Use
GTK-based wxPython 2.8} {
wxWidgets.use wxGTK-2.8
depends_lib-append port:py${python.version}-wxpython-2.8
require_active_variants port:py${python.version}-wxpython-2.8 gtk
carbon
}
if {![variant_isset wxwidgets30] && ![variant_isset wxwidgets28] &&
![variant_isset wxgtk28]} {
if {[vercmp $xcodeversion 4.4] < 0} {
# if wxWidgets 2.8 can be installed, it is best to use py-
wxpython-2.8 anyway (except that one needs to enable 32-bit by default)
default_variants +wxwidgets28
} else {
if { ${python.version} == 27} {
# buggy/broken - up to you if you want to make
wxWidgets-3.0 or wxGTK-2.8 the default variant
default_variants +wxwidgets30
} else {
default_variants +wxgtk28
}
}
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/40297#comment:5>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list