/[gentoo-x86]/sci-visualization/mayavi/mayavi-4.1.0-r1.ebuild
Gentoo

Contents of /sci-visualization/mayavi/mayavi-4.1.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Mar 5 10:53:03 2012 UTC (2 years, 6 months ago) by jlec
Branch: MAIN
Changes since 1.2: +5 -4 lines
Add missing RDEP on dev-python/wxpython

(Portage version: 2.2.0_alpha89/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-4.1.0-r1.ebuild,v 1.2 2012/03/05 10:43:13 jlec Exp $
4
5 EAPI=4
6
7 RESTRICT_PYTHON_ABIS="3.* *-jython"
8 DISTUTILS_SRC_TEST="nosetests"
9
10 inherit distutils eutils virtualx
11
12 DESCRIPTION="Enthought Tool Suite: Scientific data 3-dimensional visualizer"
13 HOMEPAGE="http://code.enthought.com/projects/mayavi/ http://pypi.python.org/pypi/mayavi/"
14 SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz"
15
16 LICENSE="BSD"
17 SLOT="2"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="doc examples test"
20
21 RDEPEND="
22 dev-python/apptools
23 dev-python/configobj
24 dev-python/envisage
25 dev-python/ipython
26 dev-python/numpy
27 dev-python/pyface
28 dev-python/traitsui
29 dev-python/wxpython"
30 CDEPEND="sci-libs/vtk[python]"
31 DEPEND="
32 ${CDEPEND}
33 dev-python/setuptools
34 test? (
35 ${RDEPEND}
36 dev-python/wxpython[opengl]
37 media-fonts/font-cursor-misc
38 media-fonts/font-misc-misc
39 )"
40
41 DOCS="docs/*.txt"
42
43 pkg_setup() {
44 python_set_active_version 2
45 python_pkg_setup
46 }
47
48 src_prepare() {
49 # upstream backport
50 epatch "${FILESDIR}"/${P}-vtkQt.patch
51 distutils_src_prepare
52 }
53
54 src_compile() {
55 distutils_src_compile
56 use doc && virtualmake -C docs html
57 }
58
59 src_test() {
60 VIRTUALX_COMMAND="distutils_src_test" virtualmake
61 }
62
63 src_install() {
64 find -name "*LICENSE*.txt" -delete
65 distutils_src_install
66
67 use doc && dohtml -r docs/build/mayavi/html/*
68
69 if use examples; then
70 insinto /usr/share/doc/${PF}
71 doins -r examples
72 fi
73
74 newicon mayavi/core/ui/images/m2.png mayavi2.png
75 make_desktop_entry mayavi2 "Mayavi2 2D/3D Scientific Visualization" mayavi2
76 }

  ViewVC Help
Powered by ViewVC 1.1.20