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