1 |
patrick 11/12/30 05:15:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openfoam-2.1.0.ebuild |
5 |
Log: |
6 |
Bump, fixes #371653 |
7 |
|
8 |
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.9 sci-libs/openfoam/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/ChangeLog?rev=1.9&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/ChangeLog?rev=1.9&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/ChangeLog?r1=1.8&r2=1.9 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/openfoam/ChangeLog,v |
20 |
retrieving revision 1.8 |
21 |
retrieving revision 1.9 |
22 |
diff -u -r1.8 -r1.9 |
23 |
--- ChangeLog 15 Jun 2011 01:42:10 -0000 1.8 |
24 |
+++ ChangeLog 30 Dec 2011 05:15:50 -0000 1.9 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sci-libs/openfoam |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/ChangeLog,v 1.8 2011/06/15 01:42:10 jer Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/ChangeLog,v 1.9 2011/12/30 05:15:50 patrick Exp $ |
30 |
+ |
31 |
+*openfoam-2.1.0 (30 Dec 2011) |
32 |
+ |
33 |
+ 30 Dec 2011; Patrick Lauer <patrick@g.o> +openfoam-2.1.0.ebuild: |
34 |
+ Bump, fixes #371653 |
35 |
|
36 |
15 Jun 2011; Jeroen Roovers <jer@g.o> metadata.xml: |
37 |
Unify spacing. |
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-libs/openfoam/openfoam-2.1.0.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/openfoam-2.1.0.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/openfoam-2.1.0.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: openfoam-2.1.0.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/openfoam-2.1.0.ebuild,v 1.1 2011/12/30 05:15:50 patrick Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit eutils versionator multilib toolchain-funcs |
55 |
|
56 |
MY_PN="OpenFOAM" |
57 |
MY_PV=$(get_version_component_range 1-2) |
58 |
MY_P="${MY_PN}-${PV}" |
59 |
|
60 |
DESCRIPTION="Open Field Operation and Manipulation - CFD Simulation Toolbox" |
61 |
HOMEPAGE="http://www.openfoam.org" |
62 |
SRC_URI="http://downloads.sourceforge.net/project/foam/foam/${PV}/${MY_P}.tgz" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="2.1" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="doc examples" |
68 |
|
69 |
DEPEND="!=sci-libs/openfoam-bin-${MY_PV}* |
70 |
!=sci-libs/openfoam-kernel-${MY_PV}* |
71 |
!=sci-libs/openfoam-meta-${MY_PV}* |
72 |
!=sci-libs/openfoam-solvers-${MY_PV}* |
73 |
!=sci-libs/openfoam-utilities-${MY_PV}* |
74 |
!=sci-libs/openfoam-wmake-${MY_PV}* |
75 |
sci-libs/parmetis |
76 |
sci-libs/parmgridgen |
77 |
sci-libs/scotch |
78 |
|| ( >sci-visualization/paraview-3.0 sci-visualization/opendx ) |
79 |
virtual/mpi" |
80 |
RDEPEND="${DEPEND}" |
81 |
|
82 |
S=${WORKDIR}/${MY_P} |
83 |
INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}" |
84 |
|
85 |
pkg_setup() { |
86 |
# just to be sure the right profile is selected (gcc-config) |
87 |
if ! version_is_at_least 4.3 $(gcc-version) ; then |
88 |
die "${PN} requires >=sys-devel/gcc-4.3 to compile." |
89 |
fi |
90 |
|
91 |
elog |
92 |
elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :" |
93 |
elog |
94 |
elog "alias startOF$(delete_all_version_separators ${MY_PV})='source ${INSDIR}/etc/bashrc'" |
95 |
elog |
96 |
elog "And everytime you want to use OpenFOAM you have to execute startOF$(delete_all_version_separators ${MY_PV})" |
97 |
ewarn |
98 |
ewarn "FoamX is deprecated since ${MY_PN}-1.5! " |
99 |
ewarn |
100 |
} |
101 |
|
102 |
src_configure() { |
103 |
if has_version sys-cluster/mpich2 ; then |
104 |
export WM_MPLIB=MPICH |
105 |
elif has_version sys-cluster/openmpi ; then |
106 |
export WM_MPLIB=OPENMPI |
107 |
else |
108 |
die "You need one of the following mpi implementations: openmpi or mpich2" |
109 |
fi |
110 |
|
111 |
sed -i -e "s|WM_MPLIB:=OPENMPI|WM_MPLIB:="${WM_MPLIB}"|" etc/bashrc |
112 |
sed -i -e "s|setenv WM_MPLIB OPENMPI|setenv WM_MPLIB "${WM_MPLIB}"|" etc/cshrc |
113 |
} |
114 |
|
115 |
src_compile() { |
116 |
|
117 |
WM_NCOMPPROCS=`echo $MAKEOPTS | sed 's/-j\([0-9][0-9]*\)/\1/'` |
118 |
if [ -n "$WM_NCOMPPROCS" ] ; then |
119 |
export WM_NCOMPPROCS |
120 |
else |
121 |
export WM_NCOMPPROCS=1 |
122 |
fi |
123 |
elog "Building on $WM_NCOMPPROCS cores" |
124 |
|
125 |
export FOAM_INST_DIR=${WORKDIR} |
126 |
source etc/bashrc |
127 |
|
128 |
find wmake -name dirToString | xargs rm -rf |
129 |
find wmake -name wmkdep | xargs rm -rf |
130 |
|
131 |
./Allwmake || die "could not build" |
132 |
} |
133 |
|
134 |
src_test() { |
135 |
cd bin |
136 |
./foamInstallationTest |
137 |
} |
138 |
|
139 |
src_install() { |
140 |
insinto ${INSDIR} |
141 |
doins -r etc |
142 |
|
143 |
use examples && doins -r tutorials |
144 |
|
145 |
insopts -m0755 |
146 |
doins -r bin |
147 |
|
148 |
insinto ${INSDIR}/applications/bin |
149 |
doins -r applications/bin/* |
150 |
|
151 |
insinto ${INSDIR}/lib |
152 |
doins -r lib/* |
153 |
|
154 |
insinto ${INSDIR}/wmake |
155 |
doins -r wmake/* |
156 |
|
157 |
dodoc {doc/Guides-a4/*.pdf,README} |
158 |
|
159 |
if use doc ; then |
160 |
dohtml -r doc/Doxygen |
161 |
fi |
162 |
} |