diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2010-11-08 17:48:45 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2010-11-08 17:48:45 +0000 |
commit | bc944fcb993e4cb0b4389dce9038642b3552c799 (patch) | |
tree | 777d1b972b72de455eeeec53b735447e5a36537a /sci-libs/vtk | |
parent | [net-wireless/wimax-tools] Version bump & cleanup (diff) | |
download | gentoo-2-bc944fcb993e4cb0b4389dce9038642b3552c799.tar.gz gentoo-2-bc944fcb993e4cb0b4389dce9038642b3552c799.tar.bz2 gentoo-2-bc944fcb993e4cb0b4389dce9038642b3552c799.zip |
media-libs/jpeg -> virtual/jpeg. Drop old.
(Portage version: 2.1.9.24/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/vtk')
-rw-r--r-- | sci-libs/vtk/ChangeLog | 9 | ||||
-rw-r--r-- | sci-libs/vtk/files/vtk-5.0.3-mpi.patch | 74 | ||||
-rw-r--r-- | sci-libs/vtk/files/vtk-5.0.4-gcc4.3.patch | 33 | ||||
-rw-r--r-- | sci-libs/vtk/files/vtk-5.4.2-boost-property_map.patch | 194 | ||||
-rw-r--r-- | sci-libs/vtk/files/vtk-5.4.2-cg-path.patch | 35 | ||||
-rw-r--r-- | sci-libs/vtk/files/vtk-5.4.2-libpng14.patch | 20 | ||||
-rw-r--r-- | sci-libs/vtk/vtk-5.4.2-r1.ebuild | 231 | ||||
-rw-r--r-- | sci-libs/vtk/vtk-5.6.0-r2.ebuild | 4 |
8 files changed, 10 insertions, 590 deletions
diff --git a/sci-libs/vtk/ChangeLog b/sci-libs/vtk/ChangeLog index f319469a5888..18a646a62ba7 100644 --- a/sci-libs/vtk/ChangeLog +++ b/sci-libs/vtk/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-libs/vtk # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/ChangeLog,v 1.78 2010/07/24 18:25:18 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/ChangeLog,v 1.79 2010/11/08 17:48:45 xarthisius Exp $ + + 08 Nov 2010; Kacper Kowalik <xarthisius@gentoo.org> + -files/vtk-5.0.3-mpi.patch, -files/vtk-5.0.4-gcc4.3.patch, + -vtk-5.4.2-r1.ebuild, -files/vtk-5.4.2-boost-property_map.patch, + -files/vtk-5.4.2-cg-path.patch, -files/vtk-5.4.2-libpng14.patch, + vtk-5.6.0-r2.ebuild: + media-libs/jpeg -> virtual/jpeg. Drop old. 24 Jul 2010; Justin Lecher <jlec@gentoo.org> vtk-5.6.0-r2.ebuild: Fix for compilation with USE=ffmpeg, #327517 diff --git a/sci-libs/vtk/files/vtk-5.0.3-mpi.patch b/sci-libs/vtk/files/vtk-5.0.3-mpi.patch deleted file mode 100644 index fec1d67bd0aa..000000000000 --- a/sci-libs/vtk/files/vtk-5.0.3-mpi.patch +++ /dev/null @@ -1,74 +0,0 @@ -diff -Naur VTK/Parallel/CMakeLists.txt VTK.new/Parallel/CMakeLists.txt ---- VTK/Parallel/CMakeLists.txt 2007-03-28 15:38:46.000000000 -0500 -+++ VTK.new/Parallel/CMakeLists.txt 2008-02-21 15:16:04.000000000 -0500 -@@ -78,6 +78,8 @@ - - IF (VTK_USE_MPI) - INCLUDE (${CMAKE_ROOT}/Modules/FindMPI.cmake) -+ INCLUDE(${VTK_SOURCE_DIR}/Parallel/FindLAMMPI.cmake) -+ INCLUDE(${VTK_SOURCE_DIR}/Parallel/FindOpenmpi.cmake) - SET ( Kit_SRCS - ${Kit_SRCS} - vtkMPICommunicator.cxx -@@ -94,6 +96,18 @@ - IF (MPI_EXTRA_LIBRARY) - SET(KIT_LIBS ${KIT_LIBS} "${MPI_EXTRA_LIBRARY}") - ENDIF (MPI_EXTRA_LIBRARY) -+ IF (LAMMPI_LIBRARY) -+ SET(KIT_LIBS ${KIT_LIBS} "${LAMMPI_LIBRARY}") -+ ENDIF (LAMMPI_LIBRARY) -+ IF (LAMMPI_EXTRA_LIBRARY) -+ SET(KIT_LIBS ${KIT_LIBS} "${LAMMPI_EXTRA_LIBRARY}") -+ ENDIF (LAMMPI_EXTRA_LIBRARY) -+ IF (OPENMPI_LIBRARY) -+ SET(KIT_LIBS ${KIT_LIBS} "${OPENMPI_LIBRARY}") -+ ENDIF (OPENMPI_LIBRARY) -+ IF (OPENMPI_EXTRA_LIBRARY) -+ SET(KIT_LIBS ${KIT_LIBS} "${OPENMPI_EXTRA_LIBRARY}") -+ ENDIF (OPENMPI_EXTRA_LIBRARY) - ENDIF (VTK_USE_MPI) - - SET(Kit_EXTRA_SRCS) -diff -Naur VTK/Parallel/FindLAMMPI.cmake VTK.new/Parallel/FindLAMMPI.cmake ---- VTK/Parallel/FindLAMMPI.cmake 1969-12-31 19:00:00.000000000 -0500 -+++ VTK.new/Parallel/FindLAMMPI.cmake 2008-02-21 15:13:38.000000000 -0500 -@@ -0,0 +1,17 @@ -+# - Find LamMPI -+FIND_LIBRARY(LAMMPI_LIBRARY -+ NAMES lam -+ PATHS /usr/lib /usr/lib64 -+ "$ENV{ProgramFiles}/MPICH/SDK/Lib" -+ "$ENV{ProgramFiles}/MPICH2/Lib" -+ "C:/Program Files/MPICH/SDK/Lib" -+) -+ -+FIND_LIBRARY(LAMMPI_EXTRA_LIBRARY -+ NAMES lammpi++ -+ PATHS /usr/lib /usr/lib64 -+ "$ENV{ProgramFiles}/MPICH/SDK/Lib" -+ "C:/Program Files/MPICH/SDK/Lib" -+ DOC "If a second mpi library is necessary, specify it here.") -+ -+MARK_AS_ADVANCED(LAMMPI_LIBRARY LAMMPI_EXTRA_LIBRARY) -diff -Naur VTK/Parallel/FindOpenmpi.cmake VTK.new/Parallel/FindOpenmpi.cmake ---- VTK/Parallel/FindOpenmpi.cmake 1969-12-31 19:00:00.000000000 -0500 -+++ VTK.new/Parallel/FindOpenmpi.cmake 2008-02-21 15:14:23.000000000 -0500 -@@ -0,0 +1,18 @@ -+# - Find openmpi -+FIND_PATH(MPI_INCLUDE_PATH mpi.h -+ /usr/include -+ /usr/include/openmpi -+) -+ -+FIND_LIBRARY(OPENMPI_LIBRARY -+ NAMES mpi -+ PATHS /usr/lib /usr/lib64 -+) -+ -+FIND_LIBRARY(OPENMPI_EXTRA_LIBRARY -+ NAMES mpi_cxx -+ PATHS /usr/lib /usr/lib64 -+ DOC "If a second mpi library is necessary, specify it here.") -+ -+MARK_AS_ADVANCED(OPENMPI_LIBRARY OPENMPI_EXTRA_LIBRARY) -+ diff --git a/sci-libs/vtk/files/vtk-5.0.4-gcc4.3.patch b/sci-libs/vtk/files/vtk-5.0.4-gcc4.3.patch deleted file mode 100644 index f921ee3196d5..000000000000 --- a/sci-libs/vtk/files/vtk-5.0.4-gcc4.3.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff -Naur VTK/Utilities/DICOMParser/DICOMAppHelper.cxx VTK.new/Utilities/DICOMParser/DICOMAppHelper.cxx ---- VTK/Utilities/DICOMParser/DICOMAppHelper.cxx 2007-05-03 13:12:13.000000000 -0400 -+++ VTK.new/Utilities/DICOMParser/DICOMAppHelper.cxx 2008-05-24 13:44:18.000000000 -0400 -@@ -34,6 +34,7 @@ - #include <string> - #include <math.h> - #include <algorithm> -+#include <cstring> - #if defined(__BORLANDC__) - #include <mem.h> // for memcpy - #endif -diff -Naur VTK/Utilities/DICOMParser/DICOMFile.cxx VTK.new/Utilities/DICOMParser/DICOMFile.cxx ---- VTK/Utilities/DICOMParser/DICOMFile.cxx 2005-07-26 16:02:22.000000000 -0400 -+++ VTK.new/Utilities/DICOMParser/DICOMFile.cxx 2008-05-24 13:44:18.000000000 -0400 -@@ -24,6 +24,7 @@ - - #include <stdio.h> - #include <string> -+#include <cstring> - - #include "DICOMConfig.h" - #include "DICOMFile.h" -diff -Naur VTK/Utilities/DICOMParser/DICOMParser.cxx VTK.new/Utilities/DICOMParser/DICOMParser.cxx ---- VTK/Utilities/DICOMParser/DICOMParser.cxx 2006-03-24 10:59:50.000000000 -0500 -+++ VTK.new/Utilities/DICOMParser/DICOMParser.cxx 2008-05-24 13:44:19.000000000 -0400 -@@ -37,6 +37,7 @@ - #endif - - #include <string> -+#include <cstring> - - #include "DICOMConfig.h" - #include "DICOMParser.h" diff --git a/sci-libs/vtk/files/vtk-5.4.2-boost-property_map.patch b/sci-libs/vtk/files/vtk-5.4.2-boost-property_map.patch deleted file mode 100644 index 90c6d6a1fed3..000000000000 --- a/sci-libs/vtk/files/vtk-5.4.2-boost-property_map.patch +++ /dev/null @@ -1,194 +0,0 @@ -diff --git a/Infovis/Testing/Cxx/TestBoostAdapter.cxx b/Infovis/Testing/Cxx/TestBoostAdapter.cxx -index 6af2855..484a9e0 100644 ---- a/Infovis/Testing/Cxx/TestBoostAdapter.cxx -+++ b/Infovis/Testing/Cxx/TestBoostAdapter.cxx -@@ -36,8 +36,8 @@ - #include <boost/graph/strong_components.hpp> - #include <boost/graph/dijkstra_shortest_paths.hpp> - #include <boost/graph/transitive_closure.hpp> --#include <boost/property_map.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - - #include "vtkGraph.h" - #include "vtkBoostGraphAdapter.h" -diff --git a/Infovis/vtkBoostBiconnectedComponents.cxx b/Infovis/vtkBoostBiconnectedComponents.cxx -index 6799dd0..dd759d5 100644 ---- a/Infovis/vtkBoostBiconnectedComponents.cxx -+++ b/Infovis/vtkBoostBiconnectedComponents.cxx -@@ -32,7 +32,7 @@ - #include "vtkGraph.h" - #include "vtkBoostGraphAdapter.h" - #include <boost/graph/biconnected_components.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - #include <boost/version.hpp> - #include <vtksys/stl/vector> - #include <vtksys/stl/utility> -diff --git a/Infovis/vtkBoostBrandesCentrality.cxx b/Infovis/vtkBoostBrandesCentrality.cxx -index e214a72..443c039 100644 ---- a/Infovis/vtkBoostBrandesCentrality.cxx -+++ b/Infovis/vtkBoostBrandesCentrality.cxx -@@ -36,7 +36,7 @@ - - #include <boost/graph/adjacency_list.hpp> - #include <boost/graph/betweenness_centrality.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - - using namespace boost; - -diff --git a/Infovis/vtkBoostBreadthFirstSearch.cxx b/Infovis/vtkBoostBreadthFirstSearch.cxx -index 7fab585..6e56a7c 100644 ---- a/Infovis/vtkBoostBreadthFirstSearch.cxx -+++ b/Infovis/vtkBoostBreadthFirstSearch.cxx -@@ -46,8 +46,8 @@ - - #include <boost/graph/visitors.hpp> - #include <boost/graph/breadth_first_search.hpp> --#include <boost/property_map.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - #include <boost/pending/queue.hpp> - - #include <vtksys/stl/utility> // for pair -diff --git a/Infovis/vtkBoostBreadthFirstSearchTree.cxx b/Infovis/vtkBoostBreadthFirstSearchTree.cxx -index 5c64516..64ee7b5 100644 ---- a/Infovis/vtkBoostBreadthFirstSearchTree.cxx -+++ b/Infovis/vtkBoostBreadthFirstSearchTree.cxx -@@ -39,7 +39,7 @@ - #include "vtkTree.h" - - #include <boost/graph/breadth_first_search.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - #include <boost/pending/queue.hpp> - - using namespace boost; -diff --git a/Infovis/vtkBoostConnectedComponents.cxx b/Infovis/vtkBoostConnectedComponents.cxx -index 69e9d8f..c88f4ab 100644 ---- a/Infovis/vtkBoostConnectedComponents.cxx -+++ b/Infovis/vtkBoostConnectedComponents.cxx -@@ -33,7 +33,7 @@ - - #include "vtkBoostGraphAdapter.h" - #include <boost/graph/strong_components.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - - using namespace boost; - -diff --git a/Infovis/vtkBoostKruskalMinimumSpanningTree.cxx b/Infovis/vtkBoostKruskalMinimumSpanningTree.cxx -index b0c89de..7ea3aa9 100644 ---- a/Infovis/vtkBoostKruskalMinimumSpanningTree.cxx -+++ b/Infovis/vtkBoostKruskalMinimumSpanningTree.cxx -@@ -40,7 +40,7 @@ PURPOSE. See the above copyright notice for more information. - #include "vtkTree.h" - - #include <boost/graph/kruskal_min_spanning_tree.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - #include <boost/pending/queue.hpp> - - using namespace boost; -diff --git a/Infovis/vtkBoostPrimMinimumSpanningTree.cxx b/Infovis/vtkBoostPrimMinimumSpanningTree.cxx -index 935d0f7..48716fd 100644 ---- a/Infovis/vtkBoostPrimMinimumSpanningTree.cxx -+++ b/Infovis/vtkBoostPrimMinimumSpanningTree.cxx -@@ -39,7 +39,7 @@ PURPOSE. See the above copyright notice for more information. - #include "vtkTree.h" - - #include <boost/graph/prim_minimum_spanning_tree.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - #include <boost/pending/queue.hpp> - - using namespace boost; -diff --git a/Infovis/vtkTreeLayoutStrategy.cxx b/Infovis/vtkTreeLayoutStrategy.cxx -index 6efa586..222afe9 100644 ---- a/Infovis/vtkTreeLayoutStrategy.cxx -+++ b/Infovis/vtkTreeLayoutStrategy.cxx -@@ -375,8 +375,8 @@ void vtkTreeLayoutStrategy::PrintSelf(ostream& os, vtkIndent indent) - #include "vtkTreeToBoostAdapter.h" - #include <boost/graph/visitors.hpp> - #include <boost/graph/depth_first_search.hpp> --#include <boost/property_map.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - #include <boost/pending/queue.hpp> - - using namespace boost; -diff --git a/Parallel/vtkPBGLBreadthFirstSearch.cxx b/Parallel/vtkPBGLBreadthFirstSearch.cxx -index 2b4681b..eebeaa9 100644 ---- a/Parallel/vtkPBGLBreadthFirstSearch.cxx -+++ b/Parallel/vtkPBGLBreadthFirstSearch.cxx -@@ -50,8 +50,8 @@ - #include <boost/graph/distributed/breadth_first_search.hpp> - #include <boost/parallel/algorithm.hpp> - #include <boost/graph/visitors.hpp> --#include <boost/property_map.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - #include <boost/pending/queue.hpp> - - #include <vtksys/stl/utility> // for pair -diff --git a/Parallel/vtkPBGLGraphAdapter.h b/Parallel/vtkPBGLGraphAdapter.h -index 7b467b0..bacfd3a 100644 ---- a/Parallel/vtkPBGLGraphAdapter.h -+++ b/Parallel/vtkPBGLGraphAdapter.h -@@ -31,7 +31,7 @@ - #include <boost/graph/distributed/mpi_process_group.hpp> - #include <boost/graph/properties.hpp> - #include <boost/graph/parallel/container_traits.hpp> --#include <boost/parallel/local_property_map.hpp> -+#include <boost/property_map/parallel/local_property_map.hpp> - #include <boost/serialization/base_object.hpp> - #include <boost/functional/hash.hpp> - //ETX -diff --git a/Parallel/vtkPBGLMinimumSpanningTree.cxx b/Parallel/vtkPBGLMinimumSpanningTree.cxx -index da4647e..f9c3229 100644 ---- a/Parallel/vtkPBGLMinimumSpanningTree.cxx -+++ b/Parallel/vtkPBGLMinimumSpanningTree.cxx -@@ -48,8 +48,8 @@ - #include <boost/graph/distributed/dehne_gotz_min_spanning_tree.hpp> - #include <boost/graph/distributed/vertex_list_adaptor.hpp> - #include <boost/parallel/global_index_map.hpp> --#include <boost/property_map.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - #include <boost/pending/queue.hpp> - - #include <vtksys/stl/utility> // for pair -diff --git a/Parallel/vtkPBGLShortestPaths.cxx b/Parallel/vtkPBGLShortestPaths.cxx -index 074143f..8517304 100644 ---- a/Parallel/vtkPBGLShortestPaths.cxx -+++ b/Parallel/vtkPBGLShortestPaths.cxx -@@ -49,8 +49,8 @@ - - #include <boost/graph/distributed/delta_stepping_shortest_paths.hpp> - #include <boost/parallel/algorithm.hpp> --#include <boost/property_map.hpp> --#include <boost/vector_property_map.hpp> -+#include <boost/property_map/property_map.hpp> -+#include <boost/property_map/vector_property_map.hpp> - - #include <vtksys/stl/utility> // for pair - -diff --git a/Parallel/vtkPBGLVertexColoring.cxx b/Parallel/vtkPBGLVertexColoring.cxx -index 9aa87a0..301a245 100644 ---- a/Parallel/vtkPBGLVertexColoring.cxx -+++ b/Parallel/vtkPBGLVertexColoring.cxx -@@ -47,7 +47,7 @@ - - #include <boost/graph/distributed/boman_et_al_graph_coloring.hpp> - #include <boost/parallel/algorithm.hpp> --#include <boost/property_map.hpp> -+#include <boost/property_map/property_map.hpp> - - #include <vtksys/stl/utility> // for pair - diff --git a/sci-libs/vtk/files/vtk-5.4.2-cg-path.patch b/sci-libs/vtk/files/vtk-5.4.2-cg-path.patch deleted file mode 100644 index 53d43ee804b9..000000000000 --- a/sci-libs/vtk/files/vtk-5.4.2-cg-path.patch +++ /dev/null @@ -1,35 +0,0 @@ -diff -Naur VTK/CMake/FindCg.cmake VTK.new/CMake/FindCg.cmake ---- VTK/CMake/FindCg.cmake 2005-10-04 11:25:51.000000000 -0400 -+++ VTK.new/CMake/FindCg.cmake 2009-07-17 14:10:30.000000000 -0400 -@@ -82,6 +82,7 @@ - FIND_PROGRAM( CG_COMPILER cgc - /usr/bin - /usr/local/bin -+ /opt/nvidia-cg-toolkit/bin - DOC "The Cg Compiler" - ) - GET_FILENAME_COMPONENT(CG_COMPILER_DIR "${CG_COMPILER}" PATH) -@@ -89,6 +90,7 @@ - FIND_PATH( CG_INCLUDE_PATH Cg/cg.h - /usr/include - /usr/local/include -+ /opt/nvidia-cg-toolkit/include - ${CG_COMPILER_SUPER_DIR}/include - DOC "The directory where Cg/cg.h resides" - ) -@@ -98,6 +100,7 @@ - /usr/lib - /usr/local/lib64 - /usr/local/lib -+ /opt/nvidia-cg-toolkit/lib - ${CG_COMPILER_SUPER_DIR}/lib64 - ${CG_COMPILER_SUPER_DIR}/lib - DOC "The Cg runtime library" -@@ -108,6 +111,7 @@ - /usr/lib - /usr/local/lib64 - /usr/local/lib -+ /opt/nvidia-cg-toolkit/lib - ${CG_COMPILER_SUPER_DIR}/lib64 - ${CG_COMPILER_SUPER_DIR}/lib - DOC "The Cg runtime library" diff --git a/sci-libs/vtk/files/vtk-5.4.2-libpng14.patch b/sci-libs/vtk/files/vtk-5.4.2-libpng14.patch deleted file mode 100644 index 1f12ae92658d..000000000000 --- a/sci-libs/vtk/files/vtk-5.4.2-libpng14.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- IO/vtkPNGReader.cxx -+++ IO/vtkPNGReader.cxx -@@ -116,7 +116,7 @@ - // minimum of a byte per pixel - if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) - { -- png_set_gray_1_2_4_to_8(png_ptr); -+ png_set_expand_gray_1_2_4_to_8(png_ptr); - } - - // add alpha if any alpha found -@@ -225,7 +225,7 @@ - // minimum of a byte per pixel - if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) - { -- png_set_gray_1_2_4_to_8(png_ptr); -+ png_set_expand_gray_1_2_4_to_8(png_ptr); - } - - // add alpha if any alpha found diff --git a/sci-libs/vtk/vtk-5.4.2-r1.ebuild b/sci-libs/vtk/vtk-5.4.2-r1.ebuild deleted file mode 100644 index 052ba61b4ee9..000000000000 --- a/sci-libs/vtk/vtk-5.4.2-r1.ebuild +++ /dev/null @@ -1,231 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/vtk-5.4.2-r1.ebuild,v 1.12 2010/06/17 02:25:18 jsbronder Exp $ - -EAPI="3" -PYTHON_DEPEND="python? 2" - -inherit cmake-utils eutils flag-o-matic java-pkg-opt-2 python qt4 versionator toolchain-funcs - -# Short package version -SPV="$(get_version_component_range 1-2)" - -DESCRIPTION="The Visualization Toolkit" -HOMEPAGE="http://www.vtk.org" -SRC_URI="http://www.${PN}.org/files/release/${SPV}/${P}.tar.gz - examples? ( http://www.${PN}.org/files/release/${SPV}/${PN}data-${PV}.tar.gz ) - doc? ( http://www.${PN}.org/doc/release/${SPV}/${PN}DocHtml-${PV}.tar.gz )" - -LICENSE="BSD LGPL-2" -KEYWORDS="~amd64 ~x86" -SLOT="0" -IUSE="boost cg doc examples mpi patented python qt4 tcl tk threads" -RDEPEND="mpi? ( || ( - sys-cluster/openmpi - sys-cluster/mpich2[cxx] ) ) - cg? ( media-gfx/nvidia-cg-toolkit ) - tcl? ( >=dev-lang/tcl-8.2.3 ) - tk? ( >=dev-lang/tk-8.2.3 ) - java? ( >=virtual/jre-1.5 ) - qt4? ( x11-libs/qt-core:4 - x11-libs/qt-opengl:4 - x11-libs/qt-gui:4 - x11-libs/qt-sql ) - examples? ( x11-libs/qt-core:4[qt3support] - x11-libs/qt-gui:4[qt3support] ) - dev-libs/expat - dev-libs/libxml2 - media-libs/freetype - media-libs/jpeg - media-libs/libpng - media-libs/tiff - virtual/opengl - x11-libs/libXmu" - -DEPEND="${RDEPEND} - java? ( >=virtual/jdk-1.5 ) - boost? ( >=dev-libs/boost-1.40.0 ) - >=dev-util/cmake-2.6" - -S="${WORKDIR}"/VTK - -pkg_setup() { - echo - einfo "Please note that the VTK build occasionally fails when" - einfo "using parallel make. Hence, if you experience a build" - einfo "failure please try re-emerging with MAKEOPTS=\"-j1\" first." - echo - - java-pkg-opt-2_pkg_setup - - use python && python_set_active_version 2 - use qt4 && qt4_pkg_setup -} - -src_prepare() { - epatch "${FILESDIR}"/${P}-cg-path.patch - epatch "${FILESDIR}"/${PN}-5.2.0-tcl-install.patch - epatch "${FILESDIR}"/${P}-boost-property_map.patch - epatch "${FILESDIR}"/${P}-libpng14.patch - sed -e "s:@VTK_TCL_LIBRARY_DIR@:/usr/$(get_libdir):" \ - -i Wrapping/Tcl/pkgIndex.tcl.in \ - || die "Failed to fix tcl pkgIndex file" -} - -src_configure() { - # general configuration - local mycmakeargs=( - -Wno-dev - -DVTK_INSTALL_PACKAGE_DIR=/$(get_libdir)/${PN}-${SPV} - -DCMAKE_SKIP_RPATH=YES - -DVTK_DIR="${S}" - -DVTK_INSTALL_LIB_DIR=/$(get_libdir)/ - -DVTK_DATA_ROOT:PATH=/usr/share/${PN}/data - -DCMAKE_INSTALL_PREFIX=/usr - -DBUILD_SHARED_LIBS=ON - -DVTK_USE_SYSTEM_FREETYPE=ON - -DVTK_USE_SYSTEM_JPEG=ON - -DVTK_USE_SYSTEM_PNG=ON - -DVTK_USE_SYSTEM_TIFF=ON - -DVTK_USE_SYSTEM_ZLIB=ON - -DVTK_USE_SYSTEM_EXPAT=ON - -DVTK_USE_SYSTEM_LIBXML2=ON - -DBUILD_TESTING=OFF - -DBUILD_EXAMPLES=OFF - -DVTK_USE_HYBRID=ON - -DVTK_USE_GL2PS=ON - -DVTK_USE_RENDERING=ON) - - # use flag triggered options - mycmakeargs+=( - $(cmake-utils_use boost VTK_USE_BOOST) - $(cmake-utils_use cg VTK_USE_CG_SHADERS) - $(cmake-utils_use tcl VTK_WRAP_TCL) - $(cmake-utils_use tk VTK_USE_TK) - $(cmake-utils_use threads VTK_USE_PARALLEL) - $(cmake-utils_use patented VTK_USE_PATENTED) - $(cmake-utils_use doc DOCUMENTATION_HTML_HELP) - $(cmake-utils_use_build doc DOCUMENTATION) - $(cmake-utils_use mpi VTK_USE_MPI)) - - # mpi needs the parallel framework - if use mpi && use !threads; then - mycmakeargs+=(-DVTK_USE_PARALLEL=ON) - fi - - if use java; then - mycmakeargs+=( - -DVTK_WRAP_JAVA=ON - -DJAVA_AWT_INCLUDE_PATH=`java-config -O`/include - -DJAVA_INCLUDE_PATH:PATH=`java-config -O`/include - -DJAVA_INCLUDE_PATH2:PATH=`java-config -O`/include/linux) - - if [ "${ARCH}" == "amd64" ]; then - mycmakeargs+=(-DJAVA_AWT_LIBRARY=`java-config -O`/jre/lib/${ARCH}/libjawt.so) - else - mycmakeargs+=(-DJAVA_AWT_LIBRARY:PATH=`java-config -O`/jre/lib/i386/libjawt.so) - fi - fi - - if use python; then - mycmakeargs+=( - -DVTK_WRAP_PYTHON=ON - -DPYTHON_INCLUDE_PATH=$(python_get_includedir) - -DPYTHON_LIBRARY=$(python_get_library) - -DVTK_PYTHON_SETUP_ARGS:STRING=--root="${D}") - fi - - if use qt4 ; then - mycmakeargs+=( - -DVTK_USE_GUISUPPORT=ON - -DVTK_USE_QVTK=ON - -DVTK_USE_QVTK_QTOPENGL=ON - -DQT_WRAP_CPP=ON - -DQT_WRAP_UI=ON) - fi - - if use qt4; then - mycmakeargs+=( - -DVTK_INSTALL_QT_DIR=/$(get_libdir)/qt4/plugins/${PN} - -DDESIRED_QT_VERSION=4 - -DQT_MOC_EXECUTABLE=/usr/bin/moc - -DQT_UIC_EXECUTABLE=/usr/bin/uic - -DQT_INCLUDE_DIR=/usr/include/qt4 - -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake) - fi - - cmake-utils_src_configure -} - -src_install() { - cmake-utils_src_install - - # install docs - dohtml "${S}"/README.html || die "Failed to install docs" - - # install Tcl docs - docinto vtk_tcl - dodoc "${S}"/Wrapping/Tcl/README || \ - die "Failed to install Tcl docs" - - # install examples - if use examples; then - dodir /usr/share/${PN} || \ - die "Failed to create data/examples directory" - - cp -pPR "${S}"/Examples "${D}"/usr/share/${PN}/examples || \ - die "Failed to copy example files" - - # fix example's permissions - find "${D}"/usr/share/${PN}/examples -type d -exec \ - chmod 0755 {} \; || \ - die "Failed to fix example directories permissions" - find "${D}"/usr/share/${PN}/examples -type f -exec \ - chmod 0644 {} \; || \ - die "Failed to fix example files permissions" - - cp -pPR "${WORKDIR}"/VTKData "${D}"/usr/share/${PN}/data || \ - die "Failed to copy data files" - - # fix data's permissions - find "${D}"/usr/share/${PN}/data -type d -exec \ - chmod 0755 {} \; || \ - die "Failed to fix data directories permissions" - find "${D}"/usr/share/${PN}/data -type f -exec \ - chmod 0644 {} \; || \ - die "Failed to fix data files permissions" - fi - - #install big docs - if use doc; then - cd "${WORKDIR}"/html - rm -f *.md5 || die "Failed to remove superfluous hashes" - einfo "Installing API docs. This may take some time." - insinto "/usr/share/doc/${PF}/api-docs" - doins -r ./* || die "Failed to install docs" - fi - - # environment - echo "VTK_DATA_ROOT=/usr/share/${PN}/data" >> "${T}"/40${PN} - echo "VTK_DIR=/usr/$(get_libdir)/${PN}-${SPV}" >> "${T}"/40${PN} - echo "VTKHOME=/usr" >> "${T}"/40${PN} - doenvd "${T}"/40${PN} -} - -pkg_postinst() { - if use patented; then - ewarn "Using patented code in VTK may require a license." - ewarn "For more information, please read:" - ewarn "http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq07.005.htp" - fi - - if use python; then - python_mod_optimize vtk - fi -} - -pkg_postrm() { - if use python; then - python_mod_cleanup vtk - fi -} diff --git a/sci-libs/vtk/vtk-5.6.0-r2.ebuild b/sci-libs/vtk/vtk-5.6.0-r2.ebuild index 724e60478199..68043131af53 100644 --- a/sci-libs/vtk/vtk-5.6.0-r2.ebuild +++ b/sci-libs/vtk/vtk-5.6.0-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/vtk-5.6.0-r2.ebuild,v 1.5 2010/07/24 18:25:18 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/vtk-5.6.0-r2.ebuild,v 1.6 2010/11/08 17:48:45 xarthisius Exp $ EAPI="3" PYTHON_DEPEND="python? 2" @@ -44,7 +44,7 @@ RDEPEND=" dev-libs/expat dev-libs/libxml2 media-libs/freetype - media-libs/jpeg + virtual/jpeg media-libs/libpng media-libs/mesa media-libs/tiff |