Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 502556 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sci-libs/openfoam/openfoam-2.2.2.ebuild (-5 / +8 lines)
Lines 17-23 Link Here
17
LICENSE="GPL-2"
17
LICENSE="GPL-2"
18
SLOT="2.2"
18
SLOT="2.2"
19
KEYWORDS="~amd64 ~x86"
19
KEYWORDS="~amd64 ~x86"
20
IUSE="doc examples opendx src"
20
IUSE="doc examples opendx src paraview"
21
21
22
RDEPEND="!=sci-libs/openfoam-bin-${MY_PV}*
22
RDEPEND="!=sci-libs/openfoam-bin-${MY_PV}*
23
	!=sci-libs/openfoam-kernel-${MY_PV}*
23
	!=sci-libs/openfoam-kernel-${MY_PV}*
Lines 29-35 Link Here
29
	sci-libs/parmgridgen
29
	sci-libs/parmgridgen
30
	sci-libs/scotch
30
	sci-libs/scotch
31
	virtual/mpi
31
	virtual/mpi
32
	opendx? ( sci-visualization/opendx )"
32
	opendx? ( sci-visualization/opendx )
33
	paraview? ( ~sci-visualization/paraview-4.1.0[development] )"
33
DEPEND="${DEPEND}
34
DEPEND="${DEPEND}
34
	doc? ( app-doc/doxygen[dot] )"
35
	doc? ( app-doc/doxygen[dot] )"
35
36
Lines 67-72 Link Here
67
68
68
	sed -i -e "s|^foamInstall=\$HOME|foamInstall=/usr/$(get_libdir)|" etc/bashrc
69
	sed -i -e "s|^foamInstall=\$HOME|foamInstall=/usr/$(get_libdir)|" etc/bashrc
69
	sed -i -e "s|^set foamInstall = \$HOME|set foamInstall = /usr/$(get_libdir)|" etc/cshrc
70
	sed -i -e "s|^set foamInstall = \$HOME|set foamInstall = /usr/$(get_libdir)|" etc/cshrc
71
72
	sed -i -e 's|^export ParaView_DIR=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$paraviewArchName|export ParaView_DIR=/usr|' etc/config/paraview.sh
73
	sed -i -e 's|^setenv ParaView_DIR $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$paraviewArchName|setenv ParaView_DIR /usr|' etc/config/paraview.csh
70
}
74
}
71
75
72
src_compile() {
76
src_compile() {
Lines 85-94 Link Here
85
	find wmake -name dirToString | xargs rm -rf
89
	find wmake -name dirToString | xargs rm -rf
86
	find wmake -name wmkdep | xargs rm -rf
90
	find wmake -name wmkdep | xargs rm -rf
87
91
92
	./Allwmake || die "could not build"
88
	if use doc ; then
93
	if use doc ; then
89
		./Allwmake doc || die "could not build"
94
		doc/Allwmake || die "could not build documentation"
90
	else
91
		./Allwmake || die "could not build"
92
	fi
95
	fi
93
}
96
}
94
97

Return to bug 502556