svn commit: r419732 - in head/graphics: . py-mayavi py-mayavi/files
Kurt Jaeger
pi at FreeBSD.org
Sat Aug 6 07:04:38 UTC 2016
Author: pi
Date: Sat Aug 6 07:04:36 2016
New Revision: 419732
URL: https://svnweb.freebsd.org/changeset/ports/419732
Log:
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 at gmail.com>
Added:
head/graphics/py-mayavi/
head/graphics/py-mayavi/Makefile (contents, props changed)
head/graphics/py-mayavi/distinfo (contents, props changed)
head/graphics/py-mayavi/files/
head/graphics/py-mayavi/files/patch-setup.py (contents, props changed)
head/graphics/py-mayavi/files/patch-tvtk_setup.py (contents, props changed)
head/graphics/py-mayavi/pkg-descr (contents, props changed)
Modified:
head/graphics/Makefile
Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile Sat Aug 6 06:50:09 2016 (r419731)
+++ head/graphics/Makefile Sat Aug 6 07:04:36 2016 (r419732)
@@ -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
Added: head/graphics/py-mayavi/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/py-mayavi/Makefile Sat Aug 6 07:04:36 2016 (r419732)
@@ -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 at 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>
Added: head/graphics/py-mayavi/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/py-mayavi/distinfo Sat Aug 6 07:04:36 2016 (r419732)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1470335243
+SHA256 (mayavi-4.5.0.tar.bz2) = b416bf0b183628e391b73377a965c500480466f06fcf21aae547783eb40c6e49
+SIZE (mayavi-4.5.0.tar.bz2) = 6927482
Added: head/graphics/py-mayavi/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/py-mayavi/files/patch-setup.py Sat Aug 6 07:04:36 2016 (r419732)
@@ -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.
Added: head/graphics/py-mayavi/files/patch-tvtk_setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/py-mayavi/files/patch-tvtk_setup.py Sat Aug 6 07:04:36 2016 (r419732)
@@ -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')
Added: head/graphics/py-mayavi/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/py-mayavi/pkg-descr Sat Aug 6 07:04:36 2016 (r419732)
@@ -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/
More information about the svn-ports-head
mailing list