diff options
Diffstat (limited to 'sci-visualization')
-rw-r--r-- | sci-visualization/paraview/Manifest | 20 | ||||
-rw-r--r-- | sci-visualization/paraview/files/digest-paraview-2.6.1 | 3 | ||||
-rw-r--r-- | sci-visualization/paraview/files/paraview-2.6.0-hdf5-zlib.patch | 16 | ||||
-rw-r--r-- | sci-visualization/paraview/files/paraview-2.6.0-include.patch | 11 | ||||
-rw-r--r-- | sci-visualization/paraview/metadata.xml | 17 | ||||
-rw-r--r-- | sci-visualization/paraview/paraview-2.6.1.ebuild | 114 |
6 files changed, 181 insertions, 0 deletions
diff --git a/sci-visualization/paraview/Manifest b/sci-visualization/paraview/Manifest new file mode 100644 index 000000000..8fd8330be --- /dev/null +++ b/sci-visualization/paraview/Manifest @@ -0,0 +1,20 @@ +AUX paraview-2.6.0-hdf5-zlib.patch 754 RMD160 6cfe179aae58f40d424e797384d0931e6c618721 SHA1 6431e39fa027f64abcf43a5c298d9ab0dd02a8b4 SHA256 535bc330528f61c62a6dac45395e704beb94a7dbdc687ed28e1f17ed47dbc69c +MD5 9eeeaa3e1b4775fe14a0db9dd937a516 files/paraview-2.6.0-hdf5-zlib.patch 754 +RMD160 6cfe179aae58f40d424e797384d0931e6c618721 files/paraview-2.6.0-hdf5-zlib.patch 754 +SHA256 535bc330528f61c62a6dac45395e704beb94a7dbdc687ed28e1f17ed47dbc69c files/paraview-2.6.0-hdf5-zlib.patch 754 +AUX paraview-2.6.0-include.patch 476 RMD160 9f44a83f73da1accd7ea3d8c353f4de50849b654 SHA1 57d67067fae5124b30dcce8317e0e7ae4a5a4976 SHA256 b8ebb52e9181c992561974de39d43a4c20398bed6760dda495dc82d45376fe77 +MD5 7ca34646cb286751c3ed73d9844cf426 files/paraview-2.6.0-include.patch 476 +RMD160 9f44a83f73da1accd7ea3d8c353f4de50849b654 files/paraview-2.6.0-include.patch 476 +SHA256 b8ebb52e9181c992561974de39d43a4c20398bed6760dda495dc82d45376fe77 files/paraview-2.6.0-include.patch 476 +DIST ParaView-2.6.1.tar.gz 75658607 RMD160 0625a7008d1456cf82e1e20575323c26eba14e34 SHA1 8c0511aebada43840b8949cf58f17539fbca0d04 SHA256 29c0459b5d829ad8683ffad8ad9bcd4625024f00767ca2a5834542eb59886859 +EBUILD paraview-2.6.1.ebuild 3431 RMD160 680c6f88101ed3ca21ceaa9293e2467c6e04d6ca SHA1 f263668201cdc08933271d839e7620b8656a027e SHA256 f4a81fdad95a2de080808e3e610e4ff7f7793c85dac0e58d249e289e18b55e4e +MD5 88d646211fc7769dfb67494c2d2ab634 paraview-2.6.1.ebuild 3431 +RMD160 680c6f88101ed3ca21ceaa9293e2467c6e04d6ca paraview-2.6.1.ebuild 3431 +SHA256 f4a81fdad95a2de080808e3e610e4ff7f7793c85dac0e58d249e289e18b55e4e paraview-2.6.1.ebuild 3431 +MISC metadata.xml 689 RMD160 87f6ee9920467045f8ac8a2687eec0060202195a SHA1 422b42de5a9e890a4b99e4e200a7dcb761e53d12 SHA256 7db471576583da146d3c4b9361f9558b4b07ad781e99ece8bf2ca714cce619be +MD5 9e5d38d772faa888a08bfbcf5dd153fa metadata.xml 689 +RMD160 87f6ee9920467045f8ac8a2687eec0060202195a metadata.xml 689 +SHA256 7db471576583da146d3c4b9361f9558b4b07ad781e99ece8bf2ca714cce619be metadata.xml 689 +MD5 e887246f09a68adcebf0a210749b7722 files/digest-paraview-2.6.1 250 +RMD160 9fc99ae3496825fafb772f97885cf07580b86c42 files/digest-paraview-2.6.1 250 +SHA256 d0eda0e8d162d782270c8b29d2bcbe63a51e07d658c2c9c7d492e4445c07702d files/digest-paraview-2.6.1 250 diff --git a/sci-visualization/paraview/files/digest-paraview-2.6.1 b/sci-visualization/paraview/files/digest-paraview-2.6.1 new file mode 100644 index 000000000..e5d522c63 --- /dev/null +++ b/sci-visualization/paraview/files/digest-paraview-2.6.1 @@ -0,0 +1,3 @@ +MD5 55b3b4a47c7c64e266425a9e7e413ac6 ParaView-2.6.1.tar.gz 75658607 +RMD160 0625a7008d1456cf82e1e20575323c26eba14e34 ParaView-2.6.1.tar.gz 75658607 +SHA256 29c0459b5d829ad8683ffad8ad9bcd4625024f00767ca2a5834542eb59886859 ParaView-2.6.1.tar.gz 75658607 diff --git a/sci-visualization/paraview/files/paraview-2.6.0-hdf5-zlib.patch b/sci-visualization/paraview/files/paraview-2.6.0-hdf5-zlib.patch new file mode 100644 index 000000000..31a4c1166 --- /dev/null +++ b/sci-visualization/paraview/files/paraview-2.6.0-hdf5-zlib.patch @@ -0,0 +1,16 @@ +diff -Naur ParaView-2.6.0/CMake/ParaViewCommon.cmake ParaView-2.6.0-new/CMake/ParaViewCommon.cmake +--- ParaView-2.6.0/CMake/ParaViewCommon.cmake 2006-10-24 11:12:48.000000000 -0400 ++++ ParaView-2.6.0-new/CMake/ParaViewCommon.cmake 2007-02-19 09:42:19.000000000 -0500 +@@ -293,7 +293,11 @@ + SET(VTKHDF5_INSTALL_NO_RUNTIME ${PV_INSTALL_NO_RUNTIME}) + SET(VTKHDF5_INSTALL_LIB_DIR ${PV_INSTALL_LIB_DIR}) + SET(PARAVIEW_HDF5_LIBRARIES vtkhdf5) +- SET(HDF5_ZLIB_HEADER "vtk_zlib.h") ++ IF(VTK_USE_SYSTEM_ZLIB) ++ SET(HDF5_ZLIB_HEADER "zlib.h") ++ ELSE(VTK_USE_SYSTEM_ZLIB) ++ SET(HDF5_ZLIB_HEADER "vtk_zlib.h") ++ ENDIF(VTK_USE_SYSTEM_ZLIB) + SET(HDF5_INCLUDE_DIR + ${ParaView_SOURCE_DIR}/Utilities/hdf5 + ${ParaView_BINARY_DIR}/Utilities/hdf5) diff --git a/sci-visualization/paraview/files/paraview-2.6.0-include.patch b/sci-visualization/paraview/files/paraview-2.6.0-include.patch new file mode 100644 index 000000000..35ac11719 --- /dev/null +++ b/sci-visualization/paraview/files/paraview-2.6.0-include.patch @@ -0,0 +1,11 @@ +diff -Naur ParaView-2.6.0/Utilities/VTKClientServer/CMakeLists.txt ParaView-2.6.0-new/Utilities/VTKClientServer/CMakeLists.txt +--- ParaView-2.6.0/Utilities/VTKClientServer/CMakeLists.txt 2006-10-24 11:12:49.000000000 -0400 ++++ ParaView-2.6.0-new/Utilities/VTKClientServer/CMakeLists.txt 2007-02-19 15:28:51.000000000 -0500 +@@ -21,6 +21,7 @@ + ${VTKCS_SOURCE_DIR} + ${VTKCS_BINARY_DIR} + ${VTK_INCLUDE_DIR} ++ ${VTK_SOURCE_DIR}/Infovis + ) + + # OpenGL include directories. diff --git a/sci-visualization/paraview/metadata.xml b/sci-visualization/paraview/metadata.xml new file mode 100644 index 000000000..dbe13846a --- /dev/null +++ b/sci-visualization/paraview/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <maintainer> + <email>markusle@gentoo.org</email> + <name>Markus Dittrich</name> + </maintainer> +<longdescription lang="en"> +ParaView is a powerful scientific visualization application, designed with the +need to visualize large data sets in mind. ParaView runs on +distributed and shared memory parallel as well as single processor +systems. Under the hood, ParaView uses the Visualization Toolkit as +the data processing and rendering engine and has a user interface +written using a unique blend of Tcl/Tk and C++. +</longdescription> +</pkgmetadata> diff --git a/sci-visualization/paraview/paraview-2.6.1.ebuild b/sci-visualization/paraview/paraview-2.6.1.ebuild new file mode 100644 index 000000000..3ddc57e9d --- /dev/null +++ b/sci-visualization/paraview/paraview-2.6.1.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit distutils eutils flag-o-matic toolchain-funcs versionator python + +MY_PN="${PN/p/P}" +MY_PN="${MY_PN/v/V}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="ParaView is a powerful scientific data visualization application" +HOMEPAGE="http://www.paraview.org" +SRC_URI="http://www.paraview.org/files/v${PV:0:3}/${MY_P}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="mpi python hdf5 doc examples ffmpeg threads" +RDEPEND="hdf5? ( sci-libs/hdf5 ) + doc? ( app-doc/doxygen ) + mpi? ( virtual/mpi ) + python? ( >=dev-lang/python-2.0 ) + ffmpeg? ( media-video/ffmpeg ) + media-libs/libpng + media-libs/jpeg + media-libs/tiff + dev-libs/expat + sys-libs/zlib + media-libs/freetype + virtual/opengl + dev-lang/tcl + dev-lang/tk + || ( x11-libs/libXmu virtual/x11 )" + +DEPEND="${RDEPEND} + >=dev-util/cmake-2.4.3" + +PVLIBDIR="$(get_libdir)/${MY_PN}-$(get_version_component_range 1-2)" +BUILDDIR="${WORKDIR}/build" +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + mkdir "${BUILDDIR}" || die "Failed to generate build directory" + cd "${S}" + epatch "${FILESDIR}"/${PN}-2.6.0-hdf5-zlib.patch + epatch "${FILESDIR}"/${PN}-2.6.0-include.patch +} + +src_compile() { + cd "${BUILDDIR}" + local CMAKE_VARIABLES="" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPV_INSTALL_LIB_DIR:PATH=/${PVLIBDIR}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_SKIP_RPATH:BOOL=YES" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_RPATH:BOOL=NO" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_INSTALL_PREFIX:PATH=/usr" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_SHARED_LIBS:BOOL=ON" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_JPEG:BOOL=ON" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_PNG:BOOL=ON" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_TIFF:BOOL=ON" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_ZLIB:BOOL=ON" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_EXPAT:BOOL=ON" + + if use hdf5; then + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_USE_SYSTEM_HDF5:BOOL=ON" + fi + + if use mpi; then + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_MPI:BOOL=ON" + fi + + if use python; then + python_version + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_WRAP_PYTHON:BOOL=ON" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPYTHON_INCLUDE_PATH:PATH=/usr/include/python${PYVER}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPYTHON_LIBRARY:PATH=/usr/$(get_libdir)/libpython${PYVER}.so" + fi + + if use ffmpeg; then + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_FFMPEG_ENCODER:BOOL=ON" + else + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_FFMPEG_ENCODER:BOOL=OFF" + fi + + use doc && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_DOCUMENTATION:BOOL=ON" + + if use examples; then + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_EXAMPLES:BOOL=ON" + else + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_EXAMPLES:BOOL=OFF" + fi + + if use threads; then + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_USE_PTHREADS:BOOL=ON" + else + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_USE_PTHREADS:BOOL=OFF" + fi + + cmake ${CMAKE_VARIABLES} ${S} \ + || die "cmake configuration failed" + + emake || die "emake failed" + +} + +src_install() { + cd ${BUILDDIR} + emake DESTDIR="${D}" install || die "emake install failed" + + # set up the environment + echo "LDPATH=/usr/${PVLIBDIR}" >> ${T}/40${PN} + doenvd ${T}/40${PN} +} |