Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 213136 Details for
Bug 287589
sci-visualization/paraview use cmake command directly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
OK ported to the newest cmake-utils eclass and with an added patch.
paraview-3.6.1-r1.ebuild (text/plain), 6.51 KB, created by
François Bissey
on 2009-12-15 20:44:13 UTC
(
hide
)
Description:
OK ported to the newest cmake-utils eclass and with an added patch.
Filename:
MIME Type:
Creator:
François Bissey
Created:
2009-12-15 20:44:13 UTC
Size:
6.51 KB
patch
obsolete
># 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 toolchain-funcs versionator python qt4 cmake-utils > >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 streaming cg" ># wether cg is 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 ) > 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 )" > >PVLIBDIR="$(get_libdir)/${PN}-${MAJOR_PV}" >S="${WORKDIR}"/ParaView${MAIN_PV} > >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" > epatch "${FILESDIR}/${P}-VTK-cg-path.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. > local 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_GL2PS: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 streaming PARAVIEW_BUILD_StreamingParaView) > $(cmake-utils_use mpi PARAVIEW_USE_MPI) > $(cmake-utils_use python PARAVIEW_ENABLE_PYTHON) > $(cmake-utils_use qt4 PARAVIEW_BUILD_QT_GUI) > $(cmake-utils_use_build doc DOCUMENTATION) > $(cmake-utils_use_build examples EXAMPLES) > ) > > # FIXME: compiling against ffmpeg is currently broken > 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+=("-DPARAVIEW_BUILD_PLUGIN_VisItReaderPlugin:BOOL=OFF") > > # PointSprite: Does it require mpi (seems to build without)? Says it really should need cmake>2.7 . > use plugins && 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) > ) > > # Extra options to build the QT4 client > use qt4 && mycmakeargs+=( > "-DVTK_INSTALL_QT_DIR=/${PVLIBDIR}/plugins/designer" > "-DVTK_USE_QT:BOOL=ON" > "-DVTK_USE_QVTK_QTOPENGL:BOOL=ON" > ) > > # we also need to append -DH5Tget_array_dims_vers=1 to our CFLAGS > append-flags -DH5_USE_16_API > > cmake-utils_src_configure >} > >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 > > # 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 >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 287589
:
213058
|
213136
|
213137
|
213161
|
213163