blob: 78dd6b83b3533eea5fe157a8ff58ee870991554d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-1.5-r1.ebuild,v 1.4 2010/03/15 03:26:31 bicatali Exp $
NEED_PYTHON=2.3
EAPI=2
inherit eutils distutils
MY_P=MayaVi-${PV}
DESCRIPTION="VTK based scientific data visualizer"
HOMEPAGE="http://mayavi.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="1"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"
DEPEND="dev-lang/python[tk]
>=sci-libs/vtk-5[tk,python]"
RDEPEND="${DEPEND}"
RESTRICT="test"
S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}"/mayavi-1.5-tkinter_objects.patch
}
src_install() {
distutils_src_install
dodoc doc/{README,CREDITS,NEWS,TODO}.txt
use doc && dohtml -r doc/guide/*
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples || die
fi
make_desktop_entry mayavi "Mayavi1 2D/3D Scientific Visualization"
}
pkg_postinst() {
if ! has_version sci-libs/vtk[patented]; then
elog "Mayavi may require vtk to be built with the 'patent' USE flag"
elog "to be fully functional"
fi
}
|