diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-03-05 10:26:35 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-03-05 10:26:35 +0000 |
commit | 7797e7c87e914baf6b8a512264645ca1adf41187 (patch) | |
tree | f0d7ba0031625070eeaae827d9d594c499baa785 /sci-visualization/mayavi | |
parent | marked x86 per bug 406427 (diff) | |
download | gentoo-2-7797e7c87e914baf6b8a512264645ca1adf41187.tar.gz gentoo-2-7797e7c87e914baf6b8a512264645ca1adf41187.tar.bz2 gentoo-2-7797e7c87e914baf6b8a512264645ca1adf41187.zip |
Drop old, #322191; restrict multiabi installation, #405541; include backport patch from upstream, fixes compilation with newer vtk, #399537
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
Diffstat (limited to 'sci-visualization/mayavi')
-rw-r--r-- | sci-visualization/mayavi/ChangeLog | 10 | ||||
-rw-r--r-- | sci-visualization/mayavi/files/mayavi-4.1.0-vtkQt.patch | 25 | ||||
-rw-r--r-- | sci-visualization/mayavi/mayavi-3.4.1.ebuild | 87 | ||||
-rw-r--r-- | sci-visualization/mayavi/mayavi-4.1.0-r1.ebuild (renamed from sci-visualization/mayavi/mayavi-4.0.0.ebuild) | 55 | ||||
-rw-r--r-- | sci-visualization/mayavi/mayavi-4.1.0.ebuild | 25 |
5 files changed, 86 insertions, 116 deletions
diff --git a/sci-visualization/mayavi/ChangeLog b/sci-visualization/mayavi/ChangeLog index fe30a98f4b5c..7a643d8e95a9 100644 --- a/sci-visualization/mayavi/ChangeLog +++ b/sci-visualization/mayavi/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sci-visualization/mayavi # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/ChangeLog,v 1.25 2012/02/15 19:13:02 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/ChangeLog,v 1.26 2012/03/05 10:26:35 jlec Exp $ + +*mayavi-4.1.0-r1 (05 Mar 2012) + + 05 Mar 2012; Justin Lecher <jlec@gentoo.org> -mayavi-3.4.1.ebuild, + -mayavi-4.0.0.ebuild, mayavi-4.1.0.ebuild, +mayavi-4.1.0-r1.ebuild, + +files/mayavi-4.1.0-vtkQt.patch: + Drop old, #322191; restrict multiabi installation, #405541; include backport + patch from upstream, fixes compilation with newer vtk, #399537 15 Feb 2012; Justin Lecher <jlec@gentoo.org> mayavi-3.4.1.ebuild, metadata.xml: diff --git a/sci-visualization/mayavi/files/mayavi-4.1.0-vtkQt.patch b/sci-visualization/mayavi/files/mayavi-4.1.0-vtkQt.patch new file mode 100644 index 000000000000..6f5834ce1317 --- /dev/null +++ b/sci-visualization/mayavi/files/mayavi-4.1.0-vtkQt.patch @@ -0,0 +1,25 @@ +From 2fece6b29c9f3eefa523c8131cce02f724e437f3 Mon Sep 17 00:00:00 2001 +Message-Id: <2fece6b29c9f3eefa523c8131cce02f724e437f3.1330934918.git.jlec@gentoo.org> +From: martin <martin@think.(none)> +Date: Sun, 19 Feb 2012 10:43:39 -0500 +Subject: [PATCH] FIX: don't wrap vtkQt classes + +--- + tvtk/code_gen.py | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/tvtk/code_gen.py b/tvtk/code_gen.py +index f0b0b60..377801e 100644 +--- a/tvtk/code_gen.py ++++ b/tvtk/code_gen.py +@@ -92,6 +92,7 @@ class TVTKGenerator: + #classes = dir(vtk) + classes = [x.name for x in wrap_gen.get_tree() \ + if x.name.startswith('vtk') and \ ++ not x.name.startswith('vtkQt') and \ + not issubclass(getattr(vtk, x.name), object) ] + for nodes in tree: + for node in nodes: +-- +1.7.8.5 + diff --git a/sci-visualization/mayavi/mayavi-3.4.1.ebuild b/sci-visualization/mayavi/mayavi-3.4.1.ebuild deleted file mode 100644 index d816938b07fb..000000000000 --- a/sci-visualization/mayavi/mayavi-3.4.1.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-3.4.1.ebuild,v 1.4 2012/02/15 19:13:02 jlec Exp $ - -EAPI="3" - -PYTHON_DEPEND="2" - -inherit distutils eutils - -MY_PN="Mayavi" -MY_P="${MY_PN}-${PV}" - -DESCRIPTION="Enthought Tool Suite: scientific data 3-dimensional visualizer" -HOMEPAGE="http://code.enthought.com/projects/mayavi/ http://pypi.python.org/pypi/Mayavi/" -SRC_URI="http://www.enthought.com/repo/ETS/${MY_P}.tar.gz" - -LICENSE="BSD" -SLOT="2" -KEYWORDS="~amd64 ~x86" -IUSE="doc examples qt4" - -RDEPEND=" - >=dev-python/apptools-3.4.1 - dev-python/configobj - >=dev-python/enthoughtbase-3.1.0 - >=dev-python/envisagecore-3.2.0 - >=dev-python/envisageplugins-3.2.0 - dev-python/ipython - dev-python/numpy - dev-python/setuptools - >=dev-python/traitsgui-3.6.0[qt4?,wxwidgets] - dev-python/wxpython:2.8[opengl] - >=sci-libs/vtk-5[python] - qt4? ( dev-python/PyQt4[X,opengl] )" -DEPEND="${RDEPEND} - doc? ( app-arch/unzip )" - -S="${WORKDIR}"/${MY_P} - -DOCS="docs/*.txt" -PYTHON_MODNAME="enthought" - -pkg_setup() { - python_set_active_version 2 - python_pkg_setup -} - -src_unpack() { - default - if use doc; then - cd "${S}"/docs - # building docs is buggy and requires X - # so use the bundled ones - unpack ./html.zip - rm -rf html/*/_sources - fi -} - -src_prepare() { - distutils_src_prepare - sed -i \ - -e "s/self.run_command('gen_docs')/pass/" \ - -e "s/self.run_command('build_docs')/pass/" \ - setup.py || die "sed setup.py failed" -} - -src_install() { - find -name "*LICENSE*.txt" -delete - distutils_src_install - - insinto /usr/share/doc/${PF} - if use doc; then - doins -r docs/html || die "Installation of documentation failed" - dosym /usr/share/doc/${PF}/html/mayavi \ - $(python_get_sitedir)/enthought/mayavi/html - dosym /usr/share/doc/${PF}/html/tvtk \ - $(python_get_sitedir)/enthought/tvtk/html - fi - - if use examples; then - doins -r examples || die "Installation of examples failed" - fi - - newicon enthought/mayavi/core/ui/images/m2.png mayavi2.png - make_desktop_entry mayavi2 "Mayavi2 2D/3D Scientific Visualization" mayavi2 -} diff --git a/sci-visualization/mayavi/mayavi-4.0.0.ebuild b/sci-visualization/mayavi/mayavi-4.1.0-r1.ebuild index 1461fd00b475..a8c65f32fe8b 100644 --- a/sci-visualization/mayavi/mayavi-4.0.0.ebuild +++ b/sci-visualization/mayavi/mayavi-4.1.0-r1.ebuild @@ -1,35 +1,35 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-4.0.0.ebuild,v 1.3 2011/08/09 04:22:22 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-4.1.0-r1.ebuild,v 1.1 2012/03/05 10:26:35 jlec Exp $ + +EAPI=4 -EAPI="3" -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.* *-jython" DISTUTILS_SRC_TEST="nosetests" inherit distutils eutils virtualx -DESCRIPTION="Enthought Tool Suite: scientific data 3-dimensional visualizer" -HOMEPAGE="http://code.enthought.com/projects/mayavi/ http://pypi.python.org/pypi/mayavi" +DESCRIPTION="Enthought Tool Suite: Scientific data 3-dimensional visualizer" +HOMEPAGE="http://code.enthought.com/projects/mayavi/ http://pypi.python.org/pypi/mayavi/" SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz" LICENSE="BSD" SLOT="2" KEYWORDS="~amd64 ~x86" -IUSE="examples test" +IUSE="doc examples test" -RDEPEND="dev-python/configobj +RDEPEND=" + dev-python/configobj dev-python/ipython - >=dev-python/pyface-4.0 - >=dev-python/traitsui-4.0 - >=dev-python/envisage-4.0 - >=dev-python/apptools-4.0 - >=dev-python/traitsui-4.0 + dev-python/pyface + dev-python/traitsui + dev-python/envisage + dev-python/apptools dev-python/numpy - >=sci-libs/vtk-5[python]" + sci-libs/vtk[python]" -DEPEND="dev-python/setuptools +DEPEND=" + dev-python/setuptools test? ( ${RDEPEND} dev-python/wxpython[opengl] @@ -39,6 +39,22 @@ DEPEND="dev-python/setuptools DOCS="docs/*.txt" +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + # upstream backport + epatch "${FILESDIR}"/${P}-vtkQt.patch + distutils_src_prepare +} + +src_compile() { + distutils_src_compile + use doc && virtualmake -C docs html +} + src_test() { VIRTUALX_COMMAND="distutils_src_test" virtualmake } @@ -46,9 +62,12 @@ src_test() { src_install() { find -name "*LICENSE*.txt" -delete distutils_src_install + + use doc && dohtml -r docs/build/mayavi/html/* + if use examples; then - insinto /usr/share/doc/${PF}/examples - doins -r examples/* || die "Installation of examples failed" + insinto /usr/share/doc/${PF} + doins -r examples fi newicon mayavi/core/ui/images/m2.png mayavi2.png diff --git a/sci-visualization/mayavi/mayavi-4.1.0.ebuild b/sci-visualization/mayavi/mayavi-4.1.0.ebuild index ff9cf818e250..4668d8cbe52b 100644 --- a/sci-visualization/mayavi/mayavi-4.1.0.ebuild +++ b/sci-visualization/mayavi/mayavi-4.1.0.ebuild @@ -1,10 +1,9 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-4.1.0.ebuild,v 1.1 2012/01/17 06:26:54 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-4.1.0.ebuild,v 1.2 2012/03/05 10:26:35 jlec Exp $ EAPI=4 -SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.* *-jython" DISTUTILS_SRC_TEST="nosetests" @@ -19,17 +18,18 @@ SLOT="2" KEYWORDS="~amd64 ~x86" IUSE="doc examples test" -RDEPEND="dev-python/configobj +RDEPEND=" + dev-python/configobj dev-python/ipython - >=dev-python/pyface-4 - >=dev-python/traitsui-4 - >=dev-python/envisage-4 - >=dev-python/apptools-4 - >=dev-python/traitsui-4 + dev-python/pyface + dev-python/traitsui + dev-python/envisage + dev-python/apptools dev-python/numpy - >=sci-libs/vtk-5[python]" + sci-libs/vtk[python]" -DEPEND="dev-python/setuptools +DEPEND=" + dev-python/setuptools test? ( ${RDEPEND} dev-python/wxpython[opengl] @@ -39,6 +39,11 @@ DEPEND="dev-python/setuptools DOCS="docs/*.txt" +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + src_compile() { distutils_src_compile use doc && virtualmake -C docs html |