From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QX2DH-0004qR-G7 for garchives@archives.gentoo.org; Thu, 16 Jun 2011 02:21:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 343FF1C02D; Thu, 16 Jun 2011 02:21:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D93C41C02D for ; Thu, 16 Jun 2011 02:21:35 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 399E31B4001 for ; Thu, 16 Jun 2011 02:21:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 8E8818003C for ; Thu, 16 Jun 2011 02:21:34 +0000 (UTC) From: "Francois Bissey" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Francois Bissey" Message-ID: <4baec200431258c4b7cfaa5b9044f1a2d2168939.fbissey@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-visualization/paraview/ X-VCS-Repository: proj/sci X-VCS-Files: sci-visualization/paraview/ChangeLog sci-visualization/paraview/metadata.xml sci-visualization/paraview/paraview-3.10.1.ebuild X-VCS-Directories: sci-visualization/paraview/ X-VCS-Committer: fbissey X-VCS-Committer-Name: Francois Bissey X-VCS-Revision: 4baec200431258c4b7cfaa5b9044f1a2d2168939 Date: Thu, 16 Jun 2011 02:21:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: efcb3afeb1a86c5df535edb2d18db5cd commit: 4baec200431258c4b7cfaa5b9044f1a2d2168939 Author: Fran=C3=A7ois Bissey canterbury a= c nz> AuthorDate: Thu Jun 16 02:20:33 2011 +0000 Commit: Francois Bissey massey ac nz> CommitDate: Thu Jun 16 02:20:33 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D4baec200 new version of paraview (3.10.1) (Portage version: 2.2.0_alpha41/git/Linux x86_64, unsigned Manifest commi= t) --- sci-visualization/paraview/ChangeLog | 6 + sci-visualization/paraview/metadata.xml | 2 + sci-visualization/paraview/paraview-3.10.1.ebuild | 209 +++++++++++++++= ++++++ 3 files changed, 217 insertions(+), 0 deletions(-) diff --git a/sci-visualization/paraview/ChangeLog b/sci-visualization/par= aview/ChangeLog index c6ff099..43e3d2d 100644 --- a/sci-visualization/paraview/ChangeLog +++ b/sci-visualization/paraview/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ =20 +*paraview-3.10.1 (16 Jun 2011) + + 16 Jun 2011; Fran=C3=A7ois Bissey + +paraview-3.10.1.ebuild, metadata.xml: + New paraview ebuild for 3.10.1 + 13 Apr 2011; Justin Lecher paraview-3.8.1.ebuild: Fix for python ABI stuff =20 diff --git a/sci-visualization/paraview/metadata.xml b/sci-visualization/= paraview/metadata.xml index fc440a8..fbac1bb 100644 --- a/sci-visualization/paraview/metadata.xml +++ b/sci-visualization/paraview/metadata.xml @@ -13,6 +13,8 @@ Enable streaming paraview application Enable the adaptive paraview application Build support for MySQL data item in the XDMF for= mat + Add NVCONTROL support for OpenGL options + Built support for qt-webkit in vtk Enable the coprocessing infrastructure whi= ch is mainly useful in the context of clusters diff --git a/sci-visualization/paraview/paraview-3.10.1.ebuild b/sci-visu= alization/paraview/paraview-3.10.1.ebuild new file mode 100644 index 0000000..923a8c5 --- /dev/null +++ b/sci-visualization/paraview/paraview-3.10.1.ebuild @@ -0,0 +1,209 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D2 + +PYTHON_DEPEND=3D"python? 2:2.6" + +inherit eutils flag-o-matic toolchain-funcs versionator multilib python = qt4-r2 cmake-utils + +MAIN_PV=3D$(get_major_version) +MAJOR_PV=3D$(get_version_component_range 1-2) +MY_P=3D"ParaView-${PV}" + +DESCRIPTION=3D"ParaView is a powerful scientific data visualization appl= ication" +HOMEPAGE=3D"http://www.paraview.org" +SRC_URI=3D"http://www.paraview.org/files/v${MAJOR_PV}/${MY_P}.tar.gz" +RESTRICT=3D"mirror" + +LICENSE=3D"paraview GPL-2" +KEYWORDS=3D"~x86 ~amd64" +SLOT=3D"0" +IUSE=3D"mpi +python doc examples +gui plugins adaptive streaming cg mysq= l nvcontrol webkit -coprocessing" + +RDEPEND=3D" + sci-libs/hdf5[mpi=3D] + mpi? ( virtual/mpi[cxx,romio] ) + gui? ( + x11-libs/qt-gui:4 + x11-libs/qt-qt3support:4 + x11-libs/qt-opengl:4 + || ( >=3Dx11-libs/qt-assistant-4.7.0:4[compat] =3Dapp-admin/eselect-opengl-1.0.6-r1 + virtual/opengl + sci-libs/netcdf + x11-libs/libXmu" +DEPEND=3D"${RDEPEND} + doc? ( app-doc/doxygen ) + >=3Ddev-util/cmake-2.6.4" + +PVLIBDIR=3D$(get_libdir)/${PN}-${MAJOR_PV} +S=3D${WORKDIR}/${MY_P} + +pkg_setup() { + use python && python_set_active_version 2 +} + +src_prepare() { + # gcc header fix + epatch "${FILESDIR}"/${PN}-3.8.0-xdmf-cstring.patch + # disable automatic byte compiling that act directly on the live system + epatch "${FILESDIR}"/${PN}-3.8.0-xdmf-bc.patch + # Install properly pointspritedemo without duplicate DESTDIR + epatch "${FILESDIR}"/${PN}-3.8.0-pointsprite-example-install.patch + # mpi + hdf5 fix + #epatch "${FILESDIR}"/${PN}-3.8.0-h5part.patch + + # lib64 fixes + sed -i "s:/usr/lib:/usr/$(get_libdir):g" \ + Utilities/Xdmf2/libsrc/CMakeLists.txt || die "sed failed" + sed -i "s:\/lib\/python:\/$(get_libdir)\/python:g" \ + Utilities/Xdmf2/CMake/setup_install_paths.py || die "sed failed" + + # Install internal vtk binaries inside /usr/${PVLIBDIR} + sed -e 's:VTK_INSTALL_BIN_DIR \"/${PV_INSTALL_BIN_DIR}\":VTK_INSTALL_BI= N_DIR \"/${PV_INSTALL_LIB_DIR}\":' \ + -i CMake/ParaViewCommon.cmake || die "failed to patch vtk install loca= tion" + + cd VTK + epatch "${FILESDIR}"/vtk-5.6.0-cg-path.patch + + # help vtk to find PyQT4 sip if required + sed -e 's:/usr/share/sip/PyQt4:/usr/share/sip:' \ + -i GUISupport/Qt/CMakeLists.txt +} + +src_configure() { + mycmakeargs=3D( + -DPV_INSTALL_LIB_DIR=3D"${PVLIBDIR}" + -DCMAKE_INSTALL_PREFIX=3D/usr + -DPV_INSTALL_DOC_DIR=3D"/usr/share/doc/${P}" + -DEXPAT_INCLUDE_DIR=3D/usr/include + -DEXPAT_LIBRARY=3D/usr/$(get_libdir)/libexpat.so + -DOPENGL_gl_LIBRARY=3D/usr/$(get_libdir)/libGL.so + -DOPENGL_glu_LIBRARY=3D/usr/$(get_libdir)/libGLU.so + -DCMAKE_SKIP_RPATH=3DYES + -DVTK_USE_RPATH=3DOFF + -DBUILD_SHARED_LIBS=3DON + -DVTK_USE_SYSTEM_FREETYPE=3DON + -DVTK_USE_SYSTEM_JPEG=3DON + -DVTK_USE_SYSTEM_PNG=3DON + -DVTK_USE_SYSTEM_TIFF=3DON + -DVTK_USE_SYSTEM_ZLIB=3DON + -DVTK_USE_SYSTEM_EXPAT=3DON + -DPARAVIEW_USE_SYSTEM_HDF5=3DON + -DCMAKE_VERBOSE_MAKEFILE=3DOFF + -DCMAKE_COLOR_MAKEFILE=3DTRUE + -DVTK_USE_SYSTEM_LIBXML2=3DON + -DVTK_USE_OFFSCREEN=3DTRUE + -DCMAKE_USE_PTHREADS=3DON + -DBUILD_TESTING=3DOFF + -DVTK_USE_FFMPEG_ENCODER=3DOFF + -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES=3DOFF) + + # use flag triggered options + mycmakeargs+=3D( + $(cmake-utils_use gui PARAVIEW_BUILD_QT_GUI) + $(cmake-utils_use gui VTK_USE_QVTK) + $(cmake-utils_use gui VTK_USE_QVTK_QTOPENGL) + $(cmake-utils_use mpi PARAVIEW_USE_MPI) + $(cmake-utils_use mpi PARAVIEW_USE_MPI_SSEND) + $(cmake-utils_use python PARAVIEW_ENABLE_PYTHON) + $(cmake-utils_use python VTK_WRAP_PYTHON_SIP) + $(cmake-utils_use python XDMF_WRAP_PYTHON) + $(cmake-utils_use doc BUILD_DOCUMENTATION) + $(cmake-utils_use examples BUILD_EXAMPLES) + $(cmake-utils_use cg VTK_USE_CG_SHADERS) + $(cmake-utils_use nvcontrol VTK_USE_NVCONTROL) + $(cmake-utils_use adaptive PARAVIEW_BUILD_AdaptiveParaView) + $(cmake-utils_use streaming PARAVIEW_BUILD_StreamingParaView) + $(cmake-utils_use mysql XDMF_USE_MYSQL) + $(cmake-utils_use coprocessing PARAVIEW_ENABLE_COPROCESSING)) + + if ( use gui || use adaptive ); then + mycmakeargs+=3D(-DVTK_INSTALL_QT_DIR=3D/${PVLIBDIR}/plugins/designer + $(cmake-utils_use webkit VTK_QT_USE_WEBKIT)) + if use python ; then + # paraview cannot guess sip directory right probably because a path i= s not propagated properly + mycmakeargs+=3D(-DSIP_INCLUDE_DIR=3D$(python_get_includedir)) + fi + fi + + # the rest of the plugins + mycmakeargs+=3D( + $(cmake-utils_use plugins PARAVIEW_INSTALL_DEVELOPMENT) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_ClientChartView) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_CosmoFilters) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_H5PartReader) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_Moments) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_PointSprite) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_Prism) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SLACTools) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_AnalyzeNIfTIReaderWrit= er) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SurfaceLIC) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_EyeDomeLighting) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_ForceTime) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SierraPlotTools) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_StreamingView) + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_VisTrailPlugin)) + + if use python; then + mycmakeargs+=3D($(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_pvblot= )) + fi + + if use coprocessing; then + mycmakeargs+=3D($(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_CoProc= essingScriptGenerator)) + fi + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + # set up the environment + echo "LDPATH=3D/usr/${PVLIBDIR}" >> "${T}"/40${PN} + echo "PYTHONPATH=3D/usr/${PVLIBDIR}:/usr/${PVLIBDIR}/site-packages" >> = "${T}"/40${PN} + doenvd "${T}"/40${PN} + + # last but not least lets make a desktop entry + newicon "${S}"/Applications/ParaView/pvIcon.png paraview.png \ + || die "Failed to create paraview icon." + make_desktop_entry paraview "Paraview" paraview \ + || die "Failed to install Paraview desktop entry" + +} + +pkg_postinst() { + # with Qt4.5 there seem to be issues reading data files + # under certain locales. Setting LC_ALL=3DC 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=3DC." + echo +} + +pkg_postrm() { + if use python ; then + python_mod_cleanup /usr/$(get_libdir)/"${PN}-${MAJOR_PV}"/site-package= s + fi +}