summaryrefslogtreecommitdiff
path: root/community/mayavi
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-29 00:04:41 +0000
committerroot <root@rshg054.dnsready.net>2012-08-29 00:04:41 +0000
commit498a4346616c33beac56d48a246cf27fe3812341 (patch)
tree333cfc0154a280d9dcf65c08900913200c33d988 /community/mayavi
parent559da5e6e5aff9ccc57e29b6a91c35a528424b6c (diff)
Wed Aug 29 00:04:40 UTC 2012
Diffstat (limited to 'community/mayavi')
-rw-r--r--community/mayavi/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/mayavi/PKGBUILD b/community/mayavi/PKGBUILD
new file mode 100644
index 000000000..4e9fcafc9
--- /dev/null
+++ b/community/mayavi/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 75627 2012-08-27 16:59:37Z aginiewicz $
+# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
+
+pkgname=mayavi
+pkgver=4.2.0
+_githubtag=a1e562a
+pkgrel=2
+pkgdesc="A 3-dimensional visualizer of scientific data"
+arch=('i686' 'x86_64')
+url="http://code.enthought.com/projects/mayavi/"
+license=('BSD')
+depends=('ipython2' 'vtk' 'python2-envisage' 'wxpython')
+makedepends=('python2-distribute' 'python2-sphinx')
+replaces=('python2-mayavi')
+provides=('python2-mayavi')
+options=(!emptydirs)
+
+source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/mayavi/tarball/${pkgver}")
+md5sums=('b46fb048176002738de64eed8d2b447a')
+
+build() {
+ cd "$srcdir"/enthought-mayavi-${_githubtag}
+
+ python2 setup.py build
+
+ cd docs
+
+ make SPHINXBUILD=sphinx-build2 html
+}
+
+package() {
+ cd "$srcdir"/enthought-mayavi-${_githubtag}
+
+ python2 setup.py install --root="$pkgdir"/ --optimize=1
+
+ cp -r docs/build/* "${pkgdir}"/usr/lib/python2.7/site-packages
+
+ sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ $(find "${pkgdir}" -name '*.py')
+ sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ "$pkgdir/usr/lib/python2.7/site-packages/mayavi/tests/csv_files/csv_2_py"
+
+ install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+