# -*- 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

PortSystem          1.0
PortGroup           python 1.0
PortGroup           github 1.0

github.setup        enthought enable 4.5.0

name                py-enable
categories-append   devel
maintainers         {gmail.com:jjstickel @jjstickel} openmaintainer
description         The Enthought enable package
long_description    The Enable project provides two related multi-platform\
                    packages for drawing GUI objects.  Enable: An object\
                    drawing library that supports containment and event\
                    notification.  Kiva: A multi-platform DisplayPDF vector\
                    drawing engine.
license             BSD
platforms           darwin

checksums           rmd160  d2c43d3f488fe81be39f7168b77d9697fdbed9ec \
                    sha256  453b1fb373845f703a5cb31c92166925fb74f2285717d04f0e1d0e9705d28496

python.versions     27

if {${name} ne ${subport}} {
    # It seems this is not needed for version >= 4.3.0, but leaving here in
    # case problems are reported JJS 1/9/13
#    patchfiles              no-64-bit-quartz.diff
    patchfiles              patch-swig_fix.diff
    patch.pre_args          -p1
    
    depends_build-append    port:py${python.version}-setuptools \
                            port:py${python.version}-cython \
                            port:swig-python
    depends_lib-append      port:py${python.version}-traitsui \
                            port:py${python.version}-reportlab \
                            port:py${python.version}-kiwisolver
}

# haven't retested if this is still true for version >= 4.0; commenting out but
# leaving here in case someone has a problem with universal, JJS 1/9/13
#universal_variant no