[arch-commits] Commit in mayavi/repos/community-x86_64 (8 files)
Antonio Rojas
arojas at gemini.archlinux.org
Tue Jul 26 20:23:03 UTC 2022
Date: Tuesday, July 26, 2022 @ 20:23:03
Author: arojas
Revision: 1258819
archrelease: copy trunk to community-x86_64
Added:
mayavi/repos/community-x86_64/PKGBUILD
(from rev 1258818, mayavi/trunk/PKGBUILD)
mayavi/repos/community-x86_64/disable-openvdb-and-openvr.patch
(from rev 1258818, mayavi/trunk/disable-openvdb-and-openvr.patch)
mayavi/repos/community-x86_64/mayavi.csh
(from rev 1258818, mayavi/trunk/mayavi.csh)
mayavi/repos/community-x86_64/mayavi.sh
(from rev 1258818, mayavi/trunk/mayavi.sh)
Deleted:
mayavi/repos/community-x86_64/PKGBUILD
mayavi/repos/community-x86_64/disable-openvdb-and-openvr.patch
mayavi/repos/community-x86_64/mayavi.csh
mayavi/repos/community-x86_64/mayavi.sh
----------------------------------+
PKGBUILD | 209 ++++++++++++++++++-------------------
disable-openvdb-and-openvr.patch | 57 +++++-----
mayavi.csh | 2
mayavi.sh | 2
4 files changed, 137 insertions(+), 133 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-07-26 20:22:51 UTC (rev 1258818)
+++ PKGBUILD 2022-07-26 20:23:03 UTC (rev 1258819)
@@ -1,104 +0,0 @@
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-# Contributor: Jingbei Li <i at jingbei.li>
-
-pkgname=mayavi
-pkgver=4.7.4
-pkgrel=2
-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' 'pdal' 'unixodbc' 'pugixml' 'openmpi' 'ffmpeg' 'python-numpy'
- 'fmt' 'ospray' 'openvr' 'liblas' 'cgns' 'adios2' 'libharu' 'gl2ps')
-makedepends=('python-setuptools' 'python-sphinx' 'python-twisted' 'xorg-server-xvfb' 'qt5-svg' 'glew' 'proj')
-replaces=('python-mayavi')
-provides=('python-mayavi')
-options=(!emptydirs)
-
-source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/mayavi/archive/${pkgver}.tar.gz"
- "disable-openvdb-and-openvr.patch"
- "mayavi.sh" "mayavi.csh")
-sha256sums=('44f144a5646e81b7eb0668a8b1ac383a847e634f6f4c306b4629e32587080467'
- 'fc3eb33dde9541986a37aa91b7d80aca5754a39a0370688c1f0a5d06d3364853'
- 'abb34e78105abf15197bdd05c02ba3b080755d46aa81e4cfaeaba4994d05effe'
- '034b36bf9d279d926c39c858bf18992e34de880725d778f8435b293259f4775d')
-
-prepare() {
- cd "$srcdir"/mayavi-$pkgver
-
- # skip vtk 9.1.0 classes which cause segfaults
- patch -Np1 -i ../disable-openvdb-and-openvr.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 "import sys" >> docs/source/mayavi/conf.py
- echo "sys.path.append('$srcdir/mayavi-$pkgver/build/lib.linux-$CARCH-3.10/')" >> docs/source/mayavi/conf.py
-}
-
-build() {
- cd "$srcdir"/mayavi-$pkgver
-
- rm -rf build
- mkdir build
- mkdir -p build/lib.linux-$CARCH-3.10/{tvtk/plugins/scene,mayavi/preferences,mayavi/core}
- ln -s "$srcdir"/enthought-mayavi-${_githubtag}/tvtk/tvtk_classes.zip \
- build/lib.linux-$CARCH-3.10/tvtk/tvtk_classes.zip
- ln -s "$srcdir"/enthought-mayavi-${_githubtag}/mayavi/preferences/preferences.ini \
- build/lib.linux-$CARCH-3.10/mayavi/preferences/preferences.ini
- ln -s "$srcdir"/enthought-mayavi-${_githubtag}/tvtk/plugins/scene/preferences.ini \
- build/lib.linux-$CARCH-3.10/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.10/tvtk/tvtk_classes.zip
- rm build/lib.linux-$CARCH-3.10/mayavi/preferences/preferences.ini
- rm build/lib.linux-$CARCH-3.10/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.10/site-packages/tvtk/setup.py*
- find "${pkgdir}" -name \.buildinfo -type f -print | xargs rm -f -
-
- # non-executable-script
- chmod +x "${pkgdir}"/usr/lib/python3.10/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.10/site-packages/mayavi-${pkgver}-py3.10.egg-info/requires.txt
-}
Copied: mayavi/repos/community-x86_64/PKGBUILD (from rev 1258818, mayavi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-07-26 20:23:03 UTC (rev 1258819)
@@ -0,0 +1,105 @@
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Jingbei Li <i at jingbei.li>
+
+pkgname=mayavi
+pkgver=4.8.0
+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' 'pdal' 'unixodbc' 'pugixml' 'openmpi' 'ffmpeg' 'python-numpy'
+ 'fmt' 'ospray' 'openvr' 'liblas' 'cgns' 'adios2' 'libharu' 'gl2ps' 'postgresql-libs' 'netcdf' 'mariadb-libs')
+makedepends=('python-setuptools' 'python-sphinx' 'python-twisted' 'xorg-server-xvfb' 'qt5-svg' 'glew' 'proj')
+replaces=('python-mayavi')
+provides=('python-mayavi')
+options=(!emptydirs)
+
+source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/mayavi/archive/${pkgver}.tar.gz"
+ "disable-openvdb-and-openvr.patch"
+ "mayavi.sh" "mayavi.csh")
+sha256sums=('71e76b005613bbfdca0e05caab634aea2b770e2559f85fed28d8704bbcaab8fd'
+ '4f9eb2bfd3d610c70949ffc6a5e5eb2cf8fa217a6674c91271f7defc22a1add2'
+ 'abb34e78105abf15197bdd05c02ba3b080755d46aa81e4cfaeaba4994d05effe'
+ '034b36bf9d279d926c39c858bf18992e34de880725d778f8435b293259f4775d')
+
+prepare() {
+ cd "$srcdir"/mayavi-$pkgver
+
+ # skip vtk 9.1.0 classes which cause segfaults
+ patch -Np1 -i ../disable-openvdb-and-openvr.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 "import sys" >> docs/source/mayavi/conf.py
+ echo "sys.path.append('$srcdir/mayavi-$pkgver/build/lib.linux-$CARCH-3.10/')" >> docs/source/mayavi/conf.py
+}
+
+build() {
+ cd "$srcdir"/mayavi-$pkgver
+
+ rm -rf build
+ mkdir build
+ mkdir -p build/lib.linux-$CARCH-3.10/{tvtk/plugins/scene,mayavi/preferences,mayavi/core}
+ ln -s "$srcdir"/enthought-mayavi-${_githubtag}/tvtk/tvtk_classes.zip \
+ build/lib.linux-$CARCH-3.10/tvtk/tvtk_classes.zip
+ ln -s "$srcdir"/enthought-mayavi-${_githubtag}/mayavi/preferences/preferences.ini \
+ build/lib.linux-$CARCH-3.10/mayavi/preferences/preferences.ini
+ ln -s "$srcdir"/enthought-mayavi-${_githubtag}/tvtk/plugins/scene/preferences.ini \
+ build/lib.linux-$CARCH-3.10/tvtk/plugins/scene/preferences.ini
+
+ export ETS_TOOLKIT="qt"
+ export LANG=C
+ # 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.10/tvtk/tvtk_classes.zip
+ rm build/lib.linux-$CARCH-3.10/mayavi/preferences/preferences.ini
+ rm build/lib.linux-$CARCH-3.10/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.10/site-packages/tvtk/setup.py*
+ find "${pkgdir}" -name \.buildinfo -type f -print | xargs rm -f -
+
+ # non-executable-script
+ chmod +x "${pkgdir}"/usr/lib/python3.10/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.10/site-packages/mayavi-${pkgver}-py3.10.egg-info/requires.txt
+}
Deleted: disable-openvdb-and-openvr.patch
===================================================================
--- disable-openvdb-and-openvr.patch 2022-07-26 20:22:51 UTC (rev 1258818)
+++ disable-openvdb-and-openvr.patch 2022-07-26 20:23:03 UTC (rev 1258819)
@@ -1,27 +0,0 @@
-diff -upr mayavi-4.7.4.orig/tvtk/vtk_module.py mayavi-4.7.4/tvtk/vtk_module.py
---- mayavi-4.7.4.orig/tvtk/vtk_module.py 2021-11-13 15:54:28.000000000 +0200
-+++ mayavi-4.7.4/tvtk/vtk_module.py 2021-12-10 06:58:30.885406494 +0200
-@@ -33,8 +33,22 @@ if vtk_version in ['9.0.3', '9.0.2']:
- del vtkDataEncoder, vtkWebApplication
-
- if vtk_version == '9.1.0':
-- SKIP = ['vtkOpenGLAvatar']
-+ SKIP = ['vtkOpenGLAvatar',
-+ 'vtkOpenVDBWriter',
-+ 'vtkOpenVRCamera',
-+ 'vtkOpenVRControlsHelper',
-+ 'vtkOpenVRDefaultOverlay',
-+ 'vtkOpenVRInteractorStyle',
-+ 'vtkOpenVRModel',
-+ 'vtkOpenVROverlay',
-+ 'vtkOpenVRRenderWindow',
-+ 'vtkOpenVRRenderWindowInteractor',
-+ 'vtkOpenVRRenderer']
- try:
- del vtkOpenGLAvatar
- except NameError:
- pass
-+ del vtkOpenVDBWriter, vtkOpenVRCamera, vtkOpenVRControlsHelper, \
-+ vtkOpenVRDefaultOverlay, vtkOpenVRInteractorStyle, vtkOpenVRModel, \
-+ vtkOpenVROverlay, vtkOpenVRRenderWindow, \
-+ vtkOpenVRRenderWindowInteractor, vtkOpenVRRenderer
Copied: mayavi/repos/community-x86_64/disable-openvdb-and-openvr.patch (from rev 1258818, mayavi/trunk/disable-openvdb-and-openvr.patch)
===================================================================
--- disable-openvdb-and-openvr.patch (rev 0)
+++ disable-openvdb-and-openvr.patch 2022-07-26 20:23:03 UTC (rev 1258819)
@@ -0,0 +1,30 @@
+diff -upr mayavi-4.7.4.orig/tvtk/vtk_module.py mayavi-4.7.4/tvtk/vtk_module.py
+--- mayavi-4.7.4.orig/tvtk/vtk_module.py 2021-11-13 15:54:28.000000000 +0200
++++ mayavi-4.7.4/tvtk/vtk_module.py 2021-12-10 06:58:30.885406494 +0200
+@@ -33,11 +33,25 @@ if vtk_version in ['9.0.3', '9.0.2']:
+ del vtkDataEncoder, vtkWebApplication
+
+ if vtk_version == '9.1.0':
+- SKIP = ['vtkOpenGLAvatar']
++ SKIP = ['vtkOpenGLAvatar',
++ 'vtkOpenVDBWriter',
++ 'vtkOpenVRCamera',
++ 'vtkOpenVRControlsHelper',
++ 'vtkOpenVRDefaultOverlay',
++ 'vtkOpenVRInteractorStyle',
++ 'vtkOpenVRModel',
++ 'vtkOpenVROverlay',
++ 'vtkOpenVRRenderWindow',
++ 'vtkOpenVRRenderWindowInteractor',
++ 'vtkOpenVRRenderer']
+ try:
+ del vtkOpenGLAvatar
+ except NameError:
+ pass
++ del vtkOpenVDBWriter, vtkOpenVRCamera, vtkOpenVRControlsHelper, \
++ vtkOpenVRDefaultOverlay, vtkOpenVRInteractorStyle, vtkOpenVRModel, \
++ vtkOpenVROverlay, vtkOpenVRRenderWindow, \
++ vtkOpenVRRenderWindowInteractor, vtkOpenVRRenderer
+
+ if vtk_version == '9.2.0':
+ SKIP = ['vtkPlotBar']
Deleted: mayavi.csh
===================================================================
--- mayavi.csh 2022-07-26 20:22:51 UTC (rev 1258818)
+++ mayavi.csh 2022-07-26 20:23:03 UTC (rev 1258819)
@@ -1 +0,0 @@
-setenv ETS_TOOLKIT "qt"
Copied: mayavi/repos/community-x86_64/mayavi.csh (from rev 1258818, mayavi/trunk/mayavi.csh)
===================================================================
--- mayavi.csh (rev 0)
+++ mayavi.csh 2022-07-26 20:23:03 UTC (rev 1258819)
@@ -0,0 +1 @@
+setenv ETS_TOOLKIT "qt"
Deleted: mayavi.sh
===================================================================
--- mayavi.sh 2022-07-26 20:22:51 UTC (rev 1258818)
+++ mayavi.sh 2022-07-26 20:23:03 UTC (rev 1258819)
@@ -1 +0,0 @@
-export ETS_TOOLKIT="qt"
Copied: mayavi/repos/community-x86_64/mayavi.sh (from rev 1258818, mayavi/trunk/mayavi.sh)
===================================================================
--- mayavi.sh (rev 0)
+++ mayavi.sh 2022-07-26 20:23:03 UTC (rev 1258819)
@@ -0,0 +1 @@
+export ETS_TOOLKIT="qt"
More information about the arch-commits
mailing list