Lines 12-23
Link Here
|
12 |
|
12 |
|
13 |
DESCRIPTION="Open Field Operation and Manipulation - CFD Simulation Toolbox" |
13 |
DESCRIPTION="Open Field Operation and Manipulation - CFD Simulation Toolbox" |
14 |
HOMEPAGE="http://www.openfoam.org" |
14 |
HOMEPAGE="http://www.openfoam.org" |
15 |
SRC_URI="http://downloads.sourceforge.net/project/foam/foam/${PV}/${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.2" |
19 |
KEYWORDS="~amd64 ~x86" |
19 |
KEYWORDS="~amd64 ~x86" |
20 |
IUSE="doc examples opendx" |
20 |
IUSE="doc examples opendx src" |
21 |
|
21 |
|
22 |
DEPEND="!=sci-libs/openfoam-bin-${MY_PV}* |
22 |
DEPEND="!=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 |
doc? ( app-doc/doxygen )" |
33 |
RDEPEND="${DEPEND}" |
34 |
RDEPEND="${DEPEND}" |
34 |
|
35 |
|
35 |
S=${WORKDIR}/${MY_P} |
36 |
S=${WORKDIR}/${MY_P} |
Lines 63-68
Link Here
|
63 |
|
64 |
|
64 |
sed -i -e "s|WM_MPLIB:=OPENMPI|WM_MPLIB:="${WM_MPLIB}"|" etc/bashrc |
65 |
sed -i -e "s|WM_MPLIB:=OPENMPI|WM_MPLIB:="${WM_MPLIB}"|" etc/bashrc |
65 |
sed -i -e "s|setenv WM_MPLIB OPENMPI|setenv WM_MPLIB "${WM_MPLIB}"|" etc/cshrc |
66 |
sed -i -e "s|setenv WM_MPLIB OPENMPI|setenv WM_MPLIB "${WM_MPLIB}"|" etc/cshrc |
|
|
67 |
|
68 |
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 |
66 |
} |
70 |
} |
67 |
|
71 |
|
68 |
src_compile() { |
72 |
src_compile() { |
Lines 81-87
Link Here
|
81 |
find wmake -name dirToString | xargs rm -rf |
85 |
find wmake -name dirToString | xargs rm -rf |
82 |
find wmake -name wmkdep | xargs rm -rf |
86 |
find wmake -name wmkdep | xargs rm -rf |
83 |
|
87 |
|
84 |
./Allwmake || die "could not build" |
88 |
if use doc ; then |
|
|
89 |
./Allwmake doc || die "could not build" |
90 |
else |
91 |
./Allwmake || die "could not build" |
92 |
fi |
85 |
} |
93 |
} |
86 |
|
94 |
|
87 |
src_test() { |
95 |
src_test() { |
Lines 95-105
Link Here
|
95 |
|
103 |
|
96 |
use examples && doins -r tutorials |
104 |
use examples && doins -r tutorials |
97 |
|
105 |
|
98 |
# not sure if this is useful |
106 |
# for developing own stuff |
99 |
#doins -r src |
107 |
use src && doins -r src |
100 |
|
|
|
101 |
insinto ${INSDIR}/lib |
102 |
doins -r lib/* |
103 |
|
108 |
|
104 |
insopts -m0755 |
109 |
insopts -m0755 |
105 |
doins -r bin applications platforms wmake |
110 |
doins -r bin applications platforms wmake |