diff options
Diffstat (limited to 'sci-visualization')
15 files changed, 626 insertions, 357 deletions
diff --git a/sci-visualization/paraview/ChangeLog b/sci-visualization/paraview/ChangeLog index 67ec4f24a9aa..4857b82d4b22 100644 --- a/sci-visualization/paraview/ChangeLog +++ b/sci-visualization/paraview/ChangeLog @@ -1,6 +1,22 @@ # ChangeLog for sci-visualization/paraview # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/ChangeLog,v 1.33 2009/07/16 15:43:20 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/ChangeLog,v 1.34 2009/07/24 15:06:04 markusle Exp $ + +*paraview-3.6.1 (23 Jul 2009) + + 23 Jul 2009; Markus Dittrich <markusle@gentoo.org> + -files/paraview-2.6.0-hdf5-zlib.patch, + -files/paraview-2.6.0-include.patch, -files/paraview-2.6.2-tkImgGIF.patch, + -paraview-3.2.1.ebuild, -files/paraview-3.2-libxml2-fix.patch, + -files/paraview-3.2-support-qt4.3.patch, +paraview-3.6.1.ebuild, + +files/paraview-3.6.1-assistant.patch, + +files/paraview-3.6.1-hdf-1.8.3.patch, + +files/paraview-3.6.1-install-fix.patch, + +files/paraview-3.6.1-pointsprite-disable.patch, + +files/paraview-3.6.1-qt.patch, metadata.xml: + Version bump (bug #278563) and big cleanup. + A big "Thank you!" goes to Takuya OSHIMA for his great help + with the OpenFoam reader and Oliver Borm for testing. 16 Jul 2009; Markus Dittrich <markusle@gentoo.org> paraview-3.4.0.ebuild: More ebuild cleanups. diff --git a/sci-visualization/paraview/Manifest b/sci-visualization/paraview/Manifest index 076b03e4a01d..07124dd4b3ae 100644 --- a/sci-visualization/paraview/Manifest +++ b/sci-visualization/paraview/Manifest @@ -1,21 +1,22 @@ -AUX paraview-2.6.0-hdf5-zlib.patch 754 RMD160 6cfe179aae58f40d424e797384d0931e6c618721 SHA1 6431e39fa027f64abcf43a5c298d9ab0dd02a8b4 SHA256 535bc330528f61c62a6dac45395e704beb94a7dbdc687ed28e1f17ed47dbc69c -AUX paraview-2.6.0-include.patch 476 RMD160 9f44a83f73da1accd7ea3d8c353f4de50849b654 SHA1 57d67067fae5124b30dcce8317e0e7ae4a5a4976 SHA256 b8ebb52e9181c992561974de39d43a4c20398bed6760dda495dc82d45376fe77 -AUX paraview-2.6.2-tkImgGIF.patch 1333 RMD160 e941a279bbfa4a47c407f294f30e63ec8a1b59bd SHA1 e03435a33f287c1a656fd5b58eb347e6e724acfd SHA256 859a574a854195affde43eb1a835bbc1e0470d39e4ac8e3d2aa664cd6a806cd0 -AUX paraview-3.2-libxml2-fix.patch 1774 RMD160 11ab022b0abca2a226deb648d48fe69cbf5c9352 SHA1 476d18040197100127184e1f547fc5840d8d0d45 SHA256 fda2240e2f0deaef39081e7375e7b99f967cbbe3aa99761f6940bb7c27c942e4 -AUX paraview-3.2-support-qt4.3.patch 3835 RMD160 06d572100ee65f6f68c042bf7204b49c062c4e3a SHA1 ea7a30324e36ea9ed58129818769bafab30c078d SHA256 c2a412b2418f4b34e210851e6d1d7f7d5112d1ead93ddcadd5c8119ea40c160e AUX paraview-3.2.1-openmpi.patch 1651 RMD160 64025fcb74f62939e0b71f4cfc0de09e83aa38fb SHA1 f3863c718d8c2d9da4201b194b24fb75c2794269 SHA256 148d4e22419b31af9f1c357b478820a09bffff0eada0acd3758e6dca7da3209b AUX paraview-3.3_pre20080514-gcc4.3.patch 2242 RMD160 3a088e61318bf4e3faaedc401e678b0ff1fd0569 SHA1 9027ecbb8f984fa9eac950c22e46cd3f6a5bd258 SHA256 c5e6651134ce95fed5be4d3a3d3751aeaf936cc0b31977e1abbb9f38048c1052 AUX paraview-3.3_pre20080514-hdf5.patch 631 RMD160 d6832c1faac44cf6844c9fca7583fe546526b160 SHA1 49ac4b398cd56d766491843ad8e8310992b9a17d SHA256 be0097fb23d7c600f1642586dbd18c5fd0e9db50ee3539ce4fe637e066ce2721 AUX paraview-3.3_pre20080514-qt4.4.patch 3750 RMD160 1115e784a8e9dbafc65f2be11e277350ab0f4760 SHA1 a813195455b97c83d6b0ea50753c0003d0a955eb SHA256 34fdc79f8f52669a7285b5d0b12d6567b8b5489397f739571f1ef6094e0fda92 AUX paraview-3.4.0-qt4.4-5.patch 36215 RMD160 b30c7a14deabed70421af8e1a50041778e7cc116 SHA1 96793e34bacb51ed8c6b62cfeaa5ad57b6bb2709 SHA256 8371cf372464913e050d08518d467b72f9158872e4bf865be744b41a2e2b9058 -DIST paraview-3.2.1-OpenFOAM.patch.bz2 35956 RMD160 b4f6d3f64e6a0cc952b73d70b59168d33f09b7d5 SHA1 4b63ca09cae3b9197b840319e3bbb7b6594a66d3 SHA256 16bf34d126c65966de20644cb44685bf90cd81f97f9ddb8b6d1749ed97918c7e -DIST paraview-3.2.1.tar.gz 21360301 RMD160 f7df024f4668901900b7633cf6dbe78337991b49 SHA1 a14e46cbeb7292f5511e1361afeb37455689c325 SHA256 d613d6a86f8a9173f42333760c9f0c29b5fcaa85554ba4b9bf61b6fddfae0cb9 +AUX paraview-3.6.1-assistant.patch 1122 RMD160 4f6ecb6bd6105b3b4a5a7848782cfe92e6741d18 SHA1 81b47c0a30336fbfb45d55f2480474c994d7f820 SHA256 62fbe1310ee8f0c2405ff12cfe9edb50100e654678e7fb823f78084f284130d3 +AUX paraview-3.6.1-hdf-1.8.3.patch 2763 RMD160 f6a557565e75541e74b7052cdbd797e56e39f85b SHA1 d70f2b2715b3cebecb2db82d8c05b60fbb0220d1 SHA256 97247cc3fcb887de3bbf73a80ecda270c7f282802c365b21f20c518b76f2d3be +AUX paraview-3.6.1-install-fix.patch 6861 RMD160 4c65e8f95670a740b67146cbf943e8d6340e4857 SHA1 17d02c81884f5a1c56832a26026265e53aa18566 SHA256 aa991a873f3f692981df75ff20dc67d55ab38fc8de2ee3b11d05326419d4b2c1 +AUX paraview-3.6.1-pointsprite-disable.patch 617 RMD160 bef259c2e5edf7b3a8af32a204432d2761ac0834 SHA1 624f682127a5b382475bd0e7a65cab1b9c51c228 SHA256 fb413c38df3461c8840de776442de37171bfeabc42d83be8699d205d41b7b4d6 +AUX paraview-3.6.1-qt.patch 7544 RMD160 0396a656029cc1f9562e6b16eb739a8e7960565a SHA1 409c19532bc2ed48cb22c344e1d9db0960147e9a SHA256 d678173f19a393010949582e8353b3e9436fd02bea940a0df49cda90ed4874a4 DIST paraview-3.3_pre20080514-OpenFOAM-1.5.patch.bz2 55771 RMD160 4b40990c5180157ddb7b4945d77de6f8a8ed52ee SHA1 6a673c78222e0f58c36c0d99c604216301960daf SHA256 a85a9011d67c9a3f6ed0b0f7c5c5bf6a6ade8c9989dc48a48cb552ebbed4dcd6 DIST paraview-3.3_pre20080514.tar.bz2 19931958 RMD160 bcca09c71c84deaa721261fcb514897af052f360 SHA1 fcd8061d7a7679f635c06a1940a34d62acb77c23 SHA256 a1e75e5342bb95c18033ba2906514ba34693515b81a94d157a5928719fb9e4de DIST paraview-3.4.0-OpenFOAM-48.patch.bz2 58127 RMD160 f74f4596c62d6bdbfe72908c285168ab9ce9acff SHA1 e2c9859439868c6aefe767f742347e2530c54570 SHA256 2aa0289abd62fec9cf6fe9d8621779b6967a47c895e14d0c1e65420849be0c27 DIST paraview-3.4.0.tar.gz 25066839 RMD160 992c90712c057e1802fb55817ca2d7d49e526afb SHA1 08aca4cac9e557b763206ba6a5496487e335bcbc SHA256 27544f442e957e9aa60b32c674f2dcd84fffeecc9a40071ef6e305333413187d -EBUILD paraview-3.2.1.ebuild 5489 RMD160 92432a048cb9328fe9bed7c824cb8e8d16b97552 SHA1 169ac55063b2fddd349f7270b67f7871a5e499da SHA256 4536ed64e25666c4fbd68ead783d4fbb5b4c3939390413f3a17fad0425ac03af +DIST paraview-3.6.1-openfoam-gpl-r120.patch.bz2 3180 RMD160 224b93d767864043c26eff12fe8843d82a9c8d54 SHA1 683d29cb4e05641928435685abcf96aa296e8794 SHA256 b05e3c9ce20d149ad40f7f3e9bc63f7e197f83eeae7fca6aad6e060c3d585fc4 +DIST paraview-3.6.1-openfoam-r120.patch.bz2 58046 RMD160 dec759a9d0bebd83bee6d998cefb25ab0b74ead2 SHA1 83dad388583da99600876055424df3cf7f87b4a5 SHA256 047a1908b7995ef5569c8fcf0b4e2c7aa8239b11b08f0854bbee7cabf9ac026a +DIST paraview-3.6.1.tar.gz 27119089 RMD160 8892434c1096d18e83bce6c62f1a7b07a8be1f0a SHA1 aedbe3bf8d831816972129c185565b582e331b53 SHA256 df71c052a4f85a568d3e4a4b55abb257c976795492d3991e32fe4100c3fd8a4e EBUILD paraview-3.3_pre20080514.ebuild 5811 RMD160 a9d6d865780f1186d87681bedc80e9c14183224c SHA1 98ab4cf8ed0b47678007c9d98d035c4922eeccb6 SHA256 33b3e81eec889e84fd582fe878a24664137c134d95f535ccbe6756992b348a04 EBUILD paraview-3.4.0.ebuild 5365 RMD160 032b9da72489a5c737178265705cabd47859e710 SHA1 afe3da6fba526a1b071fbbd229879b6d682e669b SHA256 90dad827174b7e8e254aee4425c7daa4b3432ac9490ab1ae3b6496a98cfe15ed -MISC ChangeLog 6447 RMD160 7a885e9abf494321683ab4bb1be26c9e3f2fefe8 SHA1 9303f17e41592ab1405b1bc3f407f541bd4f8199 SHA256 6c42e7f5c883009a7aa60da76570f0465413e48a3e0f653ee9fafcdcb80c02cc -MISC metadata.xml 254 RMD160 8e9562c9dd3bd05fdf2dd40bcc5b2ed3dbe9ab75 SHA1 53acb8f334765223c1030a8eb242d584ad376706 SHA256 131c089c8a699c3fb7e8b914f68af259e0b0ad341fba3a8f87827871fc7be701 +EBUILD paraview-3.6.1.ebuild 8769 RMD160 bc394986fd226e423ed0a2d1b6fa55c8b05873bd SHA1 8d1f43b26431606ec08333c64cb137cb5fc43a50 SHA256 f96ccae063582207612d505bf3a81da3472ec12dd3db2894af800e33e703a25b +MISC ChangeLog 7170 RMD160 c178ff26780ba4aa13c5a189544e65b5f15264f9 SHA1 a468148a3c1f041120b65a912bae8287698d416b SHA256 1a719cf61a05f80f817dcf8dd6cb8a02f228aa98cafa78db20822dbcb29392f6 +MISC metadata.xml 399 RMD160 131a5c96291217e416af0d726c40ed5624e3bf7b SHA1 f4b99deaa2bb2bf39c32b16fb8bfff81fb14759d SHA256 8c9a511c364dce29e73c21df5a6e51e94817e33e16a27127bba8f4ec9f3ba9cb 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 deleted file mode 100644 index 31a4c1166c4c..000000000000 --- a/sci-visualization/paraview/files/paraview-2.6.0-hdf5-zlib.patch +++ /dev/null @@ -1,16 +0,0 @@ -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 deleted file mode 100644 index 35ac11719393..000000000000 --- a/sci-visualization/paraview/files/paraview-2.6.0-include.patch +++ /dev/null @@ -1,11 +0,0 @@ -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/files/paraview-2.6.2-tkImgGIF.patch b/sci-visualization/paraview/files/paraview-2.6.2-tkImgGIF.patch deleted file mode 100644 index 966d5d79d04c..000000000000 --- a/sci-visualization/paraview/files/paraview-2.6.2-tkImgGIF.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff -Naur ParaView-2.6.2/Utilities/TclTk/tk8.4.13/generic/tkImgGIF.c ParaView-2.6.2.new/Utilities/TclTk/tk8.4.13/generic/tkImgGIF.c ---- ParaView-2.6.2/Utilities/TclTk/tk8.4.13/generic/tkImgGIF.c 2006-05-06 13:33:55.000000000 -0500 -+++ ParaView-2.6.2.new/Utilities/TclTk/tk8.4.13/generic/tkImgGIF.c 2008-02-15 06:01:43.000000000 -0500 -@@ -826,6 +826,12 @@ - Tcl_PosixError(interp), (char *) NULL); - return TCL_ERROR; - } -+ -+ if (initialCodeSize > MAX_LWZ_BITS) { -+ Tcl_SetResult(interp, "malformed image", TCL_STATIC); -+ return TCL_ERROR; -+ } -+ - if (transparent != -1) { - cmap[transparent][CM_RED] = 0; - cmap[transparent][CM_GREEN] = 0; -diff -Naur ParaView-2.6.2/Utilities/TclTk/tk8.4.5/generic/tkImgGIF.c ParaView-2.6.2.new/Utilities/TclTk/tk8.4.5/generic/tkImgGIF.c ---- ParaView-2.6.2/Utilities/TclTk/tk8.4.5/generic/tkImgGIF.c 2003-12-19 10:38:18.000000000 -0500 -+++ ParaView-2.6.2.new/Utilities/TclTk/tk8.4.5/generic/tkImgGIF.c 2008-02-15 06:01:32.000000000 -0500 -@@ -824,6 +824,12 @@ - Tcl_PosixError(interp), (char *) NULL); - return TCL_ERROR; - } -+ -+ if (initialCodeSize > MAX_LWZ_BITS) { -+ Tcl_SetResult(interp, "malformed image", TCL_STATIC); -+ return TCL_ERROR; -+ } -+ - if (transparent != -1) { - cmap[transparent][CM_RED] = 0; - cmap[transparent][CM_GREEN] = 0; diff --git a/sci-visualization/paraview/files/paraview-3.2-libxml2-fix.patch b/sci-visualization/paraview/files/paraview-3.2-libxml2-fix.patch deleted file mode 100644 index d3e69bc351d5..000000000000 --- a/sci-visualization/paraview/files/paraview-3.2-libxml2-fix.patch +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index afffbcd0bdf2..000000000000 --- a/sci-visualization/paraview/files/paraview-3.2-support-qt4.3.patch +++ /dev/null @@ -1,78 +0,0 @@ -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/files/paraview-3.6.1-assistant.patch b/sci-visualization/paraview/files/paraview-3.6.1-assistant.patch new file mode 100644 index 000000000000..a48c9b53a80a --- /dev/null +++ b/sci-visualization/paraview/files/paraview-3.6.1-assistant.patch @@ -0,0 +1,24 @@ +diff -Naur ParaView3/Applications/OverView/Core/MainWindow.cxx ParaView3.new/Applications/OverView/Core/MainWindow.cxx +--- ParaView3/Applications/OverView/Core/MainWindow.cxx 2009-07-20 15:36:12.000000000 -0400 ++++ ParaView3.new/Applications/OverView/Core/MainWindow.cxx 2009-07-22 23:42:53.000000000 -0400 +@@ -933,7 +933,7 @@ + QString assistantExe;
+ QString profileFile;
+
+- const char* assistantName = "assistant";
++ const char* assistantName = "paraview-assistant";
+ #if defined(Q_WS_WIN)
+ const char* binDir = "\\";
+ const char* binDir1 = "\\..\\";
+diff -Naur ParaView3/Qt/Components/pqClientMainWindow.cxx ParaView3.new/Qt/Components/pqClientMainWindow.cxx +--- ParaView3/Qt/Components/pqClientMainWindow.cxx 2009-07-20 15:37:39.000000000 -0400 ++++ ParaView3.new/Qt/Components/pqClientMainWindow.cxx 2009-07-22 23:44:37.000000000 -0400 +@@ -989,7 +989,7 @@ + QString assistantExe;
+ QString profileFile;
+
+- const char* assistantName = "assistant";
++ const char* assistantName = "paraview-assistant";
+ #if defined(Q_WS_WIN)
+ const char* extString = ".exe";
+ const char* binDir = "\\";
diff --git a/sci-visualization/paraview/files/paraview-3.6.1-hdf-1.8.3.patch b/sci-visualization/paraview/files/paraview-3.6.1-hdf-1.8.3.patch new file mode 100644 index 000000000000..0b966a724c18 --- /dev/null +++ b/sci-visualization/paraview/files/paraview-3.6.1-hdf-1.8.3.patch @@ -0,0 +1,71 @@ +diff -Naur ParaView3/Utilities/Xdmf2/libsrc/XdmfH5Driver.cxx ParaView3.new/Utilities/Xdmf2/libsrc/XdmfH5Driver.cxx +--- ParaView3/Utilities/Xdmf2/libsrc/XdmfH5Driver.cxx 2009-07-20 15:39:10.000000000 -0400 ++++ ParaView3.new/Utilities/Xdmf2/libsrc/XdmfH5Driver.cxx 2009-07-22 16:05:22.000000000 -0400 +@@ -132,9 +132,15 @@ + static herr_t H5FD_dsm_flush(H5FD_t *_file);
+ #endif
+ static int H5FD_dsm_cmp(const H5FD_t *_f1, const H5FD_t *_f2);
++#ifdef H5_USE_16_API
++static haddr_t H5FD_dsm_get_eoa(const H5FD_t *_file, H5FD_mem_t);
++static herr_t H5FD_dsm_set_eoa(H5FD_t *_file, H5FD_mem_t, haddr_t addr);
++static haddr_t H5FD_dsm_get_eof(const H5FD_t *_file);
++#else
+ static haddr_t H5FD_dsm_get_eoa(H5FD_t *_file);
+ static herr_t H5FD_dsm_set_eoa(H5FD_t *_file, haddr_t addr);
+ static haddr_t H5FD_dsm_get_eof(H5FD_t *_file);
++#endif
+ static herr_t H5FD_dsm_read(H5FD_t *_file, H5FD_mem_t type, hid_t fapl_id, haddr_t addr,
+ DSM_HSIZE_T size, void *buf);
+ static herr_t H5FD_dsm_write(H5FD_t *_file, H5FD_mem_t type, hid_t fapl_id, haddr_t addr,
+@@ -159,6 +165,7 @@ + H5FD_dsm_close, /*close */
+ H5FD_dsm_cmp, /*cmp */
+ NULL, /*query */
++ NULL, /*type map */
+ NULL, /*alloc */
+ NULL, /*free */
+ H5FD_dsm_get_eoa, /*get_eoa */
+@@ -168,6 +175,7 @@ + H5FD_dsm_read, /*read */
+ H5FD_dsm_write, /*write */
+ NULL, /*flush */
++ NULL, /*truncate */
+ NULL, /*lock */
+ NULL, /*unlock */
+ H5FD_FLMAP_SINGLE /*fl_map */
+@@ -594,7 +602,11 @@ + *-------------------------------------------------------------------------
+ */
+ static haddr_t
++#ifdef H5_USE_16_API
++H5FD_dsm_get_eoa(const H5FD_t *_file, H5FD_mem_t)
++#else
+ H5FD_dsm_get_eoa(H5FD_t *_file)
++#endif
+ {
+ H5FD_dsm_t *file = (H5FD_dsm_t*)_file;
+
+@@ -622,7 +634,11 @@ + *-------------------------------------------------------------------------
+ */
+ static herr_t
++#ifdef H5_USE_16_API
++H5FD_dsm_set_eoa(H5FD_t *_file, H5FD_mem_t, haddr_t addr)
++#else
+ H5FD_dsm_set_eoa(H5FD_t *_file, haddr_t addr)
++#endif
+ {
+ H5FD_dsm_t *file = (H5FD_dsm_t*)_file;
+
+@@ -663,7 +679,11 @@ + *-------------------------------------------------------------------------
+ */
+ static haddr_t
++#ifdef H5_USE_16_API
++H5FD_dsm_get_eof(const H5FD_t *_file)
++#else
+ H5FD_dsm_get_eof(H5FD_t *_file)
++#endif
+ {
+ H5FD_dsm_t *file = (H5FD_dsm_t*)_file;
+
diff --git a/sci-visualization/paraview/files/paraview-3.6.1-install-fix.patch b/sci-visualization/paraview/files/paraview-3.6.1-install-fix.patch new file mode 100644 index 000000000000..f61627138e42 --- /dev/null +++ b/sci-visualization/paraview/files/paraview-3.6.1-install-fix.patch @@ -0,0 +1,127 @@ +diff -ru ParaView3/Applications/Client/CMakeLists.txt ParaView3.new/Applications/Client/CMakeLists.txt +--- ParaView3/Applications/Client/CMakeLists.txt 2009-07-20 15:36:01.000000000 -0400 ++++ ParaView3.new/Applications/Client/CMakeLists.txt 2009-07-22 18:35:55.000000000 -0400 +@@ -499,17 +499,17 @@ +
+ # Install system libraries on Linux (will not work on any other Unix
+ # yet)
+-FOREACH(fmpglib avcodec avformat avutil)
+- IF(FFMPEG_${fmpglib}_LIBRARY)
+- GET_FILENAME_COMPONENT(FFMPEG_LIB_DIR_tmp ${FFMPEG_${fmpglib}_LIBRARY} PATH)
+- GET_FILENAME_COMPONENT(FFMPEG_LIB_NAME_tmp ${FFMPEG_${fmpglib}_LIBRARY} NAME)
+- FILE(GLOB FFMPEG_LIB_LIST RELATIVE ${FFMPEG_LIB_DIR_tmp} "${FFMPEG_${fmpglib}_LIBRARY}*")
+- INSTALL(CODE "
+-MESSAGE(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR}/${FFMPEG_LIB_NAME_tmp}\")
+-EXECUTE_PROCESS (WORKING_DIRECTORY ${FFMPEG_LIB_DIR_tmp}
+- COMMAND tar c ${FFMPEG_LIB_LIST}
+- COMMAND tar -xC \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR})
+- " COMPONENT Runtime)
++#FOREACH(fmpglib avcodec avformat avutil)
++# IF(FFMPEG_${fmpglib}_LIBRARY)
++# GET_FILENAME_COMPONENT(FFMPEG_LIB_DIR_tmp ${FFMPEG_${fmpglib}_LIBRARY} PATH)
++# GET_FILENAME_COMPONENT(FFMPEG_LIB_NAME_tmp ${FFMPEG_${fmpglib}_LIBRARY} NAME)
++# FILE(GLOB FFMPEG_LIB_LIST RELATIVE ${FFMPEG_LIB_DIR_tmp} "${FFMPEG_${fmpglib}_LIBRARY}*")
++# INSTALL(CODE "
++#MESSAGE(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR}/${FFMPEG_LIB_NAME_tmp}\")
++#EXECUTE_PROCESS (WORKING_DIRECTORY ${FFMPEG_LIB_DIR_tmp}
++# COMMAND tar c ${FFMPEG_LIB_LIST}
++# COMMAND tar -xC \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR})
++# " COMPONENT Runtime)
+ #INSTALL(FILES ${FFMPEG_${fmpglib}_LIBRARY} DESTINATION ${PV_INSTALL_LIB_DIR})
+
+ ENDIF(FFMPEG_${fmpglib}_LIBRARY)
+@@ -527,26 +527,26 @@ + SET (QTLIBLIST ${QTLIBLIST} QTOPENGL)
+ ENDIF (VTK_USE_QVTK_QTOPENGL)
+
+-IF(NOT Q_WS_MAC)
+- FOREACH(qtlib ${QTLIBLIST})
+- IF (NOT WIN32)
+- #INSTALL(FILES ${QT_${qtlib}_LIBRARY_RELEASE} DESTINATION ${PV_INSTALL_LIB_DIR})
+- 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}/${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})
+- " 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} 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})
++# 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}/${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})
++# " 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} 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 -ru ParaView3/Applications/StreamingParaView/CMakeLists.txt ParaView3.new/Applications/StreamingParaView/CMakeLists.txt +--- ParaView3/Applications/StreamingParaView/CMakeLists.txt 2009-07-20 15:36:15.000000000 -0400 ++++ ParaView3.new/Applications/StreamingParaView/CMakeLists.txt 2009-07-22 18:36:49.000000000 -0400 +@@ -198,26 +198,26 @@ + SET (QTLIBLIST ${QTLIBLIST} QTASSISTANT)
+ ENDIF (WIN32)
+
+-IF(NOT Q_WS_MAC)
+- FOREACH(qtlib ${QTLIBLIST})
+- IF (NOT WIN32)
++#IF(NOT Q_WS_MAC)
++# FOREACH(qtlib ${QTLIBLIST})
++# IF (NOT WIN32)
+ #INSTALL(FILES ${QT_${qtlib}_LIBRARY_RELEASE} DESTINATION ${PV_INSTALL_LIB_DIR})
+- 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}/${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})
+- " 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} COMPONENT Runtime)
+- ENDIF (NOT WIN32)
++ # 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}/${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})
++ # " 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} COMPONENT Runtime)
++ # ENDIF (NOT WIN32)
+
+- ENDFOREACH(qtlib)
+-ENDIF(NOT Q_WS_MAC)
++ # 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 --git a/sci-visualization/paraview/files/paraview-3.6.1-pointsprite-disable.patch b/sci-visualization/paraview/files/paraview-3.6.1-pointsprite-disable.patch new file mode 100644 index 000000000000..5d6cdd053fa8 --- /dev/null +++ b/sci-visualization/paraview/files/paraview-3.6.1-pointsprite-disable.patch @@ -0,0 +1,13 @@ +diff -Naur ParaView3/Plugins/PointSprite/Examples/Rendering/Cxx/CMakeLists.txt ParaView3.new/Plugins/PointSprite/Examples/Rendering/Cxx/CMakeLists.txt +--- ParaView3/Plugins/PointSprite/Examples/Rendering/Cxx/CMakeLists.txt 2009-07-20 15:37:07.000000000 -0400 ++++ ParaView3.new/Plugins/PointSprite/Examples/Rendering/Cxx/CMakeLists.txt 2009-07-21 11:42:56.000000000 -0400 +@@ -5,6 +5,6 @@ +
+ target_link_libraries(${exe} CSCS_PointSprite_Rendering vtkIO)
+
+-install(TARGETS ${exe}
+- RUNTIME DESTINATION ${PROJECT_BINARY_DIR}
+-)
++#install(TARGETS ${exe}
++# RUNTIME DESTINATION ${PROJECT_BINARY_DIR}
++#)
diff --git a/sci-visualization/paraview/files/paraview-3.6.1-qt.patch b/sci-visualization/paraview/files/paraview-3.6.1-qt.patch new file mode 100644 index 000000000000..bca40bc4a00f --- /dev/null +++ b/sci-visualization/paraview/files/paraview-3.6.1-qt.patch @@ -0,0 +1,147 @@ +diff -Naur ParaView3/Applications/Client/CMakeLists.txt ParaView3.new/Applications/Client/CMakeLists.txt +--- ParaView3/Applications/Client/CMakeLists.txt 2009-07-20 15:36:01.000000000 -0400 ++++ ParaView3.new/Applications/Client/CMakeLists.txt 2009-07-22 22:38:09.000000000 -0400 +@@ -499,54 +499,54 @@ +
+ # Install system libraries on Linux (will not work on any other Unix
+ # yet)
+-FOREACH(fmpglib avcodec avformat avutil)
+- IF(FFMPEG_${fmpglib}_LIBRARY)
+- GET_FILENAME_COMPONENT(FFMPEG_LIB_DIR_tmp ${FFMPEG_${fmpglib}_LIBRARY} PATH)
+- GET_FILENAME_COMPONENT(FFMPEG_LIB_NAME_tmp ${FFMPEG_${fmpglib}_LIBRARY} NAME)
+- FILE(GLOB FFMPEG_LIB_LIST RELATIVE ${FFMPEG_LIB_DIR_tmp} "${FFMPEG_${fmpglib}_LIBRARY}*")
+- INSTALL(CODE "
+-MESSAGE(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR}/${FFMPEG_LIB_NAME_tmp}\")
+-EXECUTE_PROCESS (WORKING_DIRECTORY ${FFMPEG_LIB_DIR_tmp}
+- COMMAND tar c ${FFMPEG_LIB_LIST}
+- COMMAND tar -xC \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR})
+- " COMPONENT Runtime)
+- #INSTALL(FILES ${FFMPEG_${fmpglib}_LIBRARY} DESTINATION ${PV_INSTALL_LIB_DIR})
++#FOREACH(fmpglib avcodec avformat avutil)
++# IF(FFMPEG_${fmpglib}_LIBRARY)
++# GET_FILENAME_COMPONENT(FFMPEG_LIB_DIR_tmp ${FFMPEG_${fmpglib}_LIBRARY} PATH)
++# GET_FILENAME_COMPONENT(FFMPEG_LIB_NAME_tmp ${FFMPEG_${fmpglib}_LIBRARY} NAME)
++# FILE(GLOB FFMPEG_LIB_LIST RELATIVE ${FFMPEG_LIB_DIR_tmp} "${FFMPEG_${fmpglib}_LIBRARY}*")
++# INSTALL(CODE "
++#MESSAGE(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR}/${FFMPEG_LIB_NAME_tmp}\")
++#EXECUTE_PROCESS (WORKING_DIRECTORY ${FFMPEG_LIB_DIR_tmp}
++# COMMAND tar c ${FFMPEG_LIB_LIST}
++# COMMAND tar -xC \${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR})
++# " COMPONENT Runtime)
++# #INSTALL(FILES ${FFMPEG_${fmpglib}_LIBRARY} DESTINATION ${PV_INSTALL_LIB_DIR})
+
+- ENDIF(FFMPEG_${fmpglib}_LIBRARY)
+-ENDFOREACH(fmpglib)
++# ENDIF(FFMPEG_${fmpglib}_LIBRARY)
++#ENDFOREACH(fmpglib)
+
+-SET (QTLIBLIST QTCORE QTGUI QTNETWORK QTXML QTTEST QTSQL)
++#SET (QTLIBLIST QTCORE QTGUI QTNETWORK QTXML QTTEST QTSQL)
+ # 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 (VTK_USE_QVTK_QTOPENGL)
+ SET (QTLIBLIST ${QTLIBLIST} QTOPENGL)
+ ENDIF (VTK_USE_QVTK_QTOPENGL)
+
+-IF(NOT Q_WS_MAC)
+- FOREACH(qtlib ${QTLIBLIST})
+- IF (NOT WIN32)
+- #INSTALL(FILES ${QT_${qtlib}_LIBRARY_RELEASE} DESTINATION ${PV_INSTALL_LIB_DIR})
+- 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}/${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})
+- " 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} COMPONENT Runtime)
+- ENDIF (NOT WIN32)
++#IF(NOT Q_WS_MAC)
++# FOREACH(qtlib ${QTLIBLIST})
++# IF (NOT WIN32)
++# #INSTALL(FILES ${QT_${qtlib}_LIBRARY_RELEASE} DESTINATION ${PV_INSTALL_LIB_DIR})
++# 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}/${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})
++# " 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} COMPONENT Runtime)
++# ENDIF (NOT WIN32)
+
+- ENDFOREACH(qtlib)
+-ENDIF(NOT Q_WS_MAC)
++# 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/Applications/StreamingParaView/CMakeLists.txt ParaView3.new/Applications/StreamingParaView/CMakeLists.txt +--- ParaView3/Applications/StreamingParaView/CMakeLists.txt 2009-07-20 15:36:15.000000000 -0400 ++++ ParaView3.new/Applications/StreamingParaView/CMakeLists.txt 2009-07-22 22:39:14.000000000 -0400 +@@ -198,26 +198,26 @@ + 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})
+- 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}/${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})
+- " 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} 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})
++# 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}/${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})
++# " 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} 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 --git a/sci-visualization/paraview/metadata.xml b/sci-visualization/paraview/metadata.xml index 22633b1360bc..9c2b0e6361c2 100644 --- a/sci-visualization/paraview/metadata.xml +++ b/sci-visualization/paraview/metadata.xml @@ -6,4 +6,8 @@ <email>markusle@gentoo.org</email> <name>Markus Dittrich</name> </maintainer> + <use> + <flag name='plugins'>Build and install additional plugins</flag> + <flag name='boost'>Enable the usage of dev-libs/boost</flag> + </use> </pkgmetadata> diff --git a/sci-visualization/paraview/paraview-3.2.1.ebuild b/sci-visualization/paraview/paraview-3.2.1.ebuild deleted file mode 100644 index 910f4078f646..000000000000 --- a/sci-visualization/paraview/paraview-3.2.1.ebuild +++ /dev/null @@ -1,163 +0,0 @@ -# Copyright 1999-2008 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.9 2008/07/28 21:44:46 carlo Exp $ - -EAPI="1" - -inherit distutils eutils flag-o-matic toolchain-funcs versionator python qt4 - -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 - mirror://gentoo/${P}-OpenFOAM.patch.bz2" - -LICENSE="paraview" -KEYWORDS="~x86 ~amd64" -SLOT="0" -IUSE="mpi python hdf5 doc examples threads qt4" -RDEPEND="hdf5? ( sci-libs/hdf5 ) - mpi? ( || ( - sys-cluster/openmpi - sys-cluster/mpich2 ) ) - python? ( >=dev-lang/python-2.0 ) - qt4? ( =x11-libs/qt-4.3*:4 ) - 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} - doc? ( app-doc/doxygen ) - >=dev-util/cmake-2.4.5" - -PVLIBDIR="$(get_libdir)/${PN}-${MY_MAJOR_PV}" -BUILDDIR="${WORKDIR}/build" -S="${WORKDIR}"/ParaView${MY_PV} - -QT4_BUILT_WITH_USE_CHECK="qt3support" - -pkg_setup() { - use qt4 && qt4_pkg_setup - if use mpi && has_version sys-cluster/mpich2; then - if ! built_with_use sys-cluster/mpich2 cxx; then - die "Please re-emerge sys-cluster/mpich2 with USE=\"cxx\"" - fi - fi -} - -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 - epatch "${DISTDIR}"/${P}-OpenFOAM.patch.bz2 - epatch "${FILESDIR}"/${P}-openmpi.patch - - # rename paraview's assistant wrapper - if use qt4; then - 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} -DPARAVIEW_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} -} diff --git a/sci-visualization/paraview/paraview-3.6.1.ebuild b/sci-visualization/paraview/paraview-3.6.1.ebuild new file mode 100644 index 000000000000..69efb758d11b --- /dev/null +++ b/sci-visualization/paraview/paraview-3.6.1.ebuild @@ -0,0 +1,212 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/paraview-3.6.1.ebuild,v 1.1 2009/07/24 15:06:04 markusle Exp $ + +EAPI="2" + +inherit distutils eutils flag-o-matic toolchain-funcs versionator python qt4 + +MAIN_PV=$(get_major_version) +MAJOR_PV=$(get_version_component_range 1-2) + +DESCRIPTION="ParaView is a powerful scientific data visualization application" +HOMEPAGE="http://www.paraview.org" +SRC_URI="mirror://gentoo/${P}.tar.gz + mirror://gentoo/${P}-openfoam-gpl-r120.patch.bz2 + mirror://gentoo/${P}-openfoam-r120.patch.bz2" + +LICENSE="paraview GPL-2" +KEYWORDS="~x86 ~amd64" +SLOT="0" +IUSE="mpi python hdf5 doc examples threads qt4 plugins boost" +RDEPEND="hdf5? ( sci-libs/hdf5 ) + mpi? ( || ( + sys-cluster/openmpi + sys-cluster/mpich2[cxx] ) ) + python? ( >=dev-lang/python-2.0 ) + qt4? ( x11-libs/qt-gui:4 + x11-libs/qt-qt3support:4 + x11-libs/qt-assistant:4 ) + boost? ( >=dev-libs/boost-1.37 ) + dev-libs/libxml2 + media-libs/libpng + media-libs/jpeg + media-libs/tiff + media-video/ffmpeg + dev-libs/expat + sys-libs/zlib + media-libs/freetype + >=app-admin/eselect-opengl-1.0.6-r1 + virtual/opengl + sci-libs/netcdf + x11-libs/libXmu" + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + >=dev-util/cmake-2.6.4" + +PVLIBDIR="$(get_libdir)/${PN}-${MAJOR_PV}" +BUILDDIR="${WORKDIR}/build" +S="${WORKDIR}"/ParaView${MAIN_PV} + +src_prepare() { + mkdir "${BUILDDIR}" || die "Failed to generate build directory" + epatch "${FILESDIR}"/${P}-qt.patch + epatch "${FILESDIR}"/${P}-pointsprite-disable.patch + epatch "${FILESDIR}"/${P}-assistant.patch + epatch "${DISTDIR}"/${P}-openfoam-r120.patch.bz2 + epatch "${DISTDIR}"/${P}-openfoam-gpl-r120.patch.bz2 + + use hdf5 && epatch "${FILESDIR}"/${P}-hdf-1.8.3.patch + + # 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" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_StreamingParaView:BOOL=ON" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_OFFSCREEN=TRUE" + + # FIXME: compiling against ffmpeg is currently broken + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_FFMPEG_ENCODER:BOOL=OFF" + + if use boost; then + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_BOOST:BOOL=ON" + else + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_BOOST:BOOL=OFF" + fi + + if use hdf5; then + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_USE_SYSTEM_HDF5:BOOL=ON" + + # we also need to append -DH5Tget_array_dims_vers=1 to our CFLAGS + # to make sure we can compile against >=hdf5-1.8.3 + append-flags -DH5_USE_16_API + fi + + if use mpi; then + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_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 + + local plugin_toggle="OFF" + if use plugins; then + plugin_toggle="ON" + fi + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_OverView:BOOL=${plugin_toggle}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_ARRAY:BOOL=${plugin_toggle}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_ClientGraphViewFrame:BOOL=${plugin_toggle}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_CosmoFilters:BOOL=${plugin_toggle}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_Infovis:BOOL=${plugin_toggle}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_Moments,:BOOL=${plugin_toggle}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_PointSprite:BOOL=${plugin_toggle}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_Prism:BOOL=${plugin_toggle}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=${plugin_toggle}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_Streaming:BOOL=${plugin_toggle}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_netCDFReaders:BOOL=${plugin_toggle}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_pvblot:BOOL=${plugin_toggle}" + + # these plugins currently don't configure so turn them off for now + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_VisItReaderPlugin:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_TableToSparseArrayPanel:BOOL=OFF" + + # these plugins currently don't compile so turn them off for now + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_ClientGraphView:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_SplitTableFieldPanel:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_SQLDatabaseGraphSourcePanel:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_SQLDatabaseTableSourcePanel:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_TableToGraphPanel:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_ThresholdTablePanel:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_StatisticsToolbar:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_ClientGeoView2D:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_ClientGeoView:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_ClientTableView:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_ClientHierarchyView:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_ClientRecordView:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_CommonToolbar:BOOL=OFF" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_ClientTreeView:BOOL=no" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_PLUGIN_GraphLayoutFilterPanel:BOOL=OFF" + + + if use qt4; then + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_QT_GUI:BOOL=ON" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_INSTALL_QT_DIR=/${PVLIBDIR}/plugins/designer" + 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/${PVLIBDIR}/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} +} + + +pkg_postinst() { + # with Qt4.5 there seem to be issues reading data files + # under certain locales. Setting LC_ALL=C should fix these. + echo + elog "If you experience data corruption during parsing of" + elog "data files with paraview please try setting your" + elog "locale to LC_ALL=C." +} |