blob: 49c28b4d4a3013ef60de7437e4fa84a9b1a7c2e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit cmake-utils multilib subversion versionator
DESCRIPTION="Parallelized reader for OpenFOAM(R) file format for use with ParaView/VTK"
HOMEPAGE="http://of-interfaces.sourceforge.net"
SRC_URI=""
ESVN_REPO_URI="http://of-interfaces.svn.sourceforge.net/svnroot/of-interfaces/trunk/vtkPOFFReader@${PV}"
SLOT="0"
LICENSE="paraview GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=sci-visualization/paraview-3.8.1"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${PN}
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}
}
src_configure() {
mycmakeargs=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX="${PVLIBDIR}"/plugins
-DParaView_DIR="${PVLIBDIR}")
cmake-utils_src_configure
}
|