summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2008-10-28 21:41:15 +0000
committerMarkus Dittrich <markusle@gentoo.org>2008-10-28 21:41:15 +0000
commitf35b6527de6639a9ca26a4a459a5a0a7e656b797 (patch)
treede49560056d3e9ef108101b258a9f87b2a7761d5 /sci-visualization/paraview
parentVersion bump, bug #241338 (diff)
downloadgentoo-2-f35b6527de6639a9ca26a4a459a5a0a7e656b797.tar.gz
gentoo-2-f35b6527de6639a9ca26a4a459a5a0a7e656b797.tar.bz2
gentoo-2-f35b6527de6639a9ca26a4a459a5a0a7e656b797.zip
Version bump (see bug #243362).
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-SENTINEL-1 i686)
Diffstat (limited to 'sci-visualization/paraview')
-rw-r--r--sci-visualization/paraview/ChangeLog7
-rw-r--r--sci-visualization/paraview/paraview-3.4.0.ebuild163
2 files changed, 169 insertions, 1 deletions
diff --git a/sci-visualization/paraview/ChangeLog b/sci-visualization/paraview/ChangeLog
index 90a8889483a6..9a42fe53f996 100644
--- a/sci-visualization/paraview/ChangeLog
+++ b/sci-visualization/paraview/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-visualization/paraview
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/ChangeLog,v 1.26 2008/10/22 15:24:11 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/ChangeLog,v 1.27 2008/10/28 21:41:15 markusle Exp $
+
+*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:
diff --git a/sci-visualization/paraview/paraview-3.4.0.ebuild b/sci-visualization/paraview/paraview-3.4.0.ebuild
new file mode 100644
index 000000000000..ae2463195da7
--- /dev/null
+++ b/sci-visualization/paraview/paraview-3.4.0.ebuild
@@ -0,0 +1,163 @@
+# 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.4.0.ebuild,v 1.1 2008/10/28 21:41:15 markusle Exp $
+
+EAPI="2"
+
+inherit distutils eutils flag-o-matic toolchain-funcs versionator python qt4
+
+MY_PV="3.3"
+PATCH_V="${MY_PV}_pre20080514"
+
+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.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[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-4.3*:4 ) )
+ dev-libs/libxml2
+ media-libs/libpng
+ media-libs/jpeg
+ media-libs/tiff
+ 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.4.5"
+
+PVLIBDIR="$(get_libdir)/${PN}-${MY_PV}"
+BUILDDIR="${WORKDIR}/build"
+S="${WORKDIR}"/ParaView-${PV}
+
+pkg_setup() {
+ use qt4 && qt4_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ mkdir "${BUILDDIR}" || die "Failed to generate build directory"
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-${PATCH_V}-gcc4.3.patch
+ epatch "${FILESDIR}"/${PN}-${PATCH_V}-qt4.4.patch
+ epatch "${DISTDIR}"/${P}-OpenFOAM.patch.bz2
+
+ # 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"
+ CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_OFFSCREEN=TRUE"
+
+ # 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"
+ 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/$(get_libdir)/${PN}-${MY_PV}/assistant-real \
+ || die "Failed to change permissions on assistant wrapper"
+ fi
+
+ # add release note for the OpenFOAM-1.5 patch
+ dodoc "${S}"/ReleaseNotes_OpenFOAMReader20080831
+
+ # set up the environment
+ echo "LDPATH=/usr/${PVLIBDIR}" >> "${T}"/40${PN}
+ doenvd "${T}"/40${PN}
+}