# -*- 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
PortGroup active_variants 1.1
github.setup enthought mayavi 4.6.2
categories-append devel graphics math
maintainers {gmail.com:jjstickel @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.
checksums rmd160 e1228d368978b5abde4ee4946306b82e3431e087 \
sha256 27d8f02cf8f40afce2b6e4dec7de740fbcbcd25d1bb69e26069adb4ab9f4a9a9 \
python.versions 27 35 36 37
python.default_version 36
if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools \
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 \
require_active_variants vtk python${python.version}
# https://github.com/enthought/mayavi/issues/652
reinplace "/vtk/d" ${worksrcpath}/mayavi/__init__.py
reinplace "s|sphinx-build|sphinx-build-${python.branch}|g" \
${worksrcpath}/docs/Makefile \
${worksrcpath}/docs/MakefileMayavi \
${worksrcpath}/docs/MakefileTVTK