1 # Contributor: Blaž Tomažič <blaz.tomazic@gmail.com>
3 pkgver=20110514 #$(date +"%Y%m%d")
4 pkgver_download=2011-05-14 #$(date +"%Y-%m-%d")
6 pkgdesc="Open source data visualization and analysis for novice and experts. Data mining through visual programming or Python scripting."
8 url="http://www.ailab.si/orange"
10 depends=('python2' 'python2-numpy' 'python-numarray' 'python-numeric' 'python2-matplotlib')
11 optdepends=('pyqwt: GUI support' 'python-networkx')
12 source=("http://www.ailab.si/orange/download/orange-source-snapshot-$pkgver_download.zip")
13 md5sums=('dc08e8b83e7e2b6cfa2614338cbd6627')
15 _extract_dir="Orange-2.0.0b"
18 cd "${srcdir}/${_extract_dir}"
19 python2 setup.py build || return 1
23 cd "${srcdir}/${_extract_dir}"
24 python2 setup.py install --root="${pkgdir}" || return 1
26 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
27 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
28 -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
29 $(find ${pkgdir} -name '*.py')
32 # vim:set ts=2 sw=2 et: