pymol-plugins-promol-3.0.2-r1.ebuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit python-r1
  6. DESCRIPTION="Fast and accurate regognition of active sites"
  7. HOMEPAGE="http://www.rit.edu/cos/ezviz/ProMOL_dl.html"
  8. SRC_URI="http://www.rit.edu/cos/ezviz/ProMOL.zip -> ${P}.zip"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86 ~amd64-linux"
  11. LICENSE="all-rights-reserved"
  12. IUSE=""
  13. RESTRICT="mirror bindist"
  14. REQUIRED_USE="${PYTHON_REQUIRED_USE}"
  15. RDEPEND="
  16. ${PYTHON_DEPS}
  17. virtual/python-pmw[${PYTHON_USEDEP}]
  18. sci-chemistry/pymol[${PYTHON_USEDEP}]"
  19. DEPEND=""
  20. S="${WORKDIR}/ProMOL Folder"
  21. src_prepare() {
  22. python_copy_sources
  23. preparation() {
  24. cd "${BUILD_DIR}" || die
  25. sed \
  26. -e "s:./modules/pmg_tk/startup:${EPREFIX}/$(python_get_sitedir)/pmg_tk/startup/ProMol:g" \
  27. -i ProMOL_302.py || die
  28. }
  29. python_foreach_impl preparation
  30. }
  31. src_install(){
  32. dodoc *doc
  33. dohtml -r Thanks.html EDMHelp.htm Help
  34. installation() {
  35. cd "${BUILD_DIR}" || die
  36. python_moduleinto pmg_tk/startup/ProMol
  37. python_domodule PDB_List AminoPics Motifs *GIF pdb_entry_type.txt Master.txt Scripts
  38. python_moduleinto pmg_tk/startup
  39. python_domodule *.py
  40. dosym ../../../../../../share/doc/${PF}/html/Help \
  41. $(python_get_sitedir)/pmg_tk/startup/ProMol/Help
  42. dosym ../../../../../../share/doc/${PF}/html/Thanks.html \
  43. $(python_get_sitedir)/pmg_tk/startup/ProMol/Thanks.html
  44. dosym ../../../../../../share/doc/${PF}/html/EDMHelp.htm \
  45. $(python_get_sitedir)/pmg_tk/startup/ProMol/EDMHelp.htm
  46. }
  47. python_foreach_impl installation
  48. }