diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2009-01-15 10:31:48 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2009-01-15 10:31:48 +0000 |
commit | 4b323c33dd8d92e60eaf2c333cf1d661d6072c45 (patch) | |
tree | ac435b1097a9956103316a88b9b870e18e15616e /sci-visualization | |
parent | Initial import (diff) | |
download | gentoo-2-4b323c33dd8d92e60eaf2c333cf1d661d6072c45.tar.gz gentoo-2-4b323c33dd8d92e60eaf2c333cf1d661d6072c45.tar.bz2 gentoo-2-4b323c33dd8d92e60eaf2c333cf1d661d6072c45.zip |
New Enthought version for Mayavi2
(Portage version: 2.2_rc20/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'sci-visualization')
-rw-r--r-- | sci-visualization/mayavi/ChangeLog | 10 | ||||
-rw-r--r-- | sci-visualization/mayavi/mayavi-1.5.ebuild | 7 | ||||
-rw-r--r-- | sci-visualization/mayavi/mayavi-3.1.0.ebuild | 70 |
3 files changed, 82 insertions, 5 deletions
diff --git a/sci-visualization/mayavi/ChangeLog b/sci-visualization/mayavi/ChangeLog index 24fac07a86a3..d2ea2263f7b5 100644 --- a/sci-visualization/mayavi/ChangeLog +++ b/sci-visualization/mayavi/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-visualization/mayavi -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/ChangeLog,v 1.3 2008/10/27 12:08:49 bicatali Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/ChangeLog,v 1.4 2009/01/15 10:31:48 bicatali Exp $ + +*mayavi-3.1.0 (15 Jan 2009) + + 15 Jan 2009; Sébastien Fabbro <bicatali@gentoo.org> mayavi-1.5.ebuild, + +mayavi-3.1.0.ebuild: + New Enthought version for Mayavi2 27 Oct 2008; Sébastien Fabbro <bicatali@gentoo.org> mayavi-1.5.ebuild: Switch to EAPI=2 with use dependencies diff --git a/sci-visualization/mayavi/mayavi-1.5.ebuild b/sci-visualization/mayavi/mayavi-1.5.ebuild index a295f0563160..d2b60555bbbb 100644 --- a/sci-visualization/mayavi/mayavi-1.5.ebuild +++ b/sci-visualization/mayavi/mayavi-1.5.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-1.5.ebuild,v 1.3 2008/10/27 12:08:49 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-1.5.ebuild,v 1.4 2009/01/15 10:31:48 bicatali Exp $ NEED_PYTHON=2.3 EAPI=2 -inherit distutils +inherit eutils distutils MY_P=MayaVi-${PV} DESCRIPTION="VTK based scientific data visualizer" @@ -30,6 +30,7 @@ src_install() { insinto /usr/share/doc/${PF} doins -r examples || die fi + make_desktop_entry mayavi "Mayavi2 2D/3D Scientific Visualization" } pkg_postinst() { diff --git a/sci-visualization/mayavi/mayavi-3.1.0.ebuild b/sci-visualization/mayavi/mayavi-3.1.0.ebuild new file mode 100644 index 000000000000..d2416c3aeede --- /dev/null +++ b/sci-visualization/mayavi/mayavi-3.1.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-3.1.0.ebuild,v 1.1 2009/01/15 10:31:48 bicatali Exp $ + +EAPI=2 +inherit eutils distutils + +MY_PN="Mayavi" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="VTK based scientific data visualizer" +HOMEPAGE="http://code.enthought.com/projects/mayavi" +SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +IUSE="doc examples" +SLOT="2" +KEYWORDS="~amd64 ~x86" +LICENSE="BSD" + +RDEPEND="dev-python/apptools + dev-python/enthoughtbase + dev-python/envisagecore + dev-python/envisageplugins + dev-python/traitsgui + dev-python/configobj + dev-python/ipython + dev-python/wxpython:2.8 + >=dev-python/numpy-1.1 + >=sci-libs/vtk-5[python]" + +DEPEND="dev-python/setuptools + >=dev-python/numpy-1.1 + >=sci-libs/vtk-5[python]" +# doc needs X display +# doc? ( dev-python/setupdocs )" + +S="${WORKDIR}/${MY_P}" + +PYTHON_MODNAME="enthought" + +src_prepare() { + # remove docs and mlab which needs a display + sed -i \ + -e "/self.run_command('build_docs')/d" \ + -e "/self.run_command('mlab_ref')/d" \ + setup.py || die +} + +src_compile() { + distutils_src_compile + #if use doc; then + # ${python} setup.py build_docs --formats=html,pdf \ + # || die "doc building failed" + #fi +} + +src_install() { + find "${S}" -name \*LICENSE\*.txt -delete + distutils_src_install + dodoc docs/*.txt + insinto /usr/share/doc/${PF} + if use doc; then + #doins -r build/docs/html build/docs/latex/*/* || die + doins docs/pdf/*.pdf docs/pdf/*/*.pdf || die + fi + if use examples; then + doins -r examples || die + fi + newicon enthought/mayavi/core/ui/images/m2.png mayavi2.png + make_desktop_entry mayavi2 "Mayavi2 2D/3D Scientific Visualization" mayavi2 +} |