diff options
author | Slawomir Lis <slis@gentoo.org> | 2016-05-13 06:46:31 +0200 |
---|---|---|
committer | Slawomir Lis <slis@gentoo.org> | 2016-05-13 06:46:31 +0200 |
commit | 624f673c46d01eb4fba27dc9aaf2537c9a4191de (patch) | |
tree | 83bccd94c7df8103f78bccb3e8e603b8a0a54f32 | |
parent | dev-vcs/bfg: remove old (diff) | |
download | gentoo-624f673c46d01eb4fba27dc9aaf2537c9a4191de.tar.gz gentoo-624f673c46d01eb4fba27dc9aaf2537c9a4191de.tar.bz2 gentoo-624f673c46d01eb4fba27dc9aaf2537c9a4191de.zip |
version bump + #582598
Package-Manager: portage-2.2.28
-rw-r--r-- | sci-visualization/visit/Manifest | 1 | ||||
-rw-r--r-- | sci-visualization/visit/visit-2.9.2.ebuild | 103 |
2 files changed, 104 insertions, 0 deletions
diff --git a/sci-visualization/visit/Manifest b/sci-visualization/visit/Manifest index c3f00bcbc74e..2479dc629100 100644 --- a/sci-visualization/visit/Manifest +++ b/sci-visualization/visit/Manifest @@ -1,3 +1,4 @@ DIST visit2.7.3.tar.gz 82475238 SHA256 e4ed7b20c4c0fb5aac49181f8ddeae3d2d5a73b1662756ddcaa9d08776a7c39f SHA512 5eea2667482a9b70cf4794446da69595c1145839dfae0afdf961589a09b0f3ad41c44b607f96dbb3e4a3c1ba77161d77a1e0342d6a4e2df8bc73040110c7e8f1 WHIRLPOOL a1157d2424d93037e1ffd8dd10ebc47ae9f3d074a63a811bcadf6db5349dea348432e63d414d4a62a156c9423a1d5fdb240f34b2ec4262e8647def40d999759a DIST visit2.8.2.tar.gz 88008002 SHA256 43d652dde540e3a5db34a2105d89432fa1d018b104ed0508dfb18f4287a43eb3 SHA512 1c2c2b6cad49b32b5cbc7f7ffba5c6ffb98ee88dfeae5c51af5e581ad53fb1efb8fc222b796696e607abd4b748855141de072414bdec1b1ad4e7ac01a928db8d WHIRLPOOL dadfd48bf9522fc67547f2d7fc4332f300d06e3f04f1bd23189f4a6d806286b46420e4caecaba616bf9f954ea3e202efcee7e899d10444304f7f79809e8fc6d9 DIST visit2.9.0.tar.gz 87058013 SHA256 98d7a80d95f4083fffc23a65cff28abd126e2eb0fff43591663818aaa1338fcf SHA512 889a6ff6f0c45064c0705a8a41fd268ad865619e42eb7a3302a520bcb2a3c182a40bc6870ec80c0994fa649f3030f6283b9783fab37b938d4b77fd3c1ab10d15 WHIRLPOOL 8d6e9370fddda7d28c16882a04ac2c196b0c42ffd72436ca601413b7483c72d4b33691a9dc7340d71d536fead3d6692f1491c2bed32ed27ceba0c745b9555380 +DIST visit2.9.2.tar.gz 87165297 SHA256 97d19e2609fbba655772feb055919b925214ab68c95ff46481572bd7e9c9ea31 SHA512 a2bb6423c00e615638ed04233fad9e285585db3668217afea9fb80e1040ba34f75d73500b8e2b7a7dc68b9f8806f69837cfee1115e66c01f0c72b1376148f83b WHIRLPOOL fb12a33d5f61e80489b8e8a8772ddaa2f434be68348dac8c445d204767a2b42a2d2c7341aeab28779637f64b7b949a36ce8f66bcbf060f433edba9069480131f diff --git a/sci-visualization/visit/visit-2.9.2.ebuild b/sci-visualization/visit/visit-2.9.2.ebuild new file mode 100644 index 000000000000..26ca18b8b8b6 --- /dev/null +++ b/sci-visualization/visit/visit-2.9.2.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils python-single-r1 + +DESCRIPTION="A software that delivers parallel interactive visualizations" +HOMEPAGE="https://wci.llnl.gov/codes/visit/home.html" +SRC_URI="http://portal.nersc.gov/svn/visit/trunk/releases/${PV}/${PN}${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cgns debug hdf5 mpi netcdf silo tcmalloc threads" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + tcmalloc? ( dev-util/google-perftools ) + cgns? ( sci-libs/cgnslib ) + hdf5? ( sci-libs/hdf5 ) + netcdf? ( sci-libs/netcdf ) + silo? ( sci-libs/silo ) + >=sci-libs/vtk-6.0.0[imaging,mpi=,python,rendering,qt4,${PYTHON_USEDEP}] + sys-libs/zlib" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}${PV}/src" +PATCHES=( + "${FILESDIR}/${P}-findpython.patch" + "${FILESDIR}/${P}-findsilo.patch" + "${FILESDIR}/${P}-findvtk.patch" + "${FILESDIR}/${P}-vtklibs.patch" + "${FILESDIR}/${P}-dont_symlink_visit_dir.patch" + "${FILESDIR}/${P}-cmakelist.patch" +) + +src_prepare() { + for p in ${PATCHES[@]} ; do + epatch "${p}" + done + if use mpi ; then + epatch "${FILESDIR}/${P}-vtkmpi.patch" + fi + + sed -i 's/exec python $frontendlauncherpy $0 ${1+"$@"}/exec '${EPYTHON}' $frontendlauncherpy $0 ${1+"$@"}/g' "bin/frontendlauncher" +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX=/opt/visit + -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" + -DPYTHON_DIR="${EPREFIX}/usr" + -DVISIT_PYTHON_SKIP_INSTALL=true + -DVISIT_VTK_SKIP_INSTALL=true + -DQT_BIN="${EPREFIX}/usr/bin" + -DVISIT_ZLIB_DIR="${EPREFIX}/usr" + -DVISIT_HEADERS_SKIP_INSTALL=false + $(cmake-utils_use threads VISIT_THREAD) + ) + if use hdf5; then + mycmakeargs+=( -DHDF5_DIR="${EPREFIX}/usr" ) + fi + if use tcmalloc; then + mycmakeargs+=( -DTCMALLOC_DIR="${EPREFIX}/usr" ) + fi + if use cgns; then + mycmakeargs+=( -DCGNS_DIR="${EPREFIX}/usr" ) + fi + if use silo; then + mycmakeargs+=( -DSILO_DIR="${EPREFIX}/usr" ) + fi + if use netcdf; then + mycmakeargs+=( -DNETCDF_DIR="${EPREFIX}/usr" ) + fi + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + PACKAGES_DIR="${ROOT}opt/${PN}/${PV}/linux-$(arch)/lib/site-packages" + cd "${ED}${PACKAGES_DIR}" + for i in *; do + dosym "${PACKAGES_DIR}/${i}" "$(python_get_sitedir)/$i" + done + + cat > "${T}"/99visit <<- EOF + PATH=${EPREFIX}/opt/${PN}/bin + LDPATH=${EPREFIX}/opt/${PN}/${PV}/linux-$(arch)/lib/ + EOF + doenvd "${T}"/99visit +} + +pkg_postinst () { + ewarn "Remember to run " + ewarn "env-update && source /etc/profile" + ewarn "if you want to use visit in already opened session" +} |