Ticket #40207: py-pyface_Portfile.2.diff
File py-pyface_Portfile.2.diff, 2.1 KB (added by jjstickel (Jonathan Stickel), 11 years ago) |
---|
-
Portfile
old new 6 6 PortGroup python 1.0 7 7 PortGroup github 1.0 8 8 9 #PortGroupwxWidgets 1.09 PortGroup wxWidgets 1.0 10 10 11 11 github.setup enthought pyface 4.4.0 12 12 13 revision 1 13 14 name py-pyface 14 15 categories-append devel 15 16 license BSD … … 31 32 depends_build-append port:py${python.version}-setuptools 32 33 depends_lib-append port:py${python.version}-traits 33 34 34 # # wx-3.0 is not fully compatible with enthought, JJS 1/8/1435 # variant wx description {Use wxWidgets backend} {36 # depends_lib-append port:py${python.version}-wxpython-3.037 #}35 variant wxwidgets description {Use wxWidgets-3.0 cocoa backend} { 36 depends_lib-append port:py${python.version}-wxpython-3.0 37 notes-append "Warning: wxpython-3.0 is not fully compatible with pyface, but the wxwidgets variant exists for testing and future use.\n" 38 } 38 39 39 variant pyqt4 conflicts pyside description "Qt backend using PyQt4" { 40 variant wxgtk description {Use wxWidgets-2.8 gtk backend} { 41 depends_lib-append port:py${python.version}-wxpython-2.8 42 } 43 44 variant pyqt4 description "Qt backend using PyQt4" { 40 45 # Can use either py*-pyqt4 or py*-pyqt4-devel. 41 46 depends_lib-append path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4 42 47 } 43 48 44 variant pyside conflicts pyqt4description "Qt backend using PySide" {49 variant pyside description "Qt backend using PySide" { 45 50 depends_lib-append port:py${python.version}-pyside 46 51 } 47 52 48 default_variants-append +pyqt4 53 if {![variant_isset wxwidgets] && ![variant_isset wxgtk] && ![variant_isset pyside] && ![variant_isset pyqt4]} { 54 default_variants +pyqt4 55 } 49 56 50 notes "If wxpython is installed, enthought modules will try to use it\ 51 even if pyqt4 (or pyside) are also installed" 57 notes-append "If multiple backends installed, the toolkit backend may be set with environment variables ETS_TOOLKIT and QT_API, e.g., ETS_TOOLKIT=qt4, QT_API=pyqt.\n" 52 58 }