diff options
author | François Bissey <f.r.bissey@massey.ac.nz> | 2009-12-15 00:26:32 +1300 |
---|---|---|
committer | François Bissey <f.r.bissey@massey.ac.nz> | 2009-12-15 00:27:36 +1300 |
commit | 2ed71bfecca762934798fdd2dffdd1d3a53ce640 (patch) | |
tree | ff5c5851ff1db7af49d7cffbcba688ec683cc8d4 /sci-visualization | |
parent | [sci-geosciences/swmm] Update manifest and remove stale ebuild (diff) | |
download | sci-2ed71bfecca762934798fdd2dffdd1d3a53ce640.tar.gz sci-2ed71bfecca762934798fdd2dffdd1d3a53ce640.tar.bz2 sci-2ed71bfecca762934798fdd2dffdd1d3a53ce640.zip |
Import "improved" paraview ebuild
Diffstat (limited to 'sci-visualization')
10 files changed, 931 insertions, 0 deletions
diff --git a/sci-visualization/paraview/ChangeLog b/sci-visualization/paraview/ChangeLog new file mode 100644 index 000000000..2e3fa6cc2 --- /dev/null +++ b/sci-visualization/paraview/ChangeLog @@ -0,0 +1,229 @@ +# 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.43 2009/11/24 04:05:41 markusle Exp $ + +*paraview-3.6.1-r2 (14 Dec 2009) + + 14 Dec 2009; François Bissey <f.r.bissey@massey.ac.nz> + +paraview-3.6.1-r2.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-no-doc-finder.patch, + +files/paraview-3.6.1-pointsprite-disable.patch, + +files/paraview-3.6.1-qt.patch, +metadata.xml: + port to cmake-utils.eclass, changed the useflags, provide for the building + of most of the plugins depending on useflags. Build and + install the experimental OverView application and its plugins. + + 24 Nov 2009; Markus Dittrich <markusle@gentoo.org> + paraview-3.6.1-r1.ebuild: + Removed boost from RDEPEND (fixes bug #293086). + + 09 Oct 2009; Markus Dittrich <markusle@gentoo.org> + paraview-3.6.1-r1.ebuild: + Make sure to use the paraview provided OpenGl headers rather than + the system ones since newer OpenGL-3.2 stuff breaks vtk's header + parsing framework (fixes bug #287500). + + 05 Aug 2009; Markus Dittrich <markusle@gentoo.org> + -files/paraview-3.2.1-openmpi.patch, -paraview-3.3_pre20080514.ebuild, + -files/paraview-3.3_pre20080514-gcc4.3.patch, + -files/paraview-3.3_pre20080514-hdf5.patch, + -files/paraview-3.3_pre20080514-qt4.4.patch, -paraview-3.4.0.ebuild, + -files/paraview-3.4.0-qt4.4-5.patch: + Removed old ebuilds and patches. + +*paraview-3.6.1-r1 (29 Jul 2009) + + 29 Jul 2009; Markus Dittrich <markusle@gentoo.org> + +paraview-3.6.1-r1.ebuild: + New revision. paraview-3.6.1 should now be able to coexist with vtk + (#279264). + + 28 Jul 2009; Markus Dittrich <markusle@gentoo.org> paraview-3.6.1.ebuild, + +files/paraview-3.6.1-no-doc-finder.patch: + Added patch and fixes to ebuild to remove several install location + snafus. + + 27 Jul 2009; Markus Dittrich <markusle@gentoo.org> paraview-3.6.1.ebuild: + Have paraview block vtk until a better solution is found (#279264). + + 26 Jul 2009; Markus Dittrich <markusle@gentoo.org> paraview-3.6.1.ebuild: + Disabled building of tests since they seem to fail for a number + of people (#279002 and #278982). + + 25 Jul 2009; Markus Dittrich <markusle@gentoo.org> paraview-3.6.1.ebuild: + Only apply hdf5 patch conditional on >=hdf-1.8.0 (bug #279060). + + 25 Jul 2009; Markus Dittrich <markusle@gentoo.org> paraview-3.6.1.ebuild: + Remove threads useflag and always force compilation against pthreads. + +*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. + + 14 Jul 2009; Markus Dittrich <markusle@gentoo.org> paraview-3.4.0.ebuild, + +files/paraview-3.4.0-qt4.4-5.patch: + Added support for >=qt4.4 to 3.4.0 ebuild. + + 13 Jun 2009; Justin Bronder <jsbronder@gentoo.org> -paraview-2.6.2.ebuild: + Removing paraview-2.6.2, depends on sys-cluster/mpich which is going + away (#266565). + + 05 Nov 2008; Markus Dittrich <markusle@gentoo.org> paraview-3.4.0.ebuild: + Updated OpenFOAM patch. Thank much to Takuya OSHIMA for his help. + + 31 Oct 2008; Markus Dittrich <markusle@gentoo.org> paraview-3.4.0.ebuild: + Switched install location from paraview-3.4.0 to paraview-3.4. + + 30 Oct 2008; Markus Dittrich <markusle@gentoo.org> paraview-3.4.0.ebuild: + Fixed wrong installation path and went back to EAPI=1 to ease + installation for users of the stable branch. Also rolled back the + OpenFOAM patch one version since the newer seems to cause problems. + +*paraview-3.4.0 (28 Oct 2008) + + 28 Oct 2008; Markus Dittrich <markusle@gentoo.org> +paraview-3.4.0.ebuild: + Version bump (see bug #243362). + + 22 Oct 2008; Markus Dittrich <markusle@gentoo.org> + paraview-3.3_pre20080514.ebuild: + Apply hdf5 patch only when USE="hdf5" since it interferes otherwise. + + 15 Oct 2008; Markus Dittrich <markusle@gentoo.org> + +files/paraview-3.3_pre20080514-hdf5.patch, + files/paraview-3.3_pre20080514-gcc4.3.patch, + paraview-3.3_pre20080514.ebuild: + Added patch to fix issues due to changed API in >=hdf5-1.6.7 + (fixes bug #242184). Also updated gcc-4 patch. + + 29 Jul 2008; Markus Dittrich <markusle@gentoo.org> + paraview-3.3_pre20080514.ebuild: + Added OpenFOAM-1.5 support patch (fixes bug #233191). Thanks much to + Takuya OSHIMA <oshima@eng.niigata-u.ac.jp> for providing a + customized patch and Oliver Borm <oli.borm@web.de> for his patch. + + 28 Jul 2008; Carsten Lohrke <carlo@gentoo.org> paraview-3.2.1.ebuild: + QA: Get rid of deprecated qt4_min_version(). + + 27 Jul 2008; Carsten Lohrke <carlo@gentoo.org> + paraview-3.3_pre20080514.ebuild: + Fix broken split Qt 4.4 dependencies, cf. bug 217161 comment 11. + + 27 May 2008; Markus Dittrich <markusle@gentoo.org> ChangeLog: + Removed package from package.mask. + + 26 May 2008; Markus Dittrich <markusle@gentoo.org> + -files/paraview-3.3_pre20080514-qt.patch, + +files/paraview-3.3_pre20080514-qt4.4.patch, + paraview-3.3_pre20080514.ebuild: + Added support for qt4, fixed bogus /usr/plugin install directory and + depend explicitly on eselect-opengl to avoid missing declarations + in older glext header files. + +*paraview-3.3_pre20080514 (15 May 2008) + + 15 May 2008; Markus Dittrich <markusle@gentoo.org> + +files/paraview-3.3_pre20080514-gcc4.3.patch, + +files/paraview-3.3_pre20080514-qt.patch, + +paraview-3.3_pre20080514.ebuild: + Added development version which fixes the non-functioning + screenshot feature (see bug #220477). + + 12 May 2008; Markus Dittrich <markusle@gentoo.org> paraview-2.6.2.ebuild, + paraview-3.2.1.ebuild: + Removed runtime dependency on app-doc/doxygen (fixes bug #221689). + + 20 Feb 2008; Markus Dittrich <markusle@gentoo.org> + +files/paraview-3.2.1-openmpi.patch, paraview-3.2.1.ebuild: + Enabled support for openmpi and mpich2 (see bug #210639). + + 15 Feb 2008; Markus Dittrich <markusle@gentoo.org> + +files/paraview-2.6.2-tkImgGIF.patch, paraview-2.6.2.ebuild: + Added patch to take care of SA28784 and CVE-2008-0553 (see bug #208464). + + 14 Feb 2008; Markus Dittrich <markusle@gentoo.org> paraview-3.2.1.ebuild: + Added pkg_setup logic and EAPI=1 in response to updated qt4.eclass + (see bug #210062). Thanks much to Jakub Moc <jakub@gentoo.org> for + the fix. + + 21 Jan 2008; Markus Dittrich <markusle@gentoo.org> paraview-3.2.1.ebuild: + Fixed improper MPI cmake option (bug #206840). + + 19 Jan 2008; Markus Dittrich <markusle@gentoo.org> paraview-3.2.1.ebuild: + Let the qt4 eclass check for qt3support. + + 05 Jan 2008; Markus Dittrich <markusle@gentoo.org> paraview-3.2.1.ebuild: + Added patch to support OpenFOAM (see bug #202685). Thanks much to + Oliver Borm <oli.borm@web.de> for his help and patch. + +*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, + -files/paraview-2.4.4-python-wrap.patch, -paraview-2.4.4.ebuild, + -paraview-2.6.0.ebuild, -paraview-2.6.1.ebuild: + Removed obsolete versions. + +*paraview-2.6.2 (25 Jul 2007) + + 25 Jul 2007; Markus Dittrich <markusle@gentoo.org> +paraview-2.6.2.ebuild: + Version bump. Thanks much to Daniel Tourde <daniel.tourde@bredband.net> + for helping with the ebuild. + + 22 Jul 2007; Donnie Berkholz <dberkholz@gentoo.org>; + paraview-2.4.4.ebuild, paraview-2.6.0.ebuild, paraview-2.6.1.ebuild: + Drop virtual/x11 references. + +*paraview-2.6.1 (24 Apr 2007) + + 24 Apr 2007; Markus Dittrich <markusle@gentoo.org> +paraview-2.6.1.ebuild: + Version bump. Dropped ffmpeg keyword for now since the build + fails due to undefined macros in one of the ffmpeg headers. + Thanks much to Sebastien Fabbro <bicatali@gentoo.org> + for his ebuild. + +*paraview-2.6.0 (20 Feb 2007) + + 20 Feb 2007; Markus Dittrich <markusle@gentoo.org> + +files/paraview-2.6.0-hdf5-zlib.patch, + +files/paraview-2.6.0-include.patch, +paraview-2.6.0.ebuild: + Version bump. + + 29 Nov 2006; Markus Dittrich <markusle@gentoo.org> + +files/paraview-2.4.4-python-wrap.patch, paraview-2.4.4.ebuild: + Added patch that ensures that all dynamic libs needed for pvpython + are present. + + 20 Nov 2006; Markus Dittrich <markusle@gentoo.org> paraview-2.4.4.ebuild: + Added ffmpeg and threads USE flags. Also, added paraview libdir + to LDPATH. + +*paraview-2.4.4 (18 Oct 2006) + + 18 Oct 2006; Markus Dittrich <markusle@gentoo.org> + +files/paraview-2.4.4-hdf5-zlib.patch, +files/paraview-2.4.4-png.patch, + +metadata.xml, +paraview-2.4.4.ebuild: + Initial import (fixes bug #118130). Many thanks to Daniel Tourde + <daniel.tourde@caelae.se> for his ebuild and testing. + diff --git a/sci-visualization/paraview/Manifest b/sci-visualization/paraview/Manifest new file mode 100644 index 000000000..a628ecefe --- /dev/null +++ b/sci-visualization/paraview/Manifest @@ -0,0 +1,12 @@ +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-no-doc-finder.patch 787 RMD160 e3669d31061d69cb2007be0aa9be2d83de465745 SHA1 591e47194d9a02bc0277906cb3aac1742a6bee37 SHA256 7c264e9ab359928f5d3d23369b07ea9a698554434357744622f1267a2df732b6 +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.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.6.1-r2.ebuild 9906 RMD160 0255cd12e5f104ce9f15db8d30abb4c5539381ac SHA1 fe92bcf3719dea75388ab11cb0e425f7fd046072 SHA256 6fb769cc6c3d059398483447f81a3bc2f9faca6d3e286409cd620b5338d2334c +MISC ChangeLog 9535 RMD160 4214ec15784bdd20e45d9d7f2d3ad3f575e4772d SHA1 a4d20f003835ba6e8c20a6009346d552a15b8135 SHA256 27303e9b558ba9c42f2bd2ad13a90a720f3e2197d7b0e43bbd089122cdc2ba0a +MISC metadata.xml 710 RMD160 d22c72e1f5c4f4d59d0ef0543b2890a42d09d296 SHA1 b1145a2848b798e643e4eb3fce989b5e2abbd2b0 SHA256 1a42ee4b773757860692ed121839e1667e9062a3b477b0f807b0ffd6ccb3aeb6 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 000000000..a48c9b53a --- /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 000000000..0b966a724 --- /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 000000000..f61627138 --- /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-no-doc-finder.patch b/sci-visualization/paraview/files/paraview-3.6.1-no-doc-finder.patch new file mode 100644 index 000000000..a98d00419 --- /dev/null +++ b/sci-visualization/paraview/files/paraview-3.6.1-no-doc-finder.patch @@ -0,0 +1,18 @@ +diff -Naur ParaView3.old/Applications/Client/CMakeLists.txt ParaView3/Applications/Client/CMakeLists.txt +--- ParaView3.old/Applications/Client/CMakeLists.txt 2009-07-20 15:36:01.000000000 -0400 ++++ ParaView3/Applications/Client/CMakeLists.txt 2009-07-28 09:28:12.000000000 -0400 +@@ -128,10 +128,10 @@ + "${CMAKE_CURRENT_BINARY_DIR}/CMake/tmp/pqClientDocFinder.txt"
+ @ONLY
+ IMMEDIATE)
+- INSTALL(
+- FILES "${CMAKE_CURRENT_BINARY_DIR}/CMake/tmp/pqClientDocFinder.txt"
+- DESTINATION ${PV_INSTALL_BIN_DIR}
+- COMPONENT Runtime)
++ # INSTALL(
++ # FILES "${CMAKE_CURRENT_BINARY_DIR}/CMake/tmp/pqClientDocFinder.txt"
++ # DESTINATION ${PV_INSTALL_BIN_DIR}
++ # COMPONENT Runtime)
+ ENDIF(NOT PV_INSTALL_NO_RUNTIME)
+
+ IF(BUILD_TESTING)
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 000000000..5d6cdd053 --- /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 000000000..bca40bc4a --- /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 new file mode 100644 index 000000000..994985733 --- /dev/null +++ b/sci-visualization/paraview/metadata.xml @@ -0,0 +1,16 @@ +<?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> + <use> + <flag name='plugins'>Build and install additional plugins</flag> + <flag name='cg'>Use nvidia's cg shaders in the shipped vtk</flag> + <flag name='gl2ps'>Enable the usage of x11-libs/gl2ps in the shipped vtk</flag> + <flag name='streaming'>Build and install the StreamingParaView application and its associated plugin</flag> + <flag name='overview'>Build and install the experimental OverView application and its complusory plugins</flag> + </use> +</pkgmetadata> diff --git a/sci-visualization/paraview/paraview-3.6.1-r2.ebuild b/sci-visualization/paraview/paraview-3.6.1-r2.ebuild new file mode 100644 index 000000000..2c58b618d --- /dev/null +++ b/sci-visualization/paraview/paraview-3.6.1-r2.ebuild @@ -0,0 +1,274 @@ +# 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-r1.ebuild,v 1.4 2009/11/24 04:05:41 markusle Exp $ + +EAPI="2" + +inherit distutils eutils flag-o-matic cmake-utils 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 doc examples qt4 plugins overview streaming gl2ps mysql postgres odbc cg" +# the database backends are exposed in some of the plugins. +# wether gl2ps and cg are exposed in paraview is a good question. +RDEPEND="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 + x11-libs/qt-opengl:4 ) + gl2ps? ( x11-libs/gl2ps ) + mysql? ( virtual/mysql ) + postgres? ( virtual/postgresql-base ) + odbc? ( dev-db/unixODBC ) + cg? ( media-gfx/nvidia-cg-toolkit ) + 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 ) + overview? ( >=dev-libs/boost-1.37 ) + >=dev-util/cmake-2.6.4" + +PVLIBDIR="$(get_libdir)/${PN}-${MAJOR_PV}" +S="${WORKDIR}"/ParaView${MAIN_PV} + +pkg_setup() { + # overview needs qt4 so if overview is enabled and qt4 isn't we abort + if( ( use overview ) && ! (use qt4) ); then + einfo "overview requires qt4 to build" + einfo "you currently have qt4 disabled please enable it" + einfo "if you really want overview" + die + fi +} + +src_prepare() { + 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" + epatch "${FILESDIR}/${P}-no-doc-finder.patch" + + has_version '>=sci-libs/hdf5-1.8.0' 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." + + # fix plugin install directory + sed -e "s:\${PV_INSTALL_BIN_DIR}/plugins:/usr/${PVLIBDIR}/plugins:" \ + -i CMake/ParaViewPlugins.cmake \ + || die "Failed to fix plugin install directories" +} + +src_configure(){ + # we do not depend on an external sci-libs/proj - doing so is incompatible + # with building shared libraries. But we can use gsl or pthreads. + # Building vtk with the boost library is only required if you want to build OverView and its plugins. + mycmakeargs="${mycmakeargs} + -DPV_INSTALL_LIB_DIR:PATH=${PVLIBDIR} + -DPARAVIEW_USE_SYSTEM_HDF5:BOOL=ON + -DBUILD_SHARED_LIBS:BOOL=ON + -DBUILD_TESTING:BOOL=OFF + -DCMAKE_SKIP_RPATH:BOOL=YES + -DCMAKE_INSTALL_PREFIX:PATH=/usr + -DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF + -DCMAKE_USE_PTHREADS:BOOL=ON + -DCMAKE_COLOR_MAKEFILE:BOOL=TRUE + -DEXPAT_INCLUDE_DIR:PATH=/usr/include + -DEXPAT_LIBRARY=/usr/$(get_libdir)/libexpat.so + -DOPENGL_gl_LIBRARY=/usr/$(get_libdir)/libGL.so + -DOPENGL_glu_LIBRARY=/usr/$(get_libdir)/libGLU.so + -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON + -DVTK_USE_SYSTEM_JPEG:BOOL=ON + -DVTK_USE_SYSTEM_PNG:BOOL=ON + -DVTK_USE_SYSTEM_TIFF:BOOL=ON + -DVTK_USE_SYSTEM_ZLIB:BOOL=ON + -DVTK_USE_SYSTEM_EXPAT:BOOL=ON + -DVTK_USE_RPATH:BOOL=OFF + -DVTK_USE_SYSTEM_LIBXML2:BOOL=ON + -DVTK_USE_OFFSCREEN=TRUE + -DVTK_USE_GEOVIS:BOOL=ON + -DVTK_USE_GLSL_SHADERS:BOOL=ON + -DVTK_USE_GUISUPPORT:BOOL=ON + -DVTK_USE_INFOVIS:BOOL=ON + -DVTK_USE_METAIO:BOOL=ON + -DVTK_USE_VIEWS:BOOL=ON + $(cmake-utils_use cg VTK_USE_CG_SHADERS) + $(cmake-utils_use odbc VTK_USE_ODBC) + $(cmake-utils_use mysql VTK_USE_MYSQL) + $(cmake-utils_use mysql XDMF_USE_MYSQL) + $(cmake-utils_use postgres VTK_USE_POSTGRES) + $(cmake-utils_use streaming PARAVIEW_BUILD_StreamingParaView) + $(cmake-utils_use mpi PARAVIEW_USE_MPI) + $(cmake-utils_use gl2ps VTK_USE_GL2PS) + $(cmake-utils_use python PARAVIEW_ENABLE_PYTHON) + $(cmake-utils_use_build doc DOCUMENTATION) + $(cmake-utils_use_build examples EXAMPLES)" + + # Building OverView requires boost and some plugins + # VTK_USE_N_WAY_ARRAYS is needed for the Array and TableToSparseArrayPanel plugins, + # it also probably enables some functionality in the Infovis plugin. + # Plugins in the first list are both required and enabled by OverView + if use overview; then + mycmakeargs="${mycmakeargs} + -DVTK_USE_BOOST:BOOL=ON + -DVTK_USE_N_WAY_ARRAYS:BOOL=ON + -DPARAVIEW_BUILD_OverView:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_ClientGraphView:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_ClientGraphViewFrame:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_ClientRecordView:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_ClientTableView:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_ClientTreeView:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_Infovis:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_SQLDatabaseGraphSourcePanel:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_SQLDatabaseTableSourcePanel:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_TableToGraphPanel:BOOL=ON" + # The following plugins needs overview to build but are not needed to build OverView. + use plugins && mycmakeargs="${mycmakeargs} + -DPARAVIEW_BUILD_PLUGIN_Array:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_ClientGeoView2D:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_ClientGeoView:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_SplitTableFieldPanel:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_ThresholdTablePanel:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_StatisticsToolbar:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_ClientHierarchyView:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_CommonToolbar:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_TableToSparseArrayPanel:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_GraphLayoutFilterPanel:BOOL=ON" + fi + + # FIXME: compiling against ffmpeg is currently broken + mycmakeargs="${mycmakeargs} + -DVTK_USE_FFMPEG_ENCODER:BOOL=OFF" + + # May be if someone is interested we should test this + # source include a stub of visit but it tries to find an installed copy of visit. + # It may just need to be pointed there manually + mycmakeargs="${mycmakeargs} + -DPARAVIEW_BUILD_PLUGIN_VisItReaderPlugin:BOOL=OFF" + + # PointSprite: Does it require mpi (seems to build without)? say it really should need cmake>2.7 . + if use plugins; then + mycmakeargs="${mycmakeargs} + -DPARAVIEW_BUILD_PLUGIN_CosmoFilters:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_Moments,:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_PointSprite:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_Prism:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=ON + -DPARAVIEW_BUILD_PLUGIN_netCDFReaders:BOOL=ON + $(cmake-utils_use examples PointSpritePlugin_BUILD_EXAMPLES) + $(cmake-utils_use python PARAVIEW_BUILD_PLUGIN_pvblot)" + + # note about -DPARAVIEW_BUILD_PLUGIN_Streaming + # it is enabled if the streaming application is built - off otherwise. + fi + + if use qt4; then + mycmakeargs="${mycmakeargs} + -DPARAVIEW_BUILD_QT_GUI:BOOL=ON + -DVTK_INSTALL_QT_DIR=/${PVLIBDIR}/plugins/designer + -DVTK_USE_QT:BOOL=ON + -DVTK_USE_QVTK_QTOPENGL:BOOL=ON" + else + mycmakeargs="${mycmakeargs} + -DPARAVIEW_BUILD_QT_GUI:BOOL=OFF" + fi + + # we also need to append -DH5Tget_array_dims_vers=1 to our CFLAGS + append-flags -DH5_USE_16_API + + cmake-utils_src_configure + # if we want to built overview configure has to be called twice + # otherwise some variables are not propagated properly + use overview && cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + # 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" + newicon Applications/Client/pvIcon.svg "${PN}".svg + make_desktop_entry paraview Paraview "${PN}".svg + fi + + # There is no install target for OverView, so we have a manual install + if use overview; then + exeinto /usr/"${PVLIBDIR}" + newexe "${CMAKE_BUILD_DIR}"/bin/OverView OverView-real + dolib.so "${CMAKE_BUILD_DIR}"/bin/libOverViewCore.so + mkdir "${D}/usr/${PVLIBDIR}"/OverView-startup + cd "${CMAKE_BUILD_DIR}"/bin/OverView-startup + for i in ./* ; + do dosym /usr/"${PVLIBDIR}"/"$i" "/usr/${PVLIBDIR}"/OverView-startup/"$i" ; + done + dosym /usr/"${PVLIBDIR}"/OverView-real /usr/bin/OverView + newicon "${S}"/Applications/OverView/Icon.png overview.png + make_desktop_entry OverView "OverView" overview.png + fi + + # set up the environment + echo "LDPATH=/usr/${PVLIBDIR}" >> "${T}"/40${PN} + doenvd "${T}"/40${PN} + + # move and remove some of the files that should not be + # in /usr/bin + dohtml "${D}/usr/bin/about.html" && rm -f "${D}/usr/bin/about.html" \ + || die "Failed to move about.html into doc dir" + + # this binary does not work and probably should not be installed + rm -f "${D}/usr/bin/vtkSMExtractDocumentation" \ + || die "Failed to remove vtkSMExtractDocumentation" + + # rename /usr/bin/lproj to /usr/bin/lproj_paraview to avoid + # a file collision with vtk which installs the same file + mv "${D}/usr/bin/lproj" "${D}/usr/bin/lproj_paraview" \ + || die "Failed to rename /usr/bin/lproj" +} + +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." + elog "The binary /usr/bin/lproj has been renamed to" + elog "/usr/bin/lproj_paraview to avoid a file collision" + elog "with vtk." + echo +} |