summaryrefslogtreecommitdiff
path: root/community/mayavi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mayavi/PKGBUILD')
-rw-r--r--community/mayavi/PKGBUILD25
1 files changed, 8 insertions, 17 deletions
diff --git a/community/mayavi/PKGBUILD b/community/mayavi/PKGBUILD
index 888251cd7..a4498094c 100644
--- a/community/mayavi/PKGBUILD
+++ b/community/mayavi/PKGBUILD
@@ -1,13 +1,12 @@
-# $Id: PKGBUILD 76178 2012-09-12 16:35:27Z aginiewicz $
+# $Id: PKGBUILD 88238 2013-04-14 20:02:10Z aginiewicz $
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
pkgname=mayavi
-pkgver=4.2.0
-_githubtag=a1e562a
-pkgrel=4
+pkgver=4.3.0
+pkgrel=1
pkgdesc="A 3-dimensional visualizer of scientific data"
arch=('i686' 'x86_64')
-url="http://code.enthought.com/projects/mayavi/"
+url="https://github.com/enthought/mayavi"
license=('BSD')
depends=('ipython2' 'vtk' 'python2-envisage' 'wxpython')
makedepends=('python2-distribute' 'python2-sphinx' 'xorg-server-xvfb' 'twisted')
@@ -15,16 +14,11 @@ replaces=('python2-mayavi')
provides=('python2-mayavi')
options=(!emptydirs)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/mayavi/tarball/${pkgver}"
- vtk-5.10.patch)
-md5sums=('b46fb048176002738de64eed8d2b447a'
- '01b8375392b5d3f587e81ba388a8089f')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/mayavi/archive/${pkgver}.tar.gz")
+md5sums=('7708d85a77c427c8dfbeb914630d31be')
build() {
- cd "$srcdir"/enthought-mayavi-${_githubtag}
-
- # Add compatibility for vtk 5.10 (FS#31498)
- patch -p1 < ../vtk-5.10.patch
+ cd "$srcdir"/mayavi-$pkgver
# Use python2-sphinx provided sphinx-build2
sed -i -e 's/sphinx-build/sphinx-build2/' docs/Makefile*
@@ -42,8 +36,6 @@ build() {
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
- ln -s "$srcdir"/enthought-mayavi-${_githubtag}/mayavi/core/lut \
- build/lib.linux-$CARCH-2.7/mayavi/core/lut
# 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
@@ -58,11 +50,10 @@ build() {
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
- rm build/lib.linux-$CARCH-2.7/mayavi/core/lut
}
package() {
- cd "$srcdir"/enthought-mayavi-${_githubtag}
+ cd "$srcdir"/mayavi-$pkgver
python2 setup.py install --root="$pkgdir"/ --optimize=1