Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 13th, 2013  |  syntax: None  |  size: 3.24 KB  |  views: 47  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=('spyder')
  2. true && pkgname=('spyder' 'spyder2')
  3. pkgver=3296.f449690aa597
  4. pkgrel=1
  5. pkgdesc="Scientific PYthon Development EnviRonment providing MATLAB-like features (formerly pydee). Supplys both python2 and python3 versions"
  6. arch=('any')
  7. url="http://spyderlib.googlecode.com"
  8. license=('MIT')
  9. makedepends=('mercurial' 'python-distribute' 'python-sphinx' 'python2-distribute' 'python2-sphinx')
  10. install=$pkgname.install
  11. source=($pkgname::hg+https://code.google.com/p/spyderlib)
  12. md5sums=('SKIP')
  13.  
  14.  
  15. pkgver() {
  16.   cd $pkgname
  17.   echo $(hg identify -n).$(hg identify -i)
  18. }
  19.  
  20. prepare() {
  21.   cd $pkgname
  22.   sed -i "s|PYLINT_PATH = programs.find_program('pylint')|PYLINT_PATH = programs.find_program('pylint2')|" \
  23.          spyderplugins/widgets/pylintgui.py
  24. }
  25.  
  26. build() {
  27.  
  28.   cd $pkgname
  29.   echo "Building Python2"
  30.   python2 setup.py build
  31.  
  32.   echo "Building Python3"
  33.   rm -r build/sphinx/
  34.   python setup.py build
  35. }
  36.  
  37. package_spyder2() {
  38.  
  39.   depends=('desktop-file-utils' 'gtk-update-icon-cache' 'python2' 'python2-pyflakes' 'python2-pyqt4' 'python2-pyzmq')
  40.   provides=( "spyder2=${pkgver}" )
  41.   optdepends=('ipython2: enhanced Python interpreter'
  42.             'python2-matplotlib: 2D/3D plotting'
  43.             'python2-numpy: N-dimensional arrays'
  44.             'python2-pylint: powerful code analysis'
  45.             'python2-rope: editor code completion, calltips and go-to-definition'
  46.             'python2-scipy: signal/image processing'
  47.             "python2-sphinx: object inspector's rich text mode")
  48.   cd spyder ##TERIBLE HACK
  49.   python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  50.   mv "$pkgdir/usr/bin/spyder" "$pkgdir/usr/bin/spyder2"
  51.   rm "$pkgdir/usr/bin/spyder_win_post_install.py"
  52.   install -D -m644 spyderlib/__init__.py "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  53.   install -D -m644 scripts/spyder.desktop "$pkgdir/usr/share/applications/spyder2.desktop"
  54.   rm "$pkgdir/usr/share/applications/spyder.desktop"
  55.   install -D -m644 img_src/spyder.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/spyder2.svg"
  56.   mv "$pkgdir/usr/share/pixmaps/spyder.png" "$pkgdir/usr/share/pixmaps/spyder2.png"
  57. }
  58.  
  59. package_spyder() {
  60.  
  61.   depends=('desktop-file-utils' 'gtk-update-icon-cache' 'python' 'python-pyflakes' 'python-pyqt4' 'python-pyzmq')
  62.   provides=("spyder=${pkgver}")
  63.   optdepends=('ipython: enhanced Python interpreter'
  64.               'python-psutil: memory/CPU usage in status bar'
  65.               'python-pyflakes: real-time code analysis'
  66.               'python-matplotlib: 2D/3D plotting'
  67.               'python-numpy: N-dimensional arrays'
  68.               'python-pylint: powerful code analysis'
  69.               'python-rope: editor code completion, calltips and go-to-definition'
  70.               'python-scipy: signal/image processing'
  71.               "python-sphinx: object inspector's rich text mode")
  72.   conflicts=('spyder')
  73.   cd $pkgname
  74.   python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  75.   rm "$pkgdir/usr/bin/spyder_win_post_install.py"
  76.   install -D -m644 spyderlib/__init__.py "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  77.   install -D -m644 scripts/spyder.desktop "$pkgdir/usr/share/applications/spyder.desktop"
  78.   install -D -m644 img_src/spyder.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/spyder.svg"
  79. }
clone this paste RAW Paste Data