View | Details | Raw Unified
Collapse All | Expand All

(-) mayavi-1.4.ebuild (-17 / +33 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# $Header: $
inherit distutils
inherit distutils eutils
DESCRIPTION="Scientific data visualizer"
DESCRIPTION="Scientific data visualizer"
HOMEPAGE="http://mayavi.sourceforge.net"
HOMEPAGE="http://mayavi.sourceforge.net"
 Lines 11-45    Link Here 
SLOT="0"
SLOT="0"
KEYWORDS="~x86"
KEYWORDS="~x86"
IUSE="tcltk"
IUSE="doc"
DEPEND=">=dev-lang/python-2.0
DEPEND=">=dev-lang/python-2.0
		>=dev-lang/tcl-8.2.3"
		>=dev-lang/tcl-8.2.3"
	
	
RDEPEND="dev-libs/vtk"
RDEPEND="sci-libs/vtk"
SRC_URI="http://download.sourceforge.net/mayavi/MayaVi-1.4.tar.gz"
SRC_URI="http://download.sourceforge.net/mayavi/MayaVi-${PV}.tar.gz"
S=${WORKDIR}/MayaVi-1.4
S=${WORKDIR}/MayaVi-${PV}
src_compile() {
pkg_setup() {
    if use tcltk; then
	if ! built_with_use dev-lang/python tk ; then
		cd ${WORKDIR}/MayaVi-1.4
		eerror "python is missing tk support."
		distutils_src_compile || die "src compile failed"
		eerror "Please add 'tk' to your USE flags, and re-emerge python."
	else
		die "python needs tk support"
		eerror "Use flag tcltk not enabled"
	fi
		die "Recompile python with tcltk"
	# does vtk have to be compiled with patented?  Comment #5 in bug #50464 says
	# it does...
	#if ! built_with_use sci-libs/vtk tcl tk patented ; then
	#	eerror "vtk is missing tcl, tk or patented support."
	#	eerror "Please ensure you have the 'tcl', 'tk' and 'patented' USE flags"
	#	eerror  "enabled for vtk and then re-emerge vtk."
	#	die "vtk needs tcl, tk and patented USE flags"
	#fi
	if ! built_with_use sci-libs/vtk tcl tk ; then
		eerror "vtk is missing tcl or tk support."
		eerror "Please ensure you have the 'tcl' and 'tk' USE flags"
		eerror  "enabled for vtk and then re-emerge vtk."
		die "vtk needs tcl and tk USE flags"
	fi
	fi
}
}
src_compile() {
	distutils_src_compile || die "src compile failed"
}
src_install() {
src_install() {
	cd ${S}
	distutils_src_install
	distutils_src_install
	cd doc
	cd doc
	dodoc *.txt
	dodoc *.txt
	dohtml -r guide/*
	if use doc; then
	dodir /usr/share/doc/${PF}/examples/
		dohtml -r guide/*
	cp -r ${S}/examples/* ${D}/usr/share/doc/${PF}/examples/
		dodir /usr/share/doc/${PF}/examples/
	
		cp -r ${S}/examples/* ${D}/usr/share/doc/${PF}/examples/
	fi
}
}