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

Patch for pymol-svn PKGBUILD

By: a guest on Oct 28th, 2010  |  syntax: Diff  |  size: 1.84 KB  |  views: 69  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- PKGBUILD    2010-10-22 13:36:24.000000000 -0300
  2. +++ awef        2010-10-28 21:56:36.280000003 -0300
  3. @@ -1,6 +1,6 @@
  4.  #pymol PKGBUILD
  5.  #Maintainter: Duca
  6. -#Contributors: yescalona, Carlos Ríos V. (aka crosvera)
  7. +#Contributors: yescalona, Carlos Ríos V. (aka crosvera)
  8.  
  9.  pkgname=pymol-svn
  10.  pkgver=3924
  11. @@ -9,9 +9,9 @@
  12.  arch=('i686' 'x86_64')
  13.  url="http://pymol.sourceforge.net/"
  14.  license=('GPL')
  15. -python_ver=2.6
  16. -depends=('python26' 'freeglut' 'libpng' 'python-numpy' 'python-pmw' 'freetype2')
  17. -makedepends=("subversion" "python")
  18. +python_ver=2.7
  19. +depends=('python2' 'freeglut' 'libpng' 'python-numpy' 'python-pmw' 'freetype2')
  20. +makedepends=("subversion" "python2")
  21.  source=()
  22.  md5sums=()
  23.  
  24. @@ -33,8 +33,8 @@
  25.  #fix for solve problem with new libpng 1.4
  26.  sed -e "s/ret = png_check_sig(buf, 8);/ret = !png_sig_cmp (buf,0,8);/" -i ${srcdir}/pymol/layer0/MyPNG.c || return 1
  27.  
  28. -python setup.py build || return 1
  29. -python setup.py install --root=$pkgdir --prefix=/usr || return 1
  30. +python2.7 setup.py build || return 1
  31. +python2.7 setup.py install --root=$pkgdir --prefix=/usr || return 1
  32.  
  33.  #fix of setup2.py file
  34.  sed -e "s| site_packages =.*| site_packages = \"${pkgdir}/usr/lib/python${python_ver}/site-packages\"|g" -i setup2.py || return 1
  35. @@ -51,7 +51,7 @@
  36.  
  37.  
  38.  
  39. -python setup2.py install --root=$pkgdir --prefix=/usr || return 1
  40. +python2.7 setup2.py install --root=$pkgdir --prefix=/usr || return 1
  41.  
  42.  install -D -m755 ${startdir}/pymol.sh ${pkgdir}/usr/bin/pymol
  43.  install -D -m644 ${startdir}/pymol.desktop ${pkgdir}/usr/share/applications/pymol.desktop
  44. @@ -59,6 +59,6 @@
  45.  
  46.  #fix of api.py ?
  47.  sed -e "s/as = show_as/#as = show_as/g" -i ${pkgdir}/usr/lib/python${python_ver}/site-packages/pymol/api.py || return 1
  48. -sed -e 's/2.5/2.6/g' -i ${pkgdir}/usr/bin/pymol || return 1
  49. +sed -e 's/2.5/2.7/g' -i ${pkgdir}/usr/bin/pymol || return 1
  50.  
  51.  }
clone this paste RAW Paste Data