summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2007-12-14 19:59:46 +0000
committerMarkus Dittrich <markusle@gentoo.org>2007-12-14 19:59:46 +0000
commitc20414bfb1108d1854c33f942c3df91f461b83fe (patch)
treeee53fbebd4f3dfeef80eeb8d790b12f26ee45346 /sci-visualization
parentdev-lang/mono-1.2.6: Version bump (bug #202191) (diff)
downloadhistorical-c20414bfb1108d1854c33f942c3df91f461b83fe.tar.gz
historical-c20414bfb1108d1854c33f942c3df91f461b83fe.tar.bz2
historical-c20414bfb1108d1854c33f942c3df91f461b83fe.zip
Version bump (fixes bug #183192).
Package-Manager: portage-2.1.4_rc9
Diffstat (limited to 'sci-visualization')
-rw-r--r--sci-visualization/paraview/ChangeLog9
-rw-r--r--sci-visualization/paraview/Manifest32
-rw-r--r--sci-visualization/paraview/files/digest-paraview-3.2.13
-rw-r--r--sci-visualization/paraview/files/paraview-3.2-libxml2-fix.patch46
-rw-r--r--sci-visualization/paraview/files/paraview-3.2-support-qt4.3.patch78
-rw-r--r--sci-visualization/paraview/paraview-2.6.2.ebuild8
-rw-r--r--sci-visualization/paraview/paraview-3.2.1.ebuild154
7 files changed, 317 insertions, 13 deletions
diff --git a/sci-visualization/paraview/ChangeLog b/sci-visualization/paraview/ChangeLog
index 8ba2c8ed9bdb..222deacecb6b 100644
--- a/sci-visualization/paraview/ChangeLog
+++ b/sci-visualization/paraview/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-visualization/paraview
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/ChangeLog,v 1.9 2007/08/19 04:09:45 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/ChangeLog,v 1.10 2007/12/14 19:59:46 markusle Exp $
+
+*paraview-3.2.1 (14 Dec 2007)
+
+ 14 Dec 2007; Markus Dittrich <markusle@gentoo.org>
+ +files/paraview-3.2-libxml2-fix.patch,
+ +files/paraview-3.2-support-qt4.3.patch, +paraview-3.2.1.ebuild:
+ Version bump (fixes bug #183192).
19 Aug 2007; Markus Dittrich <markusle@gentoo.org>
-files/paraview-2.4.4-hdf5-zlib.patch, -files/paraview-2.4.4-png.patch,
diff --git a/sci-visualization/paraview/Manifest b/sci-visualization/paraview/Manifest
index ab9a473227b3..cf7a7e0037de 100644
--- a/sci-visualization/paraview/Manifest
+++ b/sci-visualization/paraview/Manifest
@@ -6,15 +6,28 @@ AUX paraview-2.6.0-include.patch 476 RMD160 9f44a83f73da1accd7ea3d8c353f4de50849
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
+AUX paraview-3.2-libxml2-fix.patch 1774 RMD160 11ab022b0abca2a226deb648d48fe69cbf5c9352 SHA1 476d18040197100127184e1f547fc5840d8d0d45 SHA256 fda2240e2f0deaef39081e7375e7b99f967cbbe3aa99761f6940bb7c27c942e4
+MD5 1b3f2bb7038764d5dbb717fe48ada057 files/paraview-3.2-libxml2-fix.patch 1774
+RMD160 11ab022b0abca2a226deb648d48fe69cbf5c9352 files/paraview-3.2-libxml2-fix.patch 1774
+SHA256 fda2240e2f0deaef39081e7375e7b99f967cbbe3aa99761f6940bb7c27c942e4 files/paraview-3.2-libxml2-fix.patch 1774
+AUX paraview-3.2-support-qt4.3.patch 3835 RMD160 06d572100ee65f6f68c042bf7204b49c062c4e3a SHA1 ea7a30324e36ea9ed58129818769bafab30c078d SHA256 c2a412b2418f4b34e210851e6d1d7f7d5112d1ead93ddcadd5c8119ea40c160e
+MD5 753853145c6907d7f1a055a04c547796 files/paraview-3.2-support-qt4.3.patch 3835
+RMD160 06d572100ee65f6f68c042bf7204b49c062c4e3a files/paraview-3.2-support-qt4.3.patch 3835
+SHA256 c2a412b2418f4b34e210851e6d1d7f7d5112d1ead93ddcadd5c8119ea40c160e files/paraview-3.2-support-qt4.3.patch 3835
DIST ParaView-2.6.2.tar.gz 75658768 RMD160 068f3fbfea17166d34c488b4e6bd8d8fb07d3cd9 SHA1 ac5efb1c850e89b76dda4f28ecfa4575e45aa22e SHA256 de7cbd808e1ab1730ad87436d30c0a752096a65fe9aa6b82f35a39fc3b67d7c7
-EBUILD paraview-2.6.2.ebuild 3566 RMD160 3ebf8a28f53c8efb322386070a6ccd254bfae92f SHA1 b8a42f2b399b33cb9d76714059b068dec5510841 SHA256 0268a8aa26edea5ed5587ff0395f63a439e79a02b8292595def1df47f076c0b2
-MD5 05925edcb1d2fa52f81c9772bc5e3638 paraview-2.6.2.ebuild 3566
-RMD160 3ebf8a28f53c8efb322386070a6ccd254bfae92f paraview-2.6.2.ebuild 3566
-SHA256 0268a8aa26edea5ed5587ff0395f63a439e79a02b8292595def1df47f076c0b2 paraview-2.6.2.ebuild 3566
-MISC ChangeLog 2071 RMD160 6b8a85e6a819226ed505ffb8f9547c990b3f58a9 SHA1 ddf4beb55f0dc355384a24708519b3eb6ab77f3a SHA256 80e0a37abe6c466a652108a3fe7873a7300d76f518cf782d7328128a26bedadf
-MD5 bffd52e50664c1c59e0fb989c5eb03c4 ChangeLog 2071
-RMD160 6b8a85e6a819226ed505ffb8f9547c990b3f58a9 ChangeLog 2071
-SHA256 80e0a37abe6c466a652108a3fe7873a7300d76f518cf782d7328128a26bedadf ChangeLog 2071
+DIST paraview-3.2.1.tar.gz 21360301 RMD160 f7df024f4668901900b7633cf6dbe78337991b49 SHA1 a14e46cbeb7292f5511e1361afeb37455689c325 SHA256 d613d6a86f8a9173f42333760c9f0c29b5fcaa85554ba4b9bf61b6fddfae0cb9
+EBUILD paraview-2.6.2.ebuild 3572 RMD160 7025e7f2415be473138931ee219ddfed6512fe1b SHA1 6f55a32247c74ba6a00821f1d855d2617c8025cc SHA256 f3aec359c523386fab46b3eb98e1d023ac4a1c752db4d1b1358f20d9f7f0c7e0
+MD5 6d90511c96022f07053b537d0c57925a paraview-2.6.2.ebuild 3572
+RMD160 7025e7f2415be473138931ee219ddfed6512fe1b paraview-2.6.2.ebuild 3572
+SHA256 f3aec359c523386fab46b3eb98e1d023ac4a1c752db4d1b1358f20d9f7f0c7e0 paraview-2.6.2.ebuild 3572
+EBUILD paraview-3.2.1.ebuild 5237 RMD160 e8bdeaba963ee121ff94100dee2c778023e27def SHA1 e7be801cbca1492e30dc74617e9b5e022016f422 SHA256 8e16678c59b3a373f21ea73d8869da8d24164ae26614cc7f894805c29fb81fd0
+MD5 aa509051888b290364955cc233e0d99c paraview-3.2.1.ebuild 5237
+RMD160 e8bdeaba963ee121ff94100dee2c778023e27def paraview-3.2.1.ebuild 5237
+SHA256 8e16678c59b3a373f21ea73d8869da8d24164ae26614cc7f894805c29fb81fd0 paraview-3.2.1.ebuild 5237
+MISC ChangeLog 2301 RMD160 c4b4b4434dd9fe815f9d6b93d8df291459e27bd6 SHA1 98f1b8d87c61ec327c97b18165469ee3e70d6227 SHA256 b60fb2ec297cecefb6fd3c97ebded61d09b8f34310f6bae1de6e97253e5cd6d2
+MD5 ba8c49ee724bc46d4320b0fdee3cfb97 ChangeLog 2301
+RMD160 c4b4b4434dd9fe815f9d6b93d8df291459e27bd6 ChangeLog 2301
+SHA256 b60fb2ec297cecefb6fd3c97ebded61d09b8f34310f6bae1de6e97253e5cd6d2 ChangeLog 2301
MISC metadata.xml 254 RMD160 8e9562c9dd3bd05fdf2dd40bcc5b2ed3dbe9ab75 SHA1 53acb8f334765223c1030a8eb242d584ad376706 SHA256 131c089c8a699c3fb7e8b914f68af259e0b0ad341fba3a8f87827871fc7be701
MD5 faca3b9ef12d38400a0b53e1818ce89d metadata.xml 254
RMD160 8e9562c9dd3bd05fdf2dd40bcc5b2ed3dbe9ab75 metadata.xml 254
@@ -22,3 +35,6 @@ SHA256 131c089c8a699c3fb7e8b914f68af259e0b0ad341fba3a8f87827871fc7be701 metadata
MD5 fc652973ab139a3b51e0ccb1dd459bd3 files/digest-paraview-2.6.2 250
RMD160 693f2fd7cafa4baface4cbafe018b564ff493572 files/digest-paraview-2.6.2 250
SHA256 9390c73b64e01a4f284f7bcca56528ef4a5456f9a899050d12be85a0f578be88 files/digest-paraview-2.6.2 250
+MD5 08b0a0ecd8d9bece5540be149e4270f4 files/digest-paraview-3.2.1 250
+RMD160 07e4c103db4059f6cba99491127bf78020ff3a2d files/digest-paraview-3.2.1 250
+SHA256 d364c59620b10cde25166346be8f6a1bed117ae582ff7379e427f9509bf7fcfb files/digest-paraview-3.2.1 250
diff --git a/sci-visualization/paraview/files/digest-paraview-3.2.1 b/sci-visualization/paraview/files/digest-paraview-3.2.1
new file mode 100644
index 000000000000..1893330f965f
--- /dev/null
+++ b/sci-visualization/paraview/files/digest-paraview-3.2.1
@@ -0,0 +1,3 @@
+MD5 050830112537c477a1cb20370caded50 paraview-3.2.1.tar.gz 21360301
+RMD160 f7df024f4668901900b7633cf6dbe78337991b49 paraview-3.2.1.tar.gz 21360301
+SHA256 d613d6a86f8a9173f42333760c9f0c29b5fcaa85554ba4b9bf61b6fddfae0cb9 paraview-3.2.1.tar.gz 21360301
diff --git a/sci-visualization/paraview/files/paraview-3.2-libxml2-fix.patch b/sci-visualization/paraview/files/paraview-3.2-libxml2-fix.patch
new file mode 100644
index 000000000000..d3e69bc351d5
--- /dev/null
+++ b/sci-visualization/paraview/files/paraview-3.2-libxml2-fix.patch
@@ -0,0 +1,46 @@
+diff -Naur ParaView3.2.old/Utilities/Xdmf2/CMakeLists.txt ParaView3.2.new/Utilities/Xdmf2/CMakeLists.txt
+--- ParaView3.2.old/Utilities/Xdmf2/CMakeLists.txt 2007-10-15 14:15:47.000000000 -0400
++++ ParaView3.2.new/Utilities/Xdmf2/CMakeLists.txt 2007-11-17 17:51:51.000000000 -0500
+@@ -14,7 +14,7 @@
+ ENDIF(NOT BUILD_SHARED_LIBS)
+
+ SET(XDMF_BUILD_VTK 1)
+-SET(LIBXML2_LIBRARY vtklibxml2)
++SET(LIBXML2_LIBRARY xml2)
+
+ SET(HDF5_LIBRARY ${PARAVIEW_HDF5_LIBRARIES})
+ IF(VTK_USE_SYSTEM_EXPAT)
+@@ -91,6 +91,7 @@
+ ${ParaView_BINARY_DIR}/VTK/Utilities
+ ${ParaView_BINARY_DIR}/VTK/Utilities/vtklibxml2
+ ${HDF5_INCLUDE_DIR}
++ /usr/include/libxml2
+ )
+ SUBDIRS(Ice)
+ SUBDIRS(libsrc)
+diff -Naur ParaView3.2.old/VTK/Infovis/CMakeLists.txt ParaView3.2.new/VTK/Infovis/CMakeLists.txt
+--- ParaView3.2.old/VTK/Infovis/CMakeLists.txt 2007-10-15 14:16:13.000000000 -0400
++++ ParaView3.2.new/VTK/Infovis/CMakeLists.txt 2007-11-17 17:45:18.000000000 -0500
+@@ -3,7 +3,7 @@
+ SET(KIT_TCL_LIBS vtkWidgetsTCL)
+ SET(KIT_PYTHON_LIBS vtkWidgetsPythonD)
+ SET(KIT_JAVA_LIBS vtkWidgetsJava)
+-SET(KIT_LIBS vtkWidgets vtklibxml2)
++SET(KIT_LIBS vtkWidgets xml2)
+
+ SET( Kit_SRCS
+ vtkCommunity2DLayoutStrategy.cxx
+diff -Naur ParaView3.2.old/VTK/Infovis/vtkXMLTreeReader.cxx ParaView3.2.new/VTK/Infovis/vtkXMLTreeReader.cxx
+--- ParaView3.2.old/VTK/Infovis/vtkXMLTreeReader.cxx 2007-10-15 14:16:13.000000000 -0400
++++ ParaView3.2.new/VTK/Infovis/vtkXMLTreeReader.cxx 2007-11-17 15:22:10.000000000 -0500
+@@ -27,8 +27,8 @@
+ #include "vtkStringArray.h"
+ #include "vtkTree.h"
+
+-#include <vtklibxml2/libxml/parser.h>
+-#include <vtklibxml2/libxml/tree.h>
++#include <libxml/parser.h>
++#include <libxml/tree.h>
+
+ vtkCxxRevisionMacro(vtkXMLTreeReader, "$Revision: 1.1 $");
+ vtkStandardNewMacro(vtkXMLTreeReader);
diff --git a/sci-visualization/paraview/files/paraview-3.2-support-qt4.3.patch b/sci-visualization/paraview/files/paraview-3.2-support-qt4.3.patch
new file mode 100644
index 000000000000..afffbcd0bdf2
--- /dev/null
+++ b/sci-visualization/paraview/files/paraview-3.2-support-qt4.3.patch
@@ -0,0 +1,78 @@
+diff -Naur ParaView3.2.1/Applications/Client/CMakeLists.txt ParaView3.2.1.new/Applications/Client/CMakeLists.txt
+--- ParaView3.2.1/Applications/Client/CMakeLists.txt 2007-11-07 15:52:05.000000000 -0500
++++ ParaView3.2.1.new/Applications/Client/CMakeLists.txt 2007-11-27 18:07:41.000000000 -0500
+@@ -469,34 +469,34 @@
+ ENDIF(FFMPEG_${fmpglib}_LIBRARY)
+ ENDFOREACH(fmpglib)
+
+-SET (QTLIBLIST QTCORE QTGUI QTNETWORK QTXML QTTEST)
++#SET (QTLIBLIST QTCORE QTGUI QTNETWORK QTXML QTTEST)
+ # the variable and library names are not the same
+-IF (WIN32)
+- SET (QTLIBLIST ${QTLIBLIST} QTASSISTANTCLIENT)
+-ELSE (WIN32)
+- SET (QTLIBLIST ${QTLIBLIST} QTASSISTANT)
+-ENDIF (WIN32)
++#IF (WIN32)
++# SET (QTLIBLIST ${QTLIBLIST} QTASSISTANTCLIENT)
++#ELSE (WIN32)
++# SET (QTLIBLIST ${QTLIBLIST} QTASSISTANT)
++#ENDIF (WIN32)
+
+-IF(NOT Q_WS_MAC)
+- FOREACH(qtlib ${QTLIBLIST})
+- IF (NOT WIN32)
+- #INSTALL(FILES ${QT_${qtlib}_LIBRARY_RELEASE} DESTINATION ${PV_INSTALL_LIB_DIR_CM24})
+- GET_FILENAME_COMPONENT(QT_LIB_DIR_tmp ${QT_${qtlib}_LIBRARY_RELEASE} PATH)
+- GET_FILENAME_COMPONENT(QT_LIB_NAME_tmp ${QT_${qtlib}_LIBRARY_RELEASE} NAME)
+- FILE(GLOB QT_LIB_LIST RELATIVE ${QT_LIB_DIR_tmp} "${QT_${qtlib}_LIBRARY_RELEASE}*")
+- INSTALL(CODE "
+-MESSAGE(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR_CM24}/${QT_LIB_NAME_tmp}\")
+-EXECUTE_PROCESS (WORKING_DIRECTORY ${QT_LIB_DIR_tmp}
+- COMMAND tar c ${QT_LIB_LIST}
+- COMMAND tar -xC \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR_CM24})
+- " COMPONENT Runtime)
+- ELSE (NOT WIN32)
+- GET_FILENAME_COMPONENT(QT_DLL_PATH_tmp ${QT_QMAKE_EXECUTABLE} PATH)
+- INSTALL(FILES ${QT_DLL_PATH_tmp}/${qtlib}4.dll DESTINATION ${PV_INSTALL_BIN_DIR_CM24} COMPONENT Runtime)
+- ENDIF (NOT WIN32)
+-
+- ENDFOREACH(qtlib)
+-ENDIF(NOT Q_WS_MAC)
++#IF(NOT Q_WS_MAC)
++# FOREACH(qtlib ${QTLIBLIST})
++# IF (NOT WIN32)
++# #INSTALL(FILES ${QT_${qtlib}_LIBRARY_RELEASE} DESTINATION ${PV_INSTALL_LIB_DIR_CM24})
++# GET_FILENAME_COMPONENT(QT_LIB_DIR_tmp ${QT_${qtlib}_LIBRARY_RELEASE} PATH)
++# GET_FILENAME_COMPONENT(QT_LIB_NAME_tmp ${QT_${qtlib}_LIBRARY_RELEASE} NAME)
++# FILE(GLOB QT_LIB_LIST RELATIVE ${QT_LIB_DIR_tmp} "${QT_${qtlib}_LIBRARY_RELEASE}*")
++# INSTALL(CODE "
++#MESSAGE(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR_CM24}/${QT_LIB_NAME_tmp}\")
++#EXECUTE_PROCESS (WORKING_DIRECTORY ${QT_LIB_DIR_tmp}
++# COMMAND tar c ${QT_LIB_LIST}
++# COMMAND tar -xC \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR_CM24})
++# " COMPONENT Runtime)
++# ELSE (NOT WIN32)
++# GET_FILENAME_COMPONENT(QT_DLL_PATH_tmp ${QT_QMAKE_EXECUTABLE} PATH)
++# INSTALL(FILES ${QT_DLL_PATH_tmp}/${qtlib}4.dll DESTINATION ${PV_INSTALL_BIN_DIR_CM24} COMPONENT Runtime)
++# ENDIF (NOT WIN32)
++#
++# ENDFOREACH(qtlib)
++#ENDIF(NOT Q_WS_MAC)
+
+ # Hard-coded install rules for anything left to install. These should
+ # probably go to a local cmake file. Change to match the build system's
+diff -Naur ParaView3.2.1/Qt/CMakeLists.txt ParaView3.2.1.new/Qt/CMakeLists.txt
+--- ParaView3.2.1/Qt/CMakeLists.txt 2007-11-07 15:51:44.000000000 -0500
++++ ParaView3.2.1.new/Qt/CMakeLists.txt 2007-11-27 18:06:19.000000000 -0500
+@@ -13,10 +13,6 @@
+ # To make support of ParaView tractable, we only support a single version
+ # of Qt at one time. If you really want to use a newer version of Qt, you
+ # can delete this check, but you are on your own.
+-STRING(REGEX MATCH "^4\\.2\\.[0-9]+" qt_version_tmp "${QTVERSION}")
+-IF (NOT qt_version_tmp)
+- MESSAGE(SEND_ERROR "Qt ${QTVERSION} not supported. Please use Qt 4.2.")
+-ENDIF (NOT qt_version_tmp)
+
+ # help CMake fine QtUiTools on Mac (binary install)
+ IF(Q_WS_MAC AND QT4_FOUND AND QT_QTCORE_FOUND AND NOT QT_QTUITOOLS_FOUND)
diff --git a/sci-visualization/paraview/paraview-2.6.2.ebuild b/sci-visualization/paraview/paraview-2.6.2.ebuild
index d570c0604c85..ec166988ed55 100644
--- a/sci-visualization/paraview/paraview-2.6.2.ebuild
+++ b/sci-visualization/paraview/paraview-2.6.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/paraview-2.6.2.ebuild,v 1.1 2007/07/25 21:14:45 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/paraview-2.6.2.ebuild,v 1.2 2007/12/14 19:59:46 markusle Exp $
inherit distutils eutils flag-o-matic toolchain-funcs versionator python
@@ -94,7 +94,7 @@ src_compile() {
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_USE_PTHREADS:BOOL=OFF"
fi
- cmake ${CMAKE_VARIABLES} ${S} \
+ cmake ${CMAKE_VARIABLES} "${S}" \
|| die "cmake configuration failed"
emake || die "emake failed"
@@ -106,6 +106,6 @@ src_install() {
emake DESTDIR="${D}" install || die "make install failed"
# set up the environment
- echo "LDPATH=/usr/${PVLIBDIR}" >> ${T}/40${PN}
- doenvd ${T}/40${PN}
+ echo "LDPATH=/usr/${PVLIBDIR}" >> "${T}"/40${PN}
+ doenvd "${T}"/40${PN}
}
diff --git a/sci-visualization/paraview/paraview-3.2.1.ebuild b/sci-visualization/paraview/paraview-3.2.1.ebuild
new file mode 100644
index 000000000000..d8a41f9087b9
--- /dev/null
+++ b/sci-visualization/paraview/paraview-3.2.1.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/paraview-3.2.1.ebuild,v 1.1 2007/12/14 19:59:46 markusle Exp $
+
+inherit distutils eutils flag-o-matic toolchain-funcs versionator python
+
+MY_PV=3.2.1
+MY_MAJOR_PV=$(get_version_component_range 1-2)
+
+DESCRIPTION="ParaView is a powerful scientific data visualization application"
+HOMEPAGE="http://www.paraview.org"
+SRC_URI="http://www.${PN}.org/files/v3.2/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="paraview"
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+IUSE="mpi python hdf5 doc examples threads qt4"
+RDEPEND="hdf5? ( sci-libs/hdf5 )
+ doc? ( app-doc/doxygen )
+ mpi? ( sys-cluster/mpich )
+ python? ( >=dev-lang/python-2.0 )
+ qt4? ( >=x11-libs/qt-4.3.0 )
+ dev-libs/libxml2
+ media-libs/libpng
+ media-libs/jpeg
+ media-libs/tiff
+ dev-libs/expat
+ sys-libs/zlib
+ media-libs/freetype
+ virtual/opengl
+ sci-libs/netcdf
+ x11-libs/libXmu"
+
+DEPEND="${RDEPEND}
+ >=dev-util/cmake-2.4.5"
+
+PVLIBDIR="$(get_libdir)/${PN}-${MY_MAJOR_PV}"
+BUILDDIR="${WORKDIR}/build"
+S="${WORKDIR}"/ParaView${MY_PV}
+
+src_unpack() {
+ unpack ${A}
+ mkdir "${BUILDDIR}" || die "Failed to generate build directory"
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-${MY_MAJOR_PV}-support-qt4.3.patch
+ epatch "${FILESDIR}"/${PN}-${MY_MAJOR_PV}-libxml2-fix.patch
+
+ # rename paraview's assistant wrapper
+ if use qt4; then
+
+ # make sure we have qt3 support
+ if ! built_with_use =x11-libs/qt-4* qt3support; then
+ echo
+ eerror 'Please emerge qt4 with USE="qt3support"!'
+ die "qt4 setup error"
+ fi
+
+ sed -e "s:\"assistant\":\"paraview-assistant\":" \
+ -i Applications/Client/MainWindow.cxx \
+ || die "Failed to fix assistant wrapper call"
+ fi
+
+ # fix GL issues
+ sed -e "s:DEPTH_STENCIL_EXT:DEPTH_COMPONENT24:" \
+ -i VTK/Rendering/vtkOpenGLRenderWindow.cxx \
+ || die "Failed to fix GL issues."
+}
+
+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=OFF"
+ 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"
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF"
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DEXPAT_INCLUDE_DIR:PATH=/usr/include"
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DEXPAT_LIBRARY=/usr/$(get_libdir)/libexpat.so"
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DOPENGL_gl_LIBRARY=/usr/$(get_libdir)/libGL.so"
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DOPENGL_glu_LIBRARY=/usr/$(get_libdir)/libGLU.so"
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_GLEXT_FILE=/usr/include/GL/glext.h"
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_GLXEXT_FILE=/usr/include/GL/glxext.h"
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_COLOR_MAKEFILE:BOOL=TRUE"
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_LIBXML2:BOOL=ON"
+ # paraview uses a non exisiting call to boost's graph library
+ # maybe upstream needs to update
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_BOOST:BOOL=OFF"
+
+ # paraview used the deprecated img_convert(..) call; hence disable
+ # until upstream has switched to swscale
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_FFMPEG_ENCODER:BOOL=OFF"
+ 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
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_ENABLE_PYTHON:BOOL=ON"
+ 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 qt4; then
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_QT_GUI:BOOL=ON"
+ else
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_QT_GUI: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}"
+ make DESTDIR="${D}" install || die "make install failed"
+
+ # rename the assistant wrapper
+ if use qt4; then
+ mv "${D}"/usr/bin/assistant "${D}"/usr/bin/paraview-assistant \
+ || die "Failed to rename assistant wrapper"
+ chmod 0755 "${D}"/usr/$(get_libdir)/${PN}-${MY_MAJOR_PV}/assistant-real \
+ || die "Failed to change permissions on assistant wrapper"
+ fi
+
+ # set up the environment
+ echo "LDPATH=/usr/${PVLIBDIR}" >> "${T}"/40${PN}
+ doenvd "${T}"/40${PN}
+}
+