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

PortSystem	1.0
PortGroup	python25 1.0

name                py25-mayavi
version             3.2.0
categories-append   devel graphics math
maintainers         vcn.com:jjstickel openmaintainer 
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:py25-distribute

depends_lib-append    port:vtk5\
    port:py25-configobj\
    port:py25-numpy\
    port:py25-apptools\
    port:py25-envisageplugins\
    port:py25-traitsgui

depends_run-append    port:py25-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
