Date: Monday, August 19, 2019 @ 18:18:20 Author: aginiewicz Revision: 500202
archrelease: copy trunk to community-x86_64 Added: mayavi/repos/community-x86_64/PKGBUILD (from rev 500201, mayavi/trunk/PKGBUILD) mayavi/repos/community-x86_64/mayavi.csh (from rev 500201, mayavi/trunk/mayavi.csh) mayavi/repos/community-x86_64/mayavi.sh (from rev 500201, 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 ------------+ PKGBUILD | 194 +++++++++++++++++++++++++++++------------------------------ mayavi.csh | 2 mayavi.sh | 2 3 files changed, 100 insertions(+), 98 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-08-19 18:18:14 UTC (rev 500201) +++ PKGBUILD 2019-08-19 18:18:20 UTC (rev 500202) @@ -1,96 +0,0 @@ -# Maintainer: Andrzej Giniewicz <ggi...@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 -} Copied: mayavi/repos/community-x86_64/PKGBUILD (from rev 500201, mayavi/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-08-19 18:18:20 UTC (rev 500202) @@ -0,0 +1,98 @@ +# Maintainer: Andrzej Giniewicz <ggi...@gmail.com> +# Contributor: Jingbei Li <i...@jingbei.li> + +pkgname=mayavi +pkgver=4.7.1 +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') +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" + "mayavi.sh" "mayavi.csh") +sha256sums=('d679daf930751f0c531938f4664a51ac4bed994a807488ca5ea5a8c15fabf184' + 'abb34e78105abf15197bdd05c02ba3b080755d46aa81e4cfaeaba4994d05effe' + '034b36bf9d279d926c39c858bf18992e34de880725d778f8435b293259f4775d') + +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 "import sys" >> docs/source/mayavi/conf.py + 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 2019-08-19 18:18:14 UTC (rev 500201) +++ mayavi.csh 2019-08-19 18:18:20 UTC (rev 500202) @@ -1 +0,0 @@ -setenv ETS_TOOLKIT "qt" Copied: mayavi/repos/community-x86_64/mayavi.csh (from rev 500201, mayavi/trunk/mayavi.csh) =================================================================== --- mayavi.csh (rev 0) +++ mayavi.csh 2019-08-19 18:18:20 UTC (rev 500202) @@ -0,0 +1 @@ +setenv ETS_TOOLKIT "qt" Deleted: mayavi.sh =================================================================== --- mayavi.sh 2019-08-19 18:18:14 UTC (rev 500201) +++ mayavi.sh 2019-08-19 18:18:20 UTC (rev 500202) @@ -1 +0,0 @@ -export ETS_TOOLKIT="qt" Copied: mayavi/repos/community-x86_64/mayavi.sh (from rev 500201, mayavi/trunk/mayavi.sh) =================================================================== --- mayavi.sh (rev 0) +++ mayavi.sh 2019-08-19 18:18:20 UTC (rev 500202) @@ -0,0 +1 @@ +export ETS_TOOLKIT="qt"