From: "Francois Bissey" <f.r.bissey@massey.ac.nz>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-visualization/paraview/
Date: Thu, 16 Jun 2011 02:21:34 +0000 (UTC) [thread overview]
Message-ID: <4baec200431258c4b7cfaa5b9044f1a2d2168939.fbissey@gentoo> (raw)
commit: 4baec200431258c4b7cfaa5b9044f1a2d2168939
Author: François Bissey <francois.bissey <AT> canterbury <DOT> ac <DOT> nz>
AuthorDate: Thu Jun 16 02:20:33 2011 +0000
Commit: Francois Bissey <f.r.bissey <AT> massey <DOT> ac <DOT> nz>
CommitDate: Thu Jun 16 02:20:33 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=4baec200
new version of paraview (3.10.1)
(Portage version: 2.2.0_alpha41/git/Linux x86_64, unsigned Manifest commit)
---
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/paraview/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: $
+*paraview-3.10.1 (16 Jun 2011)
+
+ 16 Jun 2011; François Bissey <francois.bissey@canterbury.ac.nz>
+ +paraview-3.10.1.ebuild, metadata.xml:
+ New paraview ebuild for 3.10.1
+
13 Apr 2011; Justin Lecher <jlec@gentoo.org> paraview-3.8.1.ebuild:
Fix for python ABI stuff
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 @@
<flag name='streaming'>Enable streaming paraview application</flag>
<flag name='adaptive'>Enable the adaptive paraview application</flag>
<flag name='mysql'>Build support for MySQL data item in the XDMF format</flag>
+ <flag name='nvcontrol'>Add NVCONTROL support for OpenGL options</flag>
+ <flag name='webkit'>Built support for qt-webkit in vtk</flag>
<flag name='coprocessing'>Enable the coprocessing infrastructure which is mainly useful in the context of clusters</flag>
</use>
</pkgmetadata>
diff --git a/sci-visualization/paraview/paraview-3.10.1.ebuild b/sci-visualization/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=2
+
+PYTHON_DEPEND="python? 2:2.6"
+
+inherit eutils flag-o-matic toolchain-funcs versionator multilib python qt4-r2 cmake-utils
+
+MAIN_PV=$(get_major_version)
+MAJOR_PV=$(get_version_component_range 1-2)
+MY_P="ParaView-${PV}"
+
+DESCRIPTION="ParaView is a powerful scientific data visualization application"
+HOMEPAGE="http://www.paraview.org"
+SRC_URI="http://www.paraview.org/files/v${MAJOR_PV}/${MY_P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="paraview GPL-2"
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+IUSE="mpi +python doc examples +gui plugins adaptive streaming cg mysql nvcontrol webkit -coprocessing"
+
+RDEPEND="
+ sci-libs/hdf5[mpi=]
+ mpi? ( virtual/mpi[cxx,romio] )
+ gui? (
+ x11-libs/qt-gui:4
+ x11-libs/qt-qt3support:4
+ x11-libs/qt-opengl:4
+ || ( >=x11-libs/qt-assistant-4.7.0:4[compat] <x11-libs/qt-assistant-4.7.0:4 )
+ x11-libs/qt-sql:4
+ webkit? ( x11-libs/qt-webkit:4 ) )
+ adaptive? (
+ x11-libs/qt-gui:4
+ x11-libs/qt-qt3support:4
+ x11-libs/qt-opengl:4
+ x11-libs/qt-assistant:4
+ webkit? ( x11-libs/qt-webkit:4 ) )
+ mysql? ( virtual/mysql )
+ coprocessing? ( plugins? ( x11-libs/qt-gui:4 ) )
+ python? ( dev-python/sip )
+ dev-libs/libxml2:2
+ media-libs/libpng
+ virtual/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.6.4"
+
+PVLIBDIR=$(get_libdir)/${PN}-${MAJOR_PV}
+S=${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_BIN_DIR \"/${PV_INSTALL_LIB_DIR}\":' \
+ -i CMake/ParaViewCommon.cmake || die "failed to patch vtk install location"
+
+ 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=(
+ -DPV_INSTALL_LIB_DIR="${PVLIBDIR}"
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DPV_INSTALL_DOC_DIR="/usr/share/doc/${P}"
+ -DEXPAT_INCLUDE_DIR=/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
+ -DCMAKE_SKIP_RPATH=YES
+ -DVTK_USE_RPATH=OFF
+ -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
+ -DPARAVIEW_USE_SYSTEM_HDF5=ON
+ -DCMAKE_VERBOSE_MAKEFILE=OFF
+ -DCMAKE_COLOR_MAKEFILE=TRUE
+ -DVTK_USE_SYSTEM_LIBXML2=ON
+ -DVTK_USE_OFFSCREEN=TRUE
+ -DCMAKE_USE_PTHREADS=ON
+ -DBUILD_TESTING=OFF
+ -DVTK_USE_FFMPEG_ENCODER=OFF
+ -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES=OFF)
+
+ # use flag triggered options
+ mycmakeargs+=(
+ $(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+=(-DVTK_INSTALL_QT_DIR=/${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 is not propagated properly
+ mycmakeargs+=(-DSIP_INCLUDE_DIR=$(python_get_includedir))
+ fi
+ fi
+
+ # the rest of the plugins
+ mycmakeargs+=(
+ $(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_AnalyzeNIfTIReaderWriter)
+ $(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+=($(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_pvblot))
+ fi
+
+ if use coprocessing; then
+ mycmakeargs+=($(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator))
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # set up the environment
+ echo "LDPATH=/usr/${PVLIBDIR}" >> "${T}"/40${PN}
+ echo "PYTHONPATH=/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=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."
+ echo
+}
+
+pkg_postrm() {
+ if use python ; then
+ python_mod_cleanup /usr/$(get_libdir)/"${PN}-${MAJOR_PV}"/site-packages
+ fi
+}
next reply other threads:[~2011-06-16 2:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-16 2:21 Francois Bissey [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-12-17 7:55 [gentoo-commits] proj/sci:master commit in: sci-visualization/paraview/ Francois Bissey
2012-09-20 1:56 Francois Bissey
2012-09-16 10:48 Francois Bissey
2011-06-24 17:09 Justin Lecher
2011-04-13 17:26 Justin Lecher
2011-03-09 15:12 Oliver Borm
2011-03-07 12:01 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4baec200431258c4b7cfaa5b9044f1a2d2168939.fbissey@gentoo \
--to=f.r.bissey@massey.ac.nz \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox