pymol-plugins-msms-100415-r1.ebuild 991 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit eutils python-r1
  6. DESCRIPTION="GUI for MSMS and displaying its results in PyMOL"
  7. HOMEPAGE="http://www.biotec.tu-dresden.de/~hongboz/msms_pymol/msms_pymol.html"
  8. SRC_URI="http://www.biotec.tu-dresden.de/~hongboz/msms_pymol/pymol_script/msms_pymol.py -> ${P}.py"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  11. LICENSE="BSD pymol"
  12. IUSE=""
  13. RDEPEND="
  14. sci-chemistry/msms-bin
  15. sci-chemistry/pymol[${PYTHON_USEDEP}]"
  16. DEPEND="${RDEPEND}"
  17. src_unpack() {
  18. mkdir "${S}" || die
  19. cp "${DISTDIR}"/${A} "${S}/" || die
  20. }
  21. src_prepare() {
  22. epatch "${FILESDIR}"/${PV}-msms.patch
  23. sed \
  24. -e "s:GENTOOMSMS:${EPREFIX}/opt/bin/msms:g" \
  25. -e "s:GENTOOXYZRN:${EPREFIX}/usr/bin/pdb_to_xyzrn:g" \
  26. -i ${A} || die
  27. }
  28. src_install() {
  29. python_moduleinto pmg_tk/startup
  30. python_foreach_impl python_domodule ${P}.py
  31. python_foreach_impl python_optimize
  32. }