Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit distutils |
5 |
inherit distutils eutils |
6 |
|
6 |
|
7 |
DESCRIPTION="Scientific data visualizer" |
7 |
DESCRIPTION="Scientific data visualizer" |
8 |
HOMEPAGE="http://mayavi.sourceforge.net" |
8 |
HOMEPAGE="http://mayavi.sourceforge.net" |
Lines 11-45
Link Here
|
11 |
SLOT="0" |
11 |
SLOT="0" |
12 |
KEYWORDS="~x86" |
12 |
KEYWORDS="~x86" |
13 |
|
13 |
|
14 |
IUSE="tcltk" |
14 |
IUSE="doc" |
15 |
|
15 |
|
16 |
DEPEND=">=dev-lang/python-2.0 |
16 |
DEPEND=">=dev-lang/python-2.0 |
17 |
>=dev-lang/tcl-8.2.3" |
17 |
>=dev-lang/tcl-8.2.3" |
18 |
|
18 |
|
19 |
RDEPEND="dev-libs/vtk" |
19 |
RDEPEND="sci-libs/vtk" |
20 |
|
20 |
|
21 |
SRC_URI="http://download.sourceforge.net/mayavi/MayaVi-1.4.tar.gz" |
21 |
SRC_URI="http://download.sourceforge.net/mayavi/MayaVi-${PV}.tar.gz" |
22 |
|
22 |
|
23 |
S=${WORKDIR}/MayaVi-1.4 |
23 |
S=${WORKDIR}/MayaVi-${PV} |
24 |
|
24 |
|
25 |
src_compile() { |
25 |
pkg_setup() { |
26 |
if use tcltk; then |
26 |
if ! built_with_use dev-lang/python tk ; then |
27 |
cd ${WORKDIR}/MayaVi-1.4 |
27 |
eerror "python is missing tk support." |
28 |
distutils_src_compile || die "src compile failed" |
28 |
eerror "Please add 'tk' to your USE flags, and re-emerge python." |
29 |
else |
29 |
die "python needs tk support" |
30 |
eerror "Use flag tcltk not enabled" |
30 |
fi |
31 |
die "Recompile python with tcltk" |
31 |
# does vtk have to be compiled with patented? Comment #5 in bug #50464 says |
|
|
32 |
# it does... |
33 |
#if ! built_with_use sci-libs/vtk tcl tk patented ; then |
34 |
# eerror "vtk is missing tcl, tk or patented support." |
35 |
# eerror "Please ensure you have the 'tcl', 'tk' and 'patented' USE flags" |
36 |
# eerror "enabled for vtk and then re-emerge vtk." |
37 |
# die "vtk needs tcl, tk and patented USE flags" |
38 |
#fi |
39 |
if ! built_with_use sci-libs/vtk tcl tk ; then |
40 |
eerror "vtk is missing tcl or tk support." |
41 |
eerror "Please ensure you have the 'tcl' and 'tk' USE flags" |
42 |
eerror "enabled for vtk and then re-emerge vtk." |
43 |
die "vtk needs tcl and tk USE flags" |
32 |
fi |
44 |
fi |
33 |
} |
45 |
} |
34 |
|
46 |
|
|
|
47 |
src_compile() { |
48 |
distutils_src_compile || die "src compile failed" |
49 |
} |
50 |
|
35 |
src_install() { |
51 |
src_install() { |
36 |
cd ${S} |
|
|
37 |
distutils_src_install |
52 |
distutils_src_install |
38 |
cd doc |
53 |
cd doc |
39 |
dodoc *.txt |
54 |
dodoc *.txt |
40 |
dohtml -r guide/* |
55 |
if use doc; then |
41 |
dodir /usr/share/doc/${PF}/examples/ |
56 |
dohtml -r guide/* |
42 |
cp -r ${S}/examples/* ${D}/usr/share/doc/${PF}/examples/ |
57 |
dodir /usr/share/doc/${PF}/examples/ |
43 |
|
58 |
cp -r ${S}/examples/* ${D}/usr/share/doc/${PF}/examples/ |
|
|
59 |
fi |
44 |
} |
60 |
} |
45 |
|
61 |
|