[arch-commits] Commit in mayavi/repos/community-x86_64 (8 files)
Andrzej Giniewicz
aginiewicz at archlinux.org
Sat Oct 20 14:02:36 UTC 2018
Date: Saturday, October 20, 2018 @ 14:02:35
Author: aginiewicz
Revision: 398086
archrelease: copy trunk to community-x86_64
Added:
mayavi/repos/community-x86_64/PKGBUILD
(from rev 398085, mayavi/trunk/PKGBUILD)
mayavi/repos/community-x86_64/mayavi.csh
(from rev 398085, mayavi/trunk/mayavi.csh)
mayavi/repos/community-x86_64/mayavi.sh
(from rev 398085, mayavi/trunk/mayavi.sh)
Deleted:
mayavi/repos/community-x86_64/PKGBUILD
mayavi/repos/community-x86_64/mayavi.csh
mayavi/repos/community-x86_64/mayavi.sh
mayavi/repos/community-x86_64/setuptools.patch
mayavi/repos/community-x86_64/vtk6.patch
------------------+
PKGBUILD | 210 ++++++++++++++++++++++++-----------------------------
mayavi.csh | 2
mayavi.sh | 2
setuptools.patch | 22 -----
vtk6.patch | 47 -----------
5 files changed, 98 insertions(+), 185 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-10-20 14:02:15 UTC (rev 398085)
+++ PKGBUILD 2018-10-20 14:02:35 UTC (rev 398086)
@@ -1,114 +0,0 @@
-# $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-
-pkgname=mayavi
-pkgver=4.5.0
-pkgrel=6
-pkgdesc="A 3-dimensional visualizer of scientific data"
-arch=('i686' 'x86_64')
-url="https://github.com/enthought/mayavi"
-license=('BSD')
-depends=('ipython2' 'vtk' 'python2-envisage' 'python2-traitsui' 'python2-configobj' 'wxpython'
- 'gdal' 'unixodbc' 'jsoncpp' 'openmpi' 'ffmpeg')
-makedepends=('python2-setuptools' 'python2-sphinx' 'python2-twisted' 'xorg-server-xvfb' 'qt5-base')
-replaces=('python2-mayavi')
-provides=('python2-mayavi')
-options=(!emptydirs)
-
-source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/mayavi/archive/${pkgver}.tar.gz"
- "mayavi.sh" "mayavi.csh" "setuptools.patch")
-md5sums=('ed3b0004b810bd5741ae9bb46d197250'
- '3e998f4f3cb1d9bc3353fbb933984458'
- 'd68e29e3c805ad2e0a5e82b1744b1f0a'
- 'fa81f3c6610942dedd072ef55428c41b')
-
-prepare() {
- cd "$srcdir"/mayavi-$pkgver
-
- # patch to fix setuptools 28.0 --- https://github.com/enthought/mayavi/issues/443
- patch -p1 < ../setuptools.patch
-
- # fix wrong-file-end-of-line-encoding
- for file in *.txt examples/mayavi/data/room_vis.wrl examples/tvtk/dscene.py \
- examples/mayavi/interactive/wx_mayavi_embed*.py ; do
- sed "s|\r||g" $file > $file.new && \
- touch -r $file $file.new && \
- mv $file.new $file
- done
-
- # file-not-utf8
- for file in *.txt docs/*.txt; do
- iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
- touch -r $file $file.new && \
- mv $file.new $file
- done
-
- # remove exec permission
- find examples -type f -exec chmod 0644 {} ";"
- chmod 0644 mayavi/tests/data/cellsnd.ascii.inp
-
- # set path so autodoc can find just built modules
- echo "sys.path.append('$srcdir/mayavi-$pkgver/build/lib.linux-$CARCH-2.7/')" >> docs/source/mayavi/conf.py
-
- # Use python2-sphinx provided sphinx-build2
- sed -i -e 's/sphinx-build/sphinx-build2/' docs/Makefile*
-
- # fix python->python2
- sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
- -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
- -i $(find . -name '*[\._]py')
-}
-
-build() {
- cd "$srcdir"/mayavi-$pkgver
-
- rm -rf build
- mkdir build
- mkdir -p build/lib.linux-$CARCH-2.7/{tvtk/plugins/scene,mayavi/preferences,mayavi/core}
- ln -s "$srcdir"/enthought-mayavi-${_githubtag}/tvtk/tvtk_classes.zip \
- build/lib.linux-$CARCH-2.7/tvtk/tvtk_classes.zip
- ln -s "$srcdir"/enthought-mayavi-${_githubtag}/mayavi/preferences/preferences.ini \
- build/lib.linux-$CARCH-2.7/mayavi/preferences/preferences.ini
- ln -s "$srcdir"/enthought-mayavi-${_githubtag}/tvtk/plugins/scene/preferences.ini \
- build/lib.linux-$CARCH-2.7/tvtk/plugins/scene/preferences.ini
-
- # now this is ugly, but docs do not build without X. We setup X according to:
- # http://docs.enthought.com/mayavi/mayavi/tips.html#rendering-using-the-virtual-framebuffer
- export DISPLAY=:69
- Xvfb $DISPLAY &
-
- # build!
- export ETS_TOOLKIT="wx"
- python2 setup.py build
-
- # have to kill the server to proceed, and do other cleanup
- kill `cat /tmp/.X${DISPLAY/:/}-lock`
- rm build/lib.linux-$CARCH-2.7/tvtk/tvtk_classes.zip
- rm build/lib.linux-$CARCH-2.7/mayavi/preferences/preferences.ini
- rm build/lib.linux-$CARCH-2.7/tvtk/plugins/scene/preferences.ini
-}
-
-package() {
- cd "$srcdir"/mayavi-$pkgver
-
- python2 setup.py install --skip-build --root="$pkgdir"/ --optimize=1
-
- # remove useless files
- rm -f "${pkgdir}"/usr/lib/python2.7/site-packages/tvtk/setup.py*
- find "${pkgdir}" -name \.buildinfo -type f -print | xargs rm -f -
-
- # non-executable-script
- chmod +x "${pkgdir}"/usr/lib/python2.7/site-packages/mayavi/tests/runtests.py
-
- # install manpage
- mkdir -p "${pkgdir}"/usr/share/man/man1
- cp -p docs/mayavi2.man "${pkgdir}"/usr/share/man/man1/mayavi2.1
-
- # switch to Wx, as PyQT no longer works, FS#41791 no longer fixed :(
- install -d "${pkgdir}"/etc/profile.d
- install -Dm644 "${srcdir}"/mayavi.sh "${pkgdir}"/etc/profile.d/mayavi.sh
- install -Dm644 "${srcdir}"/mayavi.csh "${pkgdir}"/etc/profile.d/mayavi.csh
-
- install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: mayavi/repos/community-x86_64/PKGBUILD (from rev 398085, mayavi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-10-20 14:02:35 UTC (rev 398086)
@@ -0,0 +1,96 @@
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgname=mayavi
+pkgver=4.6.2
+pkgrel=1
+pkgdesc="A 3-dimensional visualizer of scientific data"
+arch=('x86_64')
+url="https://github.com/enthought/mayavi"
+license=('BSD')
+depends=('vtk' 'python-envisage' 'python-traitsui' 'python-configobj' 'python-pyqt5' 'gdal' 'unixodbc' 'jsoncpp' 'openmpi' 'ffmpeg')
+makedepends=('python-setuptools' 'python-sphinx' 'python-twisted' 'xorg-server-xvfb' 'qt5-base' 'glew' 'proj')
+replaces=('python-mayavi')
+provides=('python-mayavi')
+options=(!emptydirs)
+
+source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/mayavi/archive/${pkgver}.tar.gz"
+ "mayavi.sh" "mayavi.csh")
+md5sums=('11e76a5ed9b7cd123b6a8efd3828c52a'
+ '5773317624d524e19c78c0521dab79d3'
+ 'd42bd281c92cb998f3d8a36171688fc4')
+
+prepare() {
+ cd "$srcdir"/mayavi-$pkgver
+
+ # fix wrong-file-end-of-line-encoding
+ for file in *.txt examples/mayavi/data/room_vis.wrl examples/tvtk/dscene.py \
+ examples/mayavi/interactive/wx_mayavi_embed*.py ; do
+ sed "s|\r||g" $file > $file.new && \
+ touch -r $file $file.new && \
+ mv $file.new $file
+ done
+
+ # file-not-utf8
+ for file in *.txt docs/*.txt; do
+ iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
+ touch -r $file $file.new && \
+ mv $file.new $file
+ done
+
+ # remove exec permission
+ find examples -type f -exec chmod 0644 {} ";"
+ chmod 0644 mayavi/tests/data/cellsnd.ascii.inp
+
+ # set path so autodoc can find just built modules
+ echo "sys.path.append('$srcdir/mayavi-$pkgver/build/lib.linux-$CARCH-3.7/')" >> docs/source/mayavi/conf.py
+}
+
+build() {
+ cd "$srcdir"/mayavi-$pkgver
+
+ rm -rf build
+ mkdir build
+ mkdir -p build/lib.linux-$CARCH-3.7/{tvtk/plugins/scene,mayavi/preferences,mayavi/core}
+ ln -s "$srcdir"/enthought-mayavi-${_githubtag}/tvtk/tvtk_classes.zip \
+ build/lib.linux-$CARCH-3.7/tvtk/tvtk_classes.zip
+ ln -s "$srcdir"/enthought-mayavi-${_githubtag}/mayavi/preferences/preferences.ini \
+ build/lib.linux-$CARCH-3.7/mayavi/preferences/preferences.ini
+ ln -s "$srcdir"/enthought-mayavi-${_githubtag}/tvtk/plugins/scene/preferences.ini \
+ build/lib.linux-$CARCH-3.7/tvtk/plugins/scene/preferences.ini
+
+ export ETS_TOOLKIT="qt"
+ # now this is ugly, but docs do not build without X. We setup X according to:
+ # http://docs.enthought.com/mayavi/mayavi/tips.html#rendering-using-the-virtual-framebuffer
+ xvfb-run python setup.py build
+
+ rm build/lib.linux-$CARCH-3.7/tvtk/tvtk_classes.zip
+ rm build/lib.linux-$CARCH-3.7/mayavi/preferences/preferences.ini
+ rm build/lib.linux-$CARCH-3.7/tvtk/plugins/scene/preferences.ini
+}
+
+package() {
+ cd "$srcdir"/mayavi-$pkgver
+
+ python setup.py install --skip-build --root="$pkgdir"/ --optimize=1
+
+ # remove useless files
+ rm -f "${pkgdir}"/usr/lib/python3.7/site-packages/tvtk/setup.py*
+ find "${pkgdir}" -name \.buildinfo -type f -print | xargs rm -f -
+
+ # non-executable-script
+ chmod +x "${pkgdir}"/usr/lib/python3.7/site-packages/mayavi/tests/runtests.py
+
+ # install manpage
+ mkdir -p "${pkgdir}"/usr/share/man/man1
+ cp -p docs/mayavi2.man "${pkgdir}"/usr/share/man/man1/mayavi2.1
+
+ # Force Qt
+ install -d "${pkgdir}"/etc/profile.d
+ install -Dm644 "${srcdir}"/mayavi.sh "${pkgdir}"/etc/profile.d/mayavi.sh
+ install -Dm644 "${srcdir}"/mayavi.csh "${pkgdir}"/etc/profile.d/mayavi.csh
+
+ install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ # Cannot find vtk
+ sed -i '/vtk/d' "$pkgdir"/usr/lib/python3.7/site-packages/mayavi-${pkgver}-py3.7.egg-info/requires.txt
+}
Deleted: mayavi.csh
===================================================================
--- mayavi.csh 2018-10-20 14:02:15 UTC (rev 398085)
+++ mayavi.csh 2018-10-20 14:02:35 UTC (rev 398086)
@@ -1 +0,0 @@
-setenv ETS_TOOLKIT "wx"
Copied: mayavi/repos/community-x86_64/mayavi.csh (from rev 398085, mayavi/trunk/mayavi.csh)
===================================================================
--- mayavi.csh (rev 0)
+++ mayavi.csh 2018-10-20 14:02:35 UTC (rev 398086)
@@ -0,0 +1 @@
+setenv ETS_TOOLKIT "qt"
Deleted: mayavi.sh
===================================================================
--- mayavi.sh 2018-10-20 14:02:15 UTC (rev 398085)
+++ mayavi.sh 2018-10-20 14:02:35 UTC (rev 398086)
@@ -1 +0,0 @@
-export ETS_TOOLKIT="wx"
Copied: mayavi/repos/community-x86_64/mayavi.sh (from rev 398085, mayavi/trunk/mayavi.sh)
===================================================================
--- mayavi.sh (rev 0)
+++ mayavi.sh 2018-10-20 14:02:35 UTC (rev 398086)
@@ -0,0 +1 @@
+export ETS_TOOLKIT="qt"
Deleted: setuptools.patch
===================================================================
--- setuptools.patch 2018-10-20 14:02:15 UTC (rev 398085)
+++ setuptools.patch 2018-10-20 14:02:35 UTC (rev 398086)
@@ -1,22 +0,0 @@
-diff -urN mayavi-4.5.0.orig/tvtk/setup.py mayavi-4.5.0/tvtk/setup.py
---- mayavi-4.5.0.orig/tvtk/setup.py 2016-10-06 09:59:45.021343207 +0200
-+++ mayavi-4.5.0/tvtk/setup.py 2016-10-06 10:01:17.458009409 +0200
-@@ -19,12 +19,18 @@
-
- config.add_subpackage('custom')
- config.add_subpackage('pipeline')
-+ config.add_subpackage('pyface')
-+ config.add_subpackage('pyface.*')
-+ config.add_subpackage('pyface.*.*')
-+ config.add_subpackage('view')
-+
- config.add_data_dir('pipeline/images')
- config.add_data_dir('pyface/images')
- config.add_data_dir('tools/images')
-
- config.add_subpackage('plugins')
- config.add_subpackage('plugins.*')
-+ config.add_subpackage('plugins.*.*')
-
- config.add_subpackage('tools')
- config.add_subpackage('util')
Deleted: vtk6.patch
===================================================================
--- vtk6.patch 2018-10-20 14:02:15 UTC (rev 398085)
+++ vtk6.patch 2018-10-20 14:02:35 UTC (rev 398086)
@@ -1,47 +0,0 @@
-diff -urN mayavi-4.4.4/mayavi/scripts/mayavi2.py mayavi-4.4.4-vtk6/mayavi/scripts/mayavi2.py
---- mayavi-4.4.4/mayavi/scripts/mayavi2.py 2016-02-29 07:49:20.000000000 +0100
-+++ mayavi-4.4.4-vtk6/mayavi/scripts/mayavi2.py 2016-07-30 21:23:58.565217168 +0200
-@@ -21,6 +21,8 @@
- import logging
- from os.path import splitext, exists, join, abspath
-
-+sys.path.insert(1, "/opt/vtk6/lib/python2.7/site-packages")
-+
- # Local imports.
- from mayavi.__version__ import __version__
- from mayavi.scripts.util import get_data_dir
-diff -urN mayavi-4.4.4/setup.py mayavi-4.4.4-vtk6/setup.py
---- mayavi-4.4.4/setup.py 2016-02-29 07:49:20.000000000 +0100
-+++ mayavi-4.4.4-vtk6/setup.py 2016-07-30 21:23:33.185353652 +0200
-@@ -77,6 +77,7 @@
- from distutils import log
- from setuptools.command import develop, install_scripts
-
-+sys.path.insert(1, "/opt/vtk6/lib/python2.7/site-packages")
-
- info = {}
- fname = join('mayavi', '__init__.py')
-diff -urN mayavi-4.4.4/tvtk/setup.py mayavi-4.4.4-vtk6/tvtk/setup.py
---- mayavi-4.4.4/tvtk/setup.py 2016-02-29 07:49:20.000000000 +0100
-+++ mayavi-4.4.4-vtk6/tvtk/setup.py 2016-07-30 21:23:33.185353652 +0200
-@@ -6,6 +6,7 @@
-
- import os, sys
-
-+sys.path.insert(1, "/opt/vtk6/lib/python2.7/site-packages")
-
- def configuration(parent_package=None, top_path=None):
- from os.path import join
-diff -urN mayavi-4.4.4/tvtk/tools/tvtk_doc.py mayavi-4.4.4-vtk6/tvtk/tools/tvtk_doc.py
---- mayavi-4.4.4/tvtk/tools/tvtk_doc.py 2016-02-29 07:49:20.000000000 +0100
-+++ mayavi-4.4.4-vtk6/tvtk/tools/tvtk_doc.py 2016-07-30 21:24:31.208374707 +0200
-@@ -16,6 +16,9 @@
- # Copyright (c) 2008-2015, Enthought, Inc.
- # License: BSD Style.
-
-+import sys
-+sys.path.insert(1, "/opt/vtk6/lib/python2.7/site-packages")
-+
- # Standard library imports.
- import vtk
- import types
More information about the arch-commits
mailing list