pymol-plugins-dynamics-1.2.0.ebuild 937 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. MY_PN="Dynamics"
  7. MY_P="${MY_PN}-${PV}"
  8. DESCRIPTION="Molecular dynamics in Pymol"
  9. HOMEPAGE="https://github.com/tomaszmakarewicz/Dynamics"
  10. SRC_URI="https://github.com/tomaszmakarewicz/Dynamics/archive/v1.2.0.tar.gz -> ${P}.tar.gz"
  11. SLOT="0"
  12. LICENSE="GPL-3"
  13. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  14. IUSE=""
  15. REQUIRED_USE="${PYTHON_REQUIRED_USE}"
  16. DEPEND="${PYTHON_DEPS}"
  17. RDEPEND="${DEPEND}"
  18. S="${WORKDIR}"/${MY_P}
  19. DOCS=( manual.odt )
  20. src_prepare() {
  21. sed \
  22. -e "/sys.path.insert/d" \
  23. -e "s:import dynamics_pymol_plugin:from pmg_tk.startup import dynamics_pymol_plugin:g" \
  24. -i pydynamics* || die
  25. }
  26. src_install() {
  27. python_moduleinto pmg_tk/startup
  28. python_foreach_impl python_domodule dynamics_pymol_plugin.py
  29. python_foreach_impl python_doscript pydynamics*
  30. }