/[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.2 - (hide annotations) (download)
Mon Mar 5 10:43:13 2012 UTC (2 years, 6 months ago) by jlec
Branch: MAIN
Changes since 1.1: +4 -4 lines
Resort deps

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

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

  ViewVC Help
Powered by ViewVC 1.1.20