New port: graphics/py-mayavi

3D Scientific Data Visualization and Plotting

The Mayavi project includes two related packages for 3-dimensional
visualization:
  Mayavi: A tool for easy and interactive visualization of data, with
          seamless integration with Python scientific libraries.
  TVTK:   A Traits-based wrapper for the Visualization Toolkit, a popular
          open-source visualization library.

These libraries operate at different levels of abstraction. TVTK
manipulates visualization objects, while Mayavi lets you operate
on your data, and then see the results. Most users either use the
Mayavi user interface or program to its scripting interface; you
probably don't need to interact with TVTK unless you want to create
a new Mayavi module.

WWW: http://code.enthought.com/projects/mayavi/

PR:		204435
Submitted by:	Vladimir Chukharev <vladimir.chukharev@gmail.com>
This commit is contained in:
Kurt Jaeger 2016-08-06 07:04:36 +00:00
parent 12094ff9a1
commit 19d829a0a9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419732
6 changed files with 101 additions and 0 deletions

View file

@ -848,6 +848,7 @@
SUBDIR += py-imageio
SUBDIR += py-imagesize
SUBDIR += py-imgurpython
SUBDIR += py-mayavi
SUBDIR += py-mcomix
SUBDIR += py-ming
SUBDIR += py-nwdiag

View file

@ -0,0 +1,52 @@
# Created by: Vladimir Chukharev
# $FreeBSD$
PORTNAME= mayavi
PORTVERSION= 4.5.0
CATEGORIES= graphics science python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= Vladimir.Chukharev@gmail.com
COMMENT= Application and library for 3D visualization and plotting in Python
LICENSE= BSD3CLAUSE LGPL21 LGPL20 EPL LGPL3 BSD2CLAUSE APACHE11
LICENSE_COMB= multi
LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE.txt
LICENSE_FILE_LGPL21= ${WRKSRC}/image_LICENSE_Nuvola.txt
LICENSE_FILE_LGPL20= ${WRKSRC}/image_LICENSE_CP.txt
LICENSE_FILE_EPL= ${WRKSRC}/image_LICENSE_Eclipse.txt
LICENSE_FILE_LGPL3= ${WRKSRC}/image_LICENSE_OOo.txt
LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/LICENSE_YORICK.txt
LICENSE_FILE_APACHE11= ${WRKSRC}/LICENSE_COLORBREWER.txt
# See ${WRKSRC}/image_LICENSE.txt for per file license information
BUILD_DEPENDS= vtk6>=6.1.0_8:math/vtk6 \
py27-sphinx>=1.3.1_2:textproc/py-sphinx
RUN_DEPENDS= vtk6>=6.1.0_8:math/vtk6 \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}envisage>=4.4.0:devel/py-envisage \
${PYTHON_PKGNAMEPREFIX}pyface>=4.5.2:devel/py-pyface \
${PYTHON_PKGNAMEPREFIX}scimath>=4.1.2:science/py-scimath \
${PYTHON_PKGNAMEPREFIX}traitsui>=4.5.1:graphics/py-traitsui
USES= python:-2.7 tar:bzip2
USE_PYTHON= autoplist distutils
USE_WX= 2.8+
WX_COMPS= python:run
DEP1= vtk6
pre-configure:
if [ ! -e ${PREFIX}/lib/python2.7/site-packages/vtk/__init__.py ]; then \
${ECHO_MSG} "Port math/vtk6 is installed without PYTHON option."; \
${ECHO_MSG} "Please reinstall with PYTHON selected."; \
${FALSE}; \
else \
${ECHO_MSG} "Good, math/vtk6 is installed with PYTHON option!"; \
fi
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/python2.7/site-packages/tvtk/array_ext.so
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1470335243
SHA256 (mayavi-4.5.0.tar.bz2) = b416bf0b183628e391b73377a965c500480466f06fcf21aae547783eb40c6e49
SIZE (mayavi-4.5.0.tar.bz2) = 6927482

View file

@ -0,0 +1,17 @@
--- setup.py.orig 2016-08-01 19:02:36 UTC
+++ setup.py
@@ -403,12 +403,12 @@ def configuration(parent_package=None, t
config.add_data_dir('mayavi/core/lut')
config.add_data_dir('mayavi/tests/data')
config.add_data_dir('mayavi/tests/csv_files')
- config.add_data_dir('mayavi/tools/static')
+ config.add_data_dir('mayavi/tools/static/x3d')
# Image files.
for pkgdir in ('mayavi', 'tvtk'):
for root, dirs, files in os.walk(pkgdir):
- if split(root)[-1] == 'images':
+ if (split(root)[-1] == 'images') and files:
config.add_data_dir(root)
# *.ini files.

View file

@ -0,0 +1,11 @@
--- tvtk/setup.py.orig 2016-08-01 19:02:36 UTC
+++ tvtk/setup.py
@@ -20,7 +20,7 @@ def configuration(parent_package=None, t
config.add_subpackage('custom')
config.add_subpackage('pipeline')
config.add_data_dir('pipeline/images')
- config.add_data_dir('pyface/images')
+# config.add_data_dir('pyface/images')
config.add_data_dir('tools/images')
config.add_subpackage('plugins')

View file

@ -0,0 +1,17 @@
3D Scientific Data Visualization and Plotting
The Mayavi project includes two related packages for 3-dimensional
visualization:
Mayavi: A tool for easy and interactive visualization of data, with
seamless integration with Python scientific libraries.
TVTK: A Traits-based wrapper for the Visualization Toolkit, a popular
open-source visualization library.
These libraries operate at different levels of abstraction. TVTK
manipulates visualization objects, while Mayavi lets you operate
on your data, and then see the results. Most users either use the
Mayavi user interface or program to its scripting interface; you
probably don't need to interact with TVTK unless you want to create
a new Mayavi module.
WWW: http://code.enthought.com/projects/mayavi/