This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 28th, 2012  |  syntax: Bash  |  size: 1.19 KB  |  views: 66  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: moostik <mooostik_at_gmail.com>
  2. # Contributor: Blaž Tomažič <blaz.tomazic@gmail.com>
  3.  
  4. pkgname=python-orange
  5. pkgver=2.5a2
  6. pkgrel=1
  7. pkgdesc="Open source data visualization and analysis for novice and experts. Data mining through visual programming or Python scripting."
  8. arch=('i686' 'x86_64')
  9. url="http://www.ailab.si/orange"
  10. license=('GPL')
  11. depends=('python2' 'python2-numpy' 'python-numarray' 'python-numeric' 'python2-matplotlib')
  12. optdepends=('pyqwt: GUI support' 'python-networkx: Network module')
  13. conflicts=('python-orange-hg' 'python-orange-svn')
  14. source=("http://pypi.python.org/packages/source/O/Orange/Orange-${pkgver}.tar.gz")
  15. md5sums=('055c68245c7bb3eb3c096f23917d71b8')
  16.  
  17. build() {
  18.   cd "${srcdir}/Orange-$pkgver"
  19.   python2 setup.py build || return 1
  20. }
  21.  
  22. package() {
  23.   cd "${srcdir}/Orange-$pkgver"
  24.   python2 setup.py install --root="${pkgdir}" || return 1
  25.  
  26.   find ${pkgdir} -name '*.py' | while read FILE; do
  27.     sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
  28.            -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
  29.            -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
  30.         "$FILE"
  31.   done
  32. }
  33.  
  34. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data