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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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

1 bicatali 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jlec 1.4 # $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-4.1.0.ebuild,v 1.3 2012/03/05 10:43:14 jlec Exp $
4 bicatali 1.1
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 jlec 1.2 RDEPEND="
22 jlec 1.4 dev-python/apptools
23 jlec 1.2 dev-python/configobj
24 jlec 1.4 dev-python/envisage
25 bicatali 1.1 dev-python/ipython
26 jlec 1.4 dev-python/numpy
27 jlec 1.2 dev-python/pyface
28     dev-python/traitsui
29 jlec 1.4 dev-python/wxpython"
30 jlec 1.3 CDEPEND="sci-libs/vtk[python]"
31 jlec 1.2 DEPEND="
32 jlec 1.3 ${CDEPEND}
33 jlec 1.2 dev-python/setuptools
34 bicatali 1.1 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 jlec 1.2 pkg_setup() {
44     python_set_active_version 2
45     python_pkg_setup
46     }
47    
48 bicatali 1.1 src_compile() {
49     distutils_src_compile
50     use doc && virtualmake -C docs html
51     }
52    
53     src_test() {
54     VIRTUALX_COMMAND="distutils_src_test" virtualmake
55     }
56    
57     src_install() {
58     find -name "*LICENSE*.txt" -delete
59     distutils_src_install
60    
61     use doc && dohtml -r docs/build/mayavi/html/*
62    
63     if use examples; then
64     insinto /usr/share/doc/${PF}
65     doins -r examples
66     fi
67    
68     newicon mayavi/core/ui/images/m2.png mayavi2.png
69     make_desktop_entry mayavi2 "Mayavi2 2D/3D Scientific Visualization" mayavi2
70     }

  ViewVC Help
Powered by ViewVC 1.1.20