# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/vtk-6.1.0.ebuild,v 1.3 2014/12/28 16:53:38 titanofold Exp $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7} ) CMAKE_MAKEFILE_GENERATOR=ninja WEBAPP_OPTIONAL=yes WEBAPP_MANUAL_SLOT=yes inherit eutils flag-o-matic java-pkg-opt-2 python-single-r1 qt4-r2 versionator toolchain-funcs cmake-utils virtualx webapp # Short package version SPV="$(get_version_component_range 1-2)" DESCRIPTION="The Visualization Toolkit" HOMEPAGE="http://www.vtk.org/" SRC_URI=" http://www.${PN}.org/files/release/${SPV}/VTK-${PV}.tar.gz doc? ( http://www.${PN}.org/files/release/${SPV}/${PN}DocHtml-${PV}.tar.gz ) test? ( http://www.${PN}.org/files/release/${SPV}/VTKData-${PV}.tar.gz http://www.${PN}.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 cg doc examples imaging ffmpeg gdal java json kaapi mpi mysql odbc offscreen postgres python qt4 rendering smp tbb test theora tk tcl video_cards_nvidia views web xdmf2 R +X" REQUIRED_USE=" all-modules? ( python xdmf2 ) java? ( qt4 ) python? ( ${PYTHON_REQUIRED_USE} ) tcl? ( rendering ) smp? ( ^^ ( kaapi tbb ) ) test? ( python ) tk? ( tcl ) web? ( python ) ^^ ( X aqua offscreen ) " RDEPEND=" dev-libs/expat dev-libs/libxml2:2 >=media-libs/freetype-2.5.4 media-libs/libpng media-libs/mesa media-libs/libtheora media-libs/tiff sci-libs/exodusii sci-libs/hdf5:= sci-libs/netcdf-cxx:3 sys-libs/zlib virtual/jpeg virtual/opengl >=x11-libs/gl2ps-1.3.8 x11-libs/libX11 x11-libs/libXmu x11-libs/libXt boost? ( >=dev-libs/boost-1.40.0[mpi?] ) cg? ( media-gfx/nvidia-cg-toolkit ) examples? ( dev-qt/qtcore:4 dev-qt/qtgui:4 sci-libs/vtkdata ) ffmpeg? ( virtual/ffmpeg ) gdal? ( sci-libs/gdal ) java? ( >=virtual/jre-1.5 ) kaapi? ( > "${T}"/40${PN} <<- EOF 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 }