mayavi-4.3.0.ebuild 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 virtualx
  6. DESCRIPTION="Enthought Tool Suite: Scientific data 3-dimensional visualizer"
  7. HOMEPAGE="
  8. http://code.enthought.com/projects/mayavi/
  9. https://pypi.python.org/pypi/mayavi/"
  10. SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz"
  11. LICENSE="BSD"
  12. SLOT="2"
  13. KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
  14. IUSE="doc examples test"
  15. RDEPEND="
  16. >=dev-python/apptools-4[${PYTHON_USEDEP}]
  17. dev-python/configobj[${PYTHON_USEDEP}]
  18. >=dev-python/envisage-4[${PYTHON_USEDEP}]
  19. dev-python/ipython[${PYTHON_USEDEP}]
  20. dev-python/numpy[${PYTHON_USEDEP}]
  21. dev-python/pyface[${PYTHON_USEDEP}]
  22. >=dev-python/traitsui-4[${PYTHON_USEDEP}]
  23. dev-python/wxpython[${PYTHON_USEDEP}]"
  24. CDEPEND="sci-libs/vtk[python]"
  25. DEPEND="
  26. ${CDEPEND}
  27. dev-python/setuptools[${PYTHON_USEDEP}]
  28. doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
  29. test? (
  30. ${RDEPEND}
  31. dev-python/nose[${PYTHON_USEDEP}]
  32. dev-python/wxpython[opengl]
  33. media-fonts/font-cursor-misc
  34. media-fonts/font-misc-misc
  35. )"
  36. #DOCS="docs/*.txt"
  37. # testsuite is a trainwreck; https://github.com/enthought/mayavi/issues/66
  38. #RESTRICT="test"
  39. PATCHES=( "${FILESDIR}"/${PN}-4.2.0-doc.patch )
  40. python_compile_all() {
  41. if use doc; then
  42. ${PYTHON} setup.py gen_docs || die
  43. ${PYTHON} setup.py build_docs || die
  44. fi
  45. }
  46. python_test() {
  47. VIRTUALX_COMMAND="nosetests" virtualmake
  48. }
  49. python_install_all() {
  50. distutils-r1_python_install_all
  51. use doc && dohtml -r docs/build/mayavi/html/
  52. if use examples; then
  53. docompress -x usr/share/doc/${PF}/examples/
  54. insinto /usr/share/doc/${PF}
  55. doins -r examples
  56. fi
  57. newicon mayavi/core/ui/images/m2.png mayavi2.png
  58. make_desktop_entry ${PN}2 \
  59. "Mayavi2 2D/3D Scientific Visualization" ${PN}2
  60. }