Lines 15-23
Link Here
|
15 |
SRC_URI="http://downloads.sourceforge.net/foam/${MY_P}.tgz" |
15 |
SRC_URI="http://downloads.sourceforge.net/foam/${MY_P}.tgz" |
16 |
|
16 |
|
17 |
LICENSE="GPL-2" |
17 |
LICENSE="GPL-2" |
18 |
SLOT="2.2" |
18 |
SLOT="2.3" |
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] ) |
34 |
=sci-mathematics/cgal-4.3" |
33 |
DEPEND="${DEPEND} |
35 |
DEPEND="${DEPEND} |
34 |
doc? ( app-doc/doxygen[dot] )" |
36 |
doc? ( app-doc/doxygen[dot] )" |
35 |
|
37 |
|
Lines 67-72
Link Here
|
67 |
|
69 |
|
68 |
sed -i -e "s|^foamInstall=\$HOME|foamInstall=/usr/$(get_libdir)|" etc/bashrc |
70 |
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 |
71 |
sed -i -e "s|^set foamInstall = \$HOME|set foamInstall = /usr/$(get_libdir)|" etc/cshrc |
|
|
72 |
|
73 |
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 |
74 |
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 |
} |
75 |
} |
71 |
|
76 |
|
72 |
src_compile() { |
77 |
src_compile() { |
Lines 85-94
Link Here
|
85 |
find wmake -name dirToString | xargs rm -rf |
90 |
find wmake -name dirToString | xargs rm -rf |
86 |
find wmake -name wmkdep | xargs rm -rf |
91 |
find wmake -name wmkdep | xargs rm -rf |
87 |
|
92 |
|
|
|
93 |
./Allwmake || die "could not build" |
88 |
if use doc ; then |
94 |
if use doc ; then |
89 |
./Allwmake doc || die "could not build" |
95 |
doc/Allwmake || die "could not build documentation" |
90 |
else |
|
|
91 |
./Allwmake || die "could not build" |
92 |
fi |
96 |
fi |
93 |
} |
97 |
} |
94 |
|
98 |
|