From 16addbe1dac65999c0e93a7e74e05cf12c101855 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sat, 27 Oct 2018 16:08:21 +0200 Subject: sci-libs/vtk: Relies also in netcdf:0= Signed-off-by: Pacho Ramos Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- sci-libs/vtk/vtk-8.1.0-r3.ebuild | 333 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 333 insertions(+) create mode 100644 sci-libs/vtk/vtk-8.1.0-r3.ebuild (limited to 'sci-libs') diff --git a/sci-libs/vtk/vtk-8.1.0-r3.ebuild b/sci-libs/vtk/vtk-8.1.0-r3.ebuild new file mode 100644 index 000000000000..bfe60457d8c5 --- /dev/null +++ b/sci-libs/vtk/vtk-8.1.0-r3.ebuild @@ -0,0 +1,333 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_5,3_6} ) +WEBAPP_OPTIONAL=yes +WEBAPP_MANUAL_SLOT=yes + +inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp + +# Short package version +SPV="$(get_version_component_range 1-2)" + +DESCRIPTION="The Visualization Toolkit" +HOMEPAGE="https://www.vtk.org/" +SRC_URI=" + https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz + doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz ) + examples? ( + https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz + https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz + )" + +LICENSE="BSD LGPL-2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +SLOT="0" +IUSE=" + all-modules aqua boost doc examples imaging ffmpeg gdal java json kaapi mpi + mysql odbc offscreen postgres python qt5 rendering tbb theora tk tcl + video_cards_nvidia views web R +X xdmf2" + +REQUIRED_USE=" + all-modules? ( python xdmf2 boost ) + java? ( qt5 ) + python? ( ${PYTHON_REQUIRED_USE} ) + tcl? ( rendering ) + examples? ( python ) + tk? ( tcl ) + web? ( python ) + ^^ ( X aqua offscreen )" + +RDEPEND=" + app-arch/lz4 + dev-libs/expat + dev-libs/jsoncpp:= + dev-libs/libxml2:2 + >=media-libs/freetype-2.5.4 + >=media-libs/libharu-2.3.0-r2 + media-libs/libpng:0= + media-libs/libtheora + media-libs/mesa + media-libs/tiff:0 + sci-libs/exodusii + sci-libs/hdf5:= + sci-libs/netcdf:0= + sci-libs/netcdf-cxx:3 + sys-libs/zlib + virtual/jpeg:0 + virtual/opengl + x11-libs/libX11 + x11-libs/libXmu + x11-libs/libXt + boost? ( dev-libs/boost:=[mpi?] ) + examples? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + ) + ffmpeg? ( virtual/ffmpeg ) + gdal? ( sci-libs/gdal ) + java? ( >=virtual/jdk-1.7:* ) + kaapi? ( > "${T}"/40${PN} <<- EOF || die + VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data + VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV} + VTKHOME=${EPREFIX}/usr + EOF + doenvd "${T}"/40${PN} + + use web && webapp_src_install +} + +# webapp.eclass exports these but we want it optional #534036 +pkg_postinst() { + use web && webapp_pkg_postinst +} + +pkg_prerm() { + use web && webapp_pkg_prerm +} -- cgit v1.2.3-18-g5258