diff options
author | Oliver Borm (boroli) <oli.borm@web.de> | 2011-03-09 16:04:04 +0100 |
---|---|---|
committer | Oliver Borm (boroli) <oli.borm@web.de> | 2011-03-09 16:04:04 +0100 |
commit | 0cce1398f9de2d8dfd385283a70b064359578987 (patch) | |
tree | e880fa7a65a21f0330ffa5eae9b83f16dc77a4a7 /sci-visualization/vtkPOFFReader/vtkPOFFReader-300.ebuild | |
parent | sci-libs/geom: New ebuild from bug 358061 (diff) | |
download | sci-0cce1398f9de2d8dfd385283a70b064359578987.tar.gz sci-0cce1398f9de2d8dfd385283a70b064359578987.tar.bz2 sci-0cce1398f9de2d8dfd385283a70b064359578987.zip |
sci-visualization/vtkPOFFReader: New ebuild for bug 358077
Diffstat (limited to 'sci-visualization/vtkPOFFReader/vtkPOFFReader-300.ebuild')
-rw-r--r-- | sci-visualization/vtkPOFFReader/vtkPOFFReader-300.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sci-visualization/vtkPOFFReader/vtkPOFFReader-300.ebuild b/sci-visualization/vtkPOFFReader/vtkPOFFReader-300.ebuild new file mode 100644 index 000000000..5aad41aad --- /dev/null +++ b/sci-visualization/vtkPOFFReader/vtkPOFFReader-300.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +inherit versionator multilib cmake-utils + +DESCRIPTION="Parallelized reader for OpenFOAM(R) file format for use with ParaView/VTK" +HOMEPAGE="http://of-interfaces.sourceforge.net" +SRC_URI="http://of-interfaces.svn.sourceforge.net/viewvc/of-interfaces/trunk/vtkPOFFReader/?view=tar&pathrev=${PV} -> ${P}.tar.gz" + +LICENSE="paraview GPL-2" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="" + +RDEPEND=" + >=sci-visualization/paraview-3.8.1" +DEPEND="${RDEPEND}" + +pkg_setup() { + PVP=$(best_version sci-visualization/paraview | cut -d '-' -f 3-) + MAJOR_PV=$(get_version_component_range 1-2 $PVP) + + PVLIBDIR=/usr/$(get_libdir)/paraview-${MAJOR_PV} + S=${WORKDIR}/${PN} +} + +src_configure() { + mycmakeargs=( + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_INSTALL_PREFIX="${PVLIBDIR}"/plugins + -DParaView_DIR="${PVLIBDIR}") + + cmake-utils_src_configure +} |