# -*- 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$ PortSystem 1.0 PortGroup python 1.0 name py-mayavi version 4.1.0 categories-append devel graphics math maintainers gmail.com:jjstickel openmaintainer description The Enthought mayavi package long_description 3D Scientific Data Visualization and Plotting using VTK as the \ rendering backend and wxpython or pyqt4 for the (G)UI. license BSD platforms darwin homepage https://github.com/enthought/mayavi master_sites http://www.enthought.com/repo/ets/ distname mayavi-${version} checksums sha256 53d44cf4dcd7ebf57e197e0a72002db30a74f23e5642e34b3b8f2ebe7a71bbf9 \ rmd160 db9a6bf5af9778f11ebf5c22e5c2c7f1b8dc6557 python.versions 25 26 27 python.default_version 27 if {$subport != $name} { depends_build-append port:py${python.version}-distribute \ port:py${python.version}-sphinx depends_lib-append port:py${python.version}-apptools \ port:py${python.version}-envisage \ port:py${python.version}-numpy \ port:py${python.version}-traitsui \ port:vtk5 patch { reinplace "s|sphinx-build|sphinx-build-${python.branch}|g" \ ${worksrcpath}/docs/Makefile \ ${worksrcpath}/docs/MakefileMayavi \ ${worksrcpath}/docs/MakefileTVTK } # if variant dependencies or checking becomes possible, this can be improved pre-configure { ui_msg \ "Note that vtk5 must be installed using the same framework (cocoa\ OR x11/gtk) as that used for the GUI (wxwidgets/wxpython OR\ qt4/pyqt4)." if {![catch {glob "${prefix}/Library/Frameworks/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/VTK-*-py${python.branch}.egg-info/PKG-INFO"}]==0} { ui_error "vtk5 must be installed with the +python${python.version} variant" return -code error "incompatible vtk5 installation" } } }