Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 50464 | Differences between
and this patch

Collapse All | Expand All

(-)mayavi-1.4.ebuild (-16 / +29 lines)
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-35 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"
31
		die "Recompile python with tcltk"
32
	fi
30
	fi
31
	echo ${PV}
32
	# does vtk have to be compiled with tcl and tk as well?  What about
33
	# patented?
34
	#if ! built_with_use sci-libs/vtk tcl tk patented ; then
35
	#	eerror "vtk is missing tcl, tk or patented support."
36
	#	eerror "Please ensure you have the 'tcl', 'tk' and 'patented' USE flags"
37
	#   error  "enabled for vtk and then re-emerge vtk."
38
	#	die "vtk needs tcl, tk and patented USE flags"
39
	#fi
40
}
41
42
src_compile() {
43
	cd {S}
44
	distutils_src_compile || die "src compile failed"
33
}
45
}
34
46
35
src_install() {
47
src_install() {
Lines 37-45 Link Here
37
	distutils_src_install
49
	distutils_src_install
38
	cd doc
50
	cd doc
39
	dodoc *.txt
51
	dodoc *.txt
40
	dohtml -r guide/*
52
	if use doc; then
41
	dodir /usr/share/doc/${PF}/examples/
53
		dohtml -r guide/*
42
	cp -r ${S}/examples/* ${D}/usr/share/doc/${PF}/examples/
54
		dodir /usr/share/doc/${PF}/examples/
43
	
55
		cp -r ${S}/examples/* ${D}/usr/share/doc/${PF}/examples/
56
	fi
44
}
57
}
45
58

Return to bug 50464