Ticket #40207: py-pyface.Portfile.4

File py-pyface.Portfile.4, 2.4 KB (added by mojca (Mojca Miklavec), 10 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 115674 2014-01-08 18:28:46Z mojca@macports.org $
3
4PortSystem              1.0
5
6PortGroup               python 1.0
7PortGroup               github 1.0
8PortGroup               wxWidgets 1.0
9
10github.setup            enthought pyface 4.4.0
11revision                1
12
13name                    py-pyface
14categories-append       devel
15license                 BSD
16maintainers             gmail.com:jjstickel openmaintainer
17supported_archs         noarch
18
19description             The Enthought pyface package
20long_description        The pyface project contains a toolkit-independent GUI\
21                        abstraction layer, which is used to support the\
22                        "visualization" features of the Traits package.
23platforms               darwin
24
25checksums               rmd160  667a4b7acbab68167c53a158dd21487d0303e97b \
26                        sha256  f675d9ddb736328fc6ec8d1daf94d3779b66ed6640596dcc4a1d96c141806548
27
28python.versions         26 27
29
30if {${name} ne ${subport}} {
31    depends_build-append    port:py${python.version}-setuptools
32    depends_lib-append      port:py${python.version}-traits
33
34    variant wxpython30 conflicts wxpython28 description "Use wxWidgets-3.0 (cocoa) backend (experimental)" {
35        depends_lib-append  port:py${python.version}-wxpython-3.0
36        notes-append "Warning: wxpython-3.0 is not fully compatible with pyface, but the wxpython30 variant exists for testing and future use.\n"
37    }
38
39    variant wxpython28 conflicts wxpython28 description "Use wxWidgets-2.8 (gtk or carbon) backend" {
40        depends_lib-append  port:py${python.version}-wxpython-2.8
41    }
42
43    variant pyqt4 description "Qt backend using PyQt4" {
44        # Can use either py*-pyqt4 or py*-pyqt4-devel.
45        depends_lib-append  path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4
46    }
47
48    variant pyside description "Qt backend using PySide" {
49        depends_lib-append  port:py${python.version}-pyside
50    }
51
52    if {![variant_isset wxpython30] && ![variant_isset wxpython28] && ![variant_isset pyqt4] && ![variant_isset pyside]} {
53        default_variants    +pyqt4
54    }
55
56    notes-append "If multiple backends are installed, the toolkit backend may be set\
57 with environment variables ETS_TOOLKIT and QT_API, e.g., ETS_TOOLKIT=qt4, QT_API=pyqt.\n"
58}