From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-visualization/mayavi/Manifest | 8 +++ .../mayavi/files/mayavi-4.2.0-doc.patch | 37 +++++++++++ sci-visualization/mayavi/mayavi-4.3.0.ebuild | 75 ++++++++++++++++++++++ sci-visualization/mayavi/mayavi-4.5.0.ebuild | 68 ++++++++++++++++++++ sci-visualization/mayavi/metadata.xml | 27 ++++++++ 5 files changed, 215 insertions(+) create mode 100644 sci-visualization/mayavi/Manifest create mode 100644 sci-visualization/mayavi/files/mayavi-4.2.0-doc.patch create mode 100644 sci-visualization/mayavi/mayavi-4.3.0.ebuild create mode 100644 sci-visualization/mayavi/mayavi-4.5.0.ebuild create mode 100644 sci-visualization/mayavi/metadata.xml (limited to 'sci-visualization/mayavi') diff --git a/sci-visualization/mayavi/Manifest b/sci-visualization/mayavi/Manifest new file mode 100644 index 000000000000..af97e5e7e351 --- /dev/null +++ b/sci-visualization/mayavi/Manifest @@ -0,0 +1,8 @@ +AUX mayavi-4.2.0-doc.patch 1099 SHA256 084328815f4e94f7b4cbdb6422813d09eb1aa0d9a1bd2f1ea4fb8607e76438ab SHA512 7c51c59e277f1b3f06b01ed79f2293b1c90d0908020b6891c135aebcebcfe70ebbd5645a206903ea1b3f192ed84ba55dd0a5a6898208c862cbdd760c636ff1c8 WHIRLPOOL e22716929ae148736ace32581dacfd0a62f3fc1e84e5fa59479b20bd05ae81bec44ebcca56efef14ea0bc186d9c986072c5cbf84b6b63e5f46f36012dcef14a3 +DIST mayavi-4.3.0.tar.gz 7669453 SHA256 ebad81222809d18ad443cd11d62e768998467064628f8c13786ac692dd858b8d SHA512 1530c194ba5f94d7a2767dbc0e704892520c24c2af5ea8977c791922fa8a1ddf780d1589bf38b4efe4b5bc779c1ef6358d9664963fa9d4c5a1e75f6500f4a974 WHIRLPOOL 4f187ce7c4c6e8f040ef49a9586b6ab796382fa20f04c0f5ddf0870f9418f3622a4ad9bc846e4dd390f9dcf4482df84fa6673d5a76de643886e87954622ada58 +DIST mayavi-4.5.0.tar.gz 8966895 SHA256 36f688b3ea542e9f8cc0d7faa25e1425723cd00acc8aa640169029f33679ab85 SHA512 241faa5b39a6b1b28f04bf6fff44d3ff952b2df581b03845224d9404c3b1a71b2985c23060b6a50425545106a0e32f474956dba7f5b9dfcfb4d55e866a3acee6 WHIRLPOOL 4aad37e93200f4ccfe6a506ed7843ecb4ef69c0d7b8ff8b7fa3c2536d3f4ad3ea1ad84c1fe06275fd9379f3978da3ab0f7bb6dc009c6136e75b2043cd813a46d +EBUILD mayavi-4.3.0.ebuild 1828 SHA256 6803b018cc8070f6f3ac7c947bcfee2610d2b437ceb383bd4f38df55134c5529 SHA512 a229251801da135dfeedcdf0c9b73456b38c5b3b5eb4ce3f41fc66b6de659de413c4ae021ee198e0a5debbc3266235b52c1ab792d568102942e24dd22596502a WHIRLPOOL 7662c94e232158b1f8e93179655be1f26708c32036f8b34c19f2d868535012971f32ca7b3ba35d30247cca43dd2b8d789ffe647cdca790f690b9054ef5fd712c +EBUILD mayavi-4.5.0.ebuild 1776 SHA256 a73250c494c3386952c5cbd85f8a06a608782d46b85e9c11d89f70beca58aca1 SHA512 f806a06b374f09490393e1be09e4647de620db8e98b400be081904e3304df43a992041a52241665d3a5b4da37b7bc3614d27bbe4ac1fac980a33f9baa4798d42 WHIRLPOOL 0f15170c3d6655c9a0be77081ff815829b5d7f08ab24fb72de9bca9d0fb9516e53c703335e2440365d1a6132a346b7cc048de682d4680ce537f7a05917858df6 +MISC ChangeLog 2641 SHA256 caeb5a77348016a9f8e4e0fb0a25a52ff4aaedc4ca8659d008a2585b8350f06e SHA512 e03aeca2c32e3e689b1441ea4eab0f61c8fe6c08f8988d876f3efc713923b3ac70932902d1b758e8924afeb32a3bd7b908009a05600f1a5716eddbde037d98f9 WHIRLPOOL 36778cd794378f4aa815edc3628ea9b7e118fac54291bb4be59e95e6d14b3466224119ee8cfe8d3f231911195d70f48fa0baa28f10c659738664cb4a8f8bc12b +MISC ChangeLog-2015 5607 SHA256 b369e8329b77540de39d4fbf7da2e8ea19137496a6612594c7b97167a35c369b SHA512 b10450e0b52cd22f4522403f4da1d76e2787b7e284aac4a5695ae0faa48c92b853b930ad09f208d0d16eb88482584652c1947a3682ae2ea144303c932a841bf8 WHIRLPOOL b2eb970a6af1ba08fa5456d2ac6fc82651dd4005fb783d6741405371f07cf7d891d06dd935c83926419c6c32e39f7070a68322d6efa527002a8844f9608e6629 +MISC metadata.xml 1279 SHA256 0ba15d549718da9cc35a2ed9eb9283dc597c98bed49478319f4b161e5b949ba2 SHA512 958b778f3c7b3cc435c23f7ca5dc8750488654dd7151de5ebe89d47eef4d5f273e7649df947e415e2482d9a96c7d9c8178b3f34f2c4acdae63f0e62c4350901b WHIRLPOOL 11d37d6ff6befe44e27bf7c83ea9ed1163209df0a9725340a026b8a8c80d3a9065a499e80f8d96e82d59e55226091ef745abc6df33aa88873efece56ed3dc3c9 diff --git a/sci-visualization/mayavi/files/mayavi-4.2.0-doc.patch b/sci-visualization/mayavi/files/mayavi-4.2.0-doc.patch new file mode 100644 index 000000000000..1cdb129871e3 --- /dev/null +++ b/sci-visualization/mayavi/files/mayavi-4.2.0-doc.patch @@ -0,0 +1,37 @@ + setup.py | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/setup.py b/setup.py +index 0177c44..58d13b0 100644 +--- a/setup.py ++++ b/setup.py +@@ -300,14 +300,14 @@ class MyBuild(build.build): + """ + + def run(self): +- build_tvtk_classes_zip() ++# build_tvtk_classes_zip() + build.build.run(self) +- self.run_command('gen_docs') +- try: +- self.run_command('build_docs') +- except: +- log.warn("Couldn't build documentation:\n%s" % +- traceback.format_exception(*sys.exc_info())) ++# self.run_command('gen_docs') ++# try: ++# self.run_command('build_docs') ++# except: ++# log.warn("Couldn't build documentation:\n%s" % ++# traceback.format_exception(*sys.exc_info())) + + + +@@ -494,6 +494,6 @@ numpy.distutils.core.setup( + license = "BSD", + long_description = '\n'.join(DOCLINES[3:]), + platforms = ["Windows", "Linux", "Mac OS-X", "Unix", "Solaris"], +- zip_safe = False, ++ zip_safe = True, + **config + ) diff --git a/sci-visualization/mayavi/mayavi-4.3.0.ebuild b/sci-visualization/mayavi/mayavi-4.3.0.ebuild new file mode 100644 index 000000000000..4b61043d60e2 --- /dev/null +++ b/sci-visualization/mayavi/mayavi-4.3.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Enthought Tool Suite: Scientific data 3-dimensional visualizer" +HOMEPAGE=" + http://code.enthought.com/projects/mayavi/ + https://pypi.python.org/pypi/mayavi/" +SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz" + +LICENSE="BSD" +SLOT="2" +KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" + +RDEPEND=" + >=dev-python/apptools-4[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + >=dev-python/envisage-4[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pyface[${PYTHON_USEDEP}] + >=dev-python/traitsui-4[${PYTHON_USEDEP}] + dev-python/wxpython[${PYTHON_USEDEP}]" +CDEPEND="sci-libs/vtk[python]" +DEPEND=" + ${CDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + ${RDEPEND} + dev-python/nose[${PYTHON_USEDEP}] + dev-python/wxpython[opengl] + media-fonts/font-cursor-misc + media-fonts/font-misc-misc + )" + +#DOCS="docs/*.txt" + +# testsuite is a trainwreck; https://github.com/enthought/mayavi/issues/66 +#RESTRICT="test" + +PATCHES=( "${FILESDIR}"/${PN}-4.2.0-doc.patch ) + +python_compile_all() { + if use doc; then + ${PYTHON} setup.py gen_docs || die + ${PYTHON} setup.py build_docs || die + fi +} + +python_test() { + + VIRTUALX_COMMAND="nosetests" virtualmake +} + +python_install_all() { + distutils-r1_python_install_all + use doc && dohtml -r docs/build/mayavi/html/ + + if use examples; then + docompress -x usr/share/doc/${PF}/examples/ + insinto /usr/share/doc/${PF} + doins -r examples + fi + + newicon mayavi/core/ui/images/m2.png mayavi2.png + make_desktop_entry ${PN}2 \ + "Mayavi2 2D/3D Scientific Visualization" ${PN}2 +} diff --git a/sci-visualization/mayavi/mayavi-4.5.0.ebuild b/sci-visualization/mayavi/mayavi-4.5.0.ebuild new file mode 100644 index 000000000000..84348e718ed3 --- /dev/null +++ b/sci-visualization/mayavi/mayavi-4.5.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Enthought Tool Suite: Scientific data 3-dimensional visualizer" +HOMEPAGE=" + http://code.enthought.com/projects/mayavi/ + http://pypi.python.org/pypi/mayavi/" +SRC_URI="https://github.com/enthought/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" + +RDEPEND=" + >=dev-python/apptools-4[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + >=dev-python/envisage-4[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pyface[${PYTHON_USEDEP}] + >=dev-python/traitsui-4[${PYTHON_USEDEP}] + dev-python/wxpython:*[opengl,${PYTHON_USEDEP}]" +CDEPEND="sci-libs/vtk[python,rendering]" +DEPEND=" + ${CDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + ${RDEPEND} + dev-python/nose[${PYTHON_USEDEP}] + dev-python/wxpython[opengl] + media-fonts/font-cursor-misc + media-fonts/font-misc-misc + )" + +# testsuite is a trainwreck; https://github.com/enthought/mayavi/issues/66 +#RESTRICT="test" + +# not sure if this is still needed +#PATCHES=( "${FILESDIR}"/${PN}-4.2.0-doc.patch ) + +python_compile_all() { + if use doc; then + esetup.py gen_docs + esetup.py build_docs + fi +} + +python_test() { + VIRTUALX_COMMAND="nosetests" virtualmake +} + +python_install_all() { + use examples && EXAMPLES=( examples/. ) + use doc && HTML_DOCS=( docs/build/mayavi/html/. ) + distutils-r1_python_install_all + + newicon mayavi/core/ui/images/m2.png mayavi2.png + make_desktop_entry ${PN}2 \ + "Mayavi2 2D/3D Scientific Visualization" ${PN}2 +} diff --git a/sci-visualization/mayavi/metadata.xml b/sci-visualization/mayavi/metadata.xml new file mode 100644 index 000000000000..e1e9603e98aa --- /dev/null +++ b/sci-visualization/mayavi/metadata.xml @@ -0,0 +1,27 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + Mayavi2 is a general purpose, cross-platform tool for 3-D scientific + data visualization. Its features include: + * Visualization of scalar, vector and tensor data in 2 and 3 dimensions. + * Easy scriptability using Python. + * Easy extendibility via custom sources, modules, and data filters. + * Reading several file formats: VTK (legacy and XML), PLOT3D, etc. + * Saving of visualizations. + * Saving rendered visualization in a variety of image formats. + * Convenient functionality for rapid scientific plotting via mlab + + Mayavi2 has been designed with scriptability and extensibility in + mind. Mayavi2 provides a mayavi2 application which is usable by + itself. However, Mayavi2 may also be used as a plotting engine, in + scripts, like with matplotlib or gnuplot, as well as a library for + interactive visualizations in any other application. It may also be + used as an Envisage plug-in which allows it to be embedded in other + Envisage based applications natively. + + -- cgit v1.2.3