prody-1.6.ebuild 989 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 distutils-r1
  6. DESCRIPTION="Protein Dynamics Analysis"
  7. HOMEPAGE="http://prody.csb.pitt.edu/ https://github.com/prody/ProDy"
  8. SRC_URI="https://github.com/prody/ProDy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  9. SLOT="0"
  10. LICENSE="MIT"
  11. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  12. IUSE="test"
  13. RDEPEND="
  14. dev-python/ipython[${PYTHON_USEDEP}]
  15. dev-python/matplotlib[${PYTHON_USEDEP}]
  16. >=dev-python/numpy-1.7[${PYTHON_USEDEP}]
  17. dev-python/pyparsing[${PYTHON_USEDEP}]
  18. sci-biology/biopython[${PYTHON_USEDEP}]
  19. sci-libs/scipy[${PYTHON_USEDEP}]
  20. "
  21. DEPEND="${RDEPEND}
  22. test? ( dev-python/nose[${PYTHON_USEDEP}] )"
  23. S="${WORKDIR}"/ProDy-${PV}
  24. DISTUTILS_IN_SOURCE_BUILD=true
  25. python_prepare_all() {
  26. emake remove
  27. distutils-r1_python_prepare_all
  28. }
  29. python_test() {
  30. cd "${BUILD_DIR}" || die
  31. PATH="${S}"/scripts:${PATH} \
  32. nosetests --verbose || die
  33. }