From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 15C20138334 for ; Sun, 9 Sep 2018 19:10:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1A88E0AA2; Sun, 9 Sep 2018 19:10:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 994B8E0AA2 for ; Sun, 9 Sep 2018 19:10:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 81337335C32 for ; Sun, 9 Sep 2018 19:10:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 86C703B1 for ; Sun, 9 Sep 2018 19:10:03 +0000 (UTC) From: "Amy Liffey" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Amy Liffey" Message-ID: <1536520161.a6334d713989743f3f7ab7e8c7ea078a4ed7bfd5.amynka@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/vtk/vtk-8.1.0-r2.ebuild X-VCS-Directories: sci-libs/vtk/ X-VCS-Committer: amynka X-VCS-Committer-Name: Amy Liffey X-VCS-Revision: a6334d713989743f3f7ab7e8c7ea078a4ed7bfd5 X-VCS-Branch: master Date: Sun, 9 Sep 2018 19:10:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: aea9cbcf-162d-474a-a272-f086161e3683 X-Archives-Hash: 63e578bd72e1dd1b61ba21a7bd915a81 commit: a6334d713989743f3f7ab7e8c7ea078a4ed7bfd5 Author: Amy Liffey gentoo org> AuthorDate: Sun Sep 9 19:06:11 2018 +0000 Commit: Amy Liffey gentoo org> CommitDate: Sun Sep 9 19:09:21 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6334d71 sci-libs/vtk: add python3 support Closes: https://bugs.gentoo.org/658698 Suggested-by: Charles G. Waldman alum.mit.edu> Package-Manager: Portage-2.3.40, Repoman-2.3.9 sci-libs/vtk/vtk-8.1.0-r2.ebuild | 332 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 332 insertions(+) diff --git a/sci-libs/vtk/vtk-8.1.0-r2.ebuild b/sci-libs/vtk/vtk-8.1.0-r2.ebuild new file mode 100644 index 00000000000..6b84275f59c --- /dev/null +++ b/sci-libs/vtk/vtk-8.1.0-r2.ebuild @@ -0,0 +1,332 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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-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 +}