# -*- 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 65908 2010-04-02 22:28:17Z jmr@macports.org $

PortSystem	1.0
PortGroup	python26 1.0

name                py26-mayavi
version             3.2.0
categories-append   devel graphics math
maintainers         nomaintainer 
description         The Enthought mayavi package
long_description    3D Scientific Data Visualization and Plotting using VTK \
    as the rendering backend and (wx)python for the (G)UI. \
    VTK must be compiled using carbon.
platforms           darwin
homepage            http://code.enthought.com/projects/mayavi/
master_sites        http://www.enthought.com/repo/ETS/
distname            Mayavi-${version}
checksums           md5 efd2de257e517de54f7697526de9a04c

depends_build-append    port:py26-distribute
depends_lib-append      port:vtk5 \
                        port:py26-configobj port:py26-numpy \
                        port:py26-apptools port:py26-envisageplugins port:py26-traitsgui

depends_run-append    port:py26-ipython

pre-fetch {
    if {![file exists ${prefix}/include/vtk-5.2/vtkCarbonRenderWindow.h]} {
        ui_error "vtk must be installed with the +carbon variant"
        error "vtk must be installed with the +carbon variant"
    }
}

patchfiles          changeset_r24036.diff
patch.pre_args      -p3
