# -*- 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
# $Id: Portfile 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem	            1.0
PortGroup	            python 1.0

name                    py-pyface
version                 4.2.0
categories-append       devel
license                 BSD
maintainers             gmail.com:jjstickel openmaintainer
supported_archs         noarch

description             The Enthought pyface package
long_description        The pyface project contains a toolkit-independent GUI\
                        abstraction layer, which is used to support the\
                        "visualization" features of the Traits package. 
platforms               darwin
homepage                https://github.com/enthought/pyface
master_sites            http://www.enthought.com/repo/ets/
distname                pyface-${version}

checksums               rmd160  cd4656b8cab966e6e9ef298a09926b596f1be6cf \
                        sha256  f2dfc6edaca3e51f3efcdf4e1d85d1cf219e2989959c4683a6cff4f28d4f801c

python.versions         25 26 27

if {$subport != $name} {
    depends_build-append    port:py${python.version}-setuptools
    depends_lib-append      port:py${python.version}-traits
}

variant wx description {Use wxWidgets backend} {
    if {$subport != $name} {
        depends_lib-append      port:py${python.version}-wxpython
    }
}

variant pyqt4 conflicts pyside description "Qt backend using PyQt4" {
    if {$subport != $name} {
        depends_lib-append      port:py${python.version}-pyqt4
    }
}

variant pyside conflicts pyqt4 description "Qt backend using PySide" {
    if {$subport != $name} {
        depends_lib-append      port:py${python.version}-pyside
    }
}

default_variants-append +pyqt4
