1 # Contributor: Blaž Tomažič <blaz.tomazic@gmail.com>
2 pkgname=python-orange-svn
5 pkgdesc="Open source data visualization and analysis for novice and experts. Data mining through visual programming or Python scripting."
7 url="http://www.ailab.si/orange"
9 depends=('python2' 'python2-numpy' 'python-numarray' 'python-numeric' 'python2-matplotlib')
10 makedepends=('subversion')
11 optdepends=('pyqwt: GUI support' 'python-networkx')
12 conflicts=('python-orange')
13 provides=('python-orange')
17 _svntrunk="http://orange.biolab.si/svn/orange/trunk/orange"
19 _svntrunk2="http://orange.biolab.si/svn/orange/trunk/source"
25 msg "Connecting to Orange SVN server...."
27 if [ -d $_svnmod/.svn ]; then
28 (cd $_svnmod && svn up -r $pkgver)
30 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31 svn co $_svntrunk2 --config-dir ./ -r $pkgver $_svnmod/$_svnmod2
34 msg "SVN checkout done or server timeout"
35 msg "Starting make..."
37 rm -rf ${_svnmod}-build
38 cp -r $_svnmod $_svnmod-build
41 python2 setup.py build || return 1
45 cd "${srcdir}/$_svnmod-build"
46 python2 setup.py install --root="${pkgdir}" || return 1
48 find ${pkgdir} -name '*.py' | while read FILE; do
49 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
50 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
51 -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
56 # vim:set ts=2 sw=2 et: