1 |
patrick 09/04/25 16:24:08 |
2 |
|
3 |
Added: metadata.xml ChangeLog |
4 |
openfoam-utilities-1.5_p20090311.ebuild |
5 |
Log: |
6 |
Initial import from sunrise. Thanks to Oliver Borm for the ebuild and the sunrise people for massaging it into shape. |
7 |
(Portage version: 2.2_rc31/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sci-libs/openfoam-utilities/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/openfoam-utilities/metadata.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/openfoam-utilities/metadata.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: metadata.xml |
16 |
=================================================================== |
17 |
<?xml version="1.0" encoding="UTF-8"?> |
18 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 |
<pkgmetadata> |
20 |
<herd>no-herd</herd> |
21 |
<maintainer> |
22 |
<email>patrick@g.o</email> |
23 |
<name>Patrick Lauer</name> |
24 |
</maintainer> |
25 |
</pkgmetadata> |
26 |
|
27 |
|
28 |
|
29 |
1.1 sci-libs/openfoam-utilities/ChangeLog |
30 |
|
31 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/openfoam-utilities/ChangeLog?rev=1.1&view=markup |
32 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/openfoam-utilities/ChangeLog?rev=1.1&content-type=text/plain |
33 |
|
34 |
Index: ChangeLog |
35 |
=================================================================== |
36 |
# ChangeLog for sci-libs/openfoam-utilities |
37 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
38 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam-utilities/ChangeLog,v 1.1 2009/04/25 16:24:08 patrick Exp $ |
39 |
|
40 |
*openfoam-utilities-1.5_p20090311 (25 Apr 2009) |
41 |
|
42 |
25 Apr 2009; Patrick Lauer <patrick@g.o> |
43 |
+files/OpenFOAM-1.5-compile.patch, +files/OpenFOAM-1.5-ggi.patch, |
44 |
+metadata.xml, +openfoam-utilities-1.5_p20090311.ebuild: |
45 |
Initial import from sunrise. Thanks to Oliver Borm for the ebuild and the |
46 |
sunrise people for massaging it into shape. |
47 |
|
48 |
17 Apr 2009; Justin Lecher (jlec) <jlec@×××××××××.net> |
49 |
openfoam-utilities-1.5_p20090311.ebuild: |
50 |
QA quotes around EAPI version |
51 |
|
52 |
14 Mar 2009; Oliver Borm (boroli) <oli.borm@×××.de> |
53 |
openfoam-utilities-1.5_p20090311.ebuild, files/OpenFOAM-1.5-compile.patch: |
54 |
Fixed typos |
55 |
|
56 |
13 Mar 2009; Oliver Borm (boroli) <oli.borm@×××.de> |
57 |
-openfoam-utilities-1.5_p20090204.ebuild, |
58 |
+openfoam-utilities-1.5_p20090311.ebuild, +files/OpenFOAM-1.5-ggi.patch: |
59 |
Version bump |
60 |
|
61 |
13 Feb 2009; Oliver Borm (boroli) <oli.borm@×××.de> |
62 |
-openfoam-utilities-1.4.1_p20080827.ebuild, |
63 |
-files/openfoam-utilities-compile-1.4.1_p20080827.patch: |
64 |
Remove old version. |
65 |
|
66 |
05 Feb 2009; Tomas Chvatal <scarabeus@g.o> |
67 |
openfoam-utilities-1.4.1_p20080827.ebuild: |
68 |
Make repoman happy |
69 |
|
70 |
04 Feb 2009; Oliver Borm (boroli) <oli.borm@×××.de> |
71 |
-openfoam-utilities-1.5_p20080905.ebuild, |
72 |
+openfoam-utilities-1.5_p20090204.ebuild: |
73 |
Changed to EAPI=2 and added some new patches |
74 |
|
75 |
08 Sep 2008; Thomas Sachau (Tommy[D]) <tommy@g.o> |
76 |
openfoam-utilities-1.5_p20080905.ebuild: |
77 |
Use ${P} in SRC_URI |
78 |
|
79 |
08 Sep 2008; Oliver Borm (boroli) <oli.borm@×××.de> |
80 |
-openfoam-utilities-1.5.ebuild, +openfoam-utilities-1.5_p20080905.ebuild: |
81 |
New patch sets |
82 |
|
83 |
31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@g.o> |
84 |
-files/openfoam-utilities-1.4.1_p20080827.patch: |
85 |
Move big patch to external source |
86 |
|
87 |
31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@g.o> |
88 |
-openfoam-utilities-1.4.1_p20080328.ebuild, |
89 |
-files/openfoam-utilities-1.4.1_p20080328.patch, |
90 |
-files/openfoam-utilities-compile-1.4.1_p20080328.patch: |
91 |
Drop old version |
92 |
|
93 |
28 Aug 2008; Oliver Borm (boroli) <oli.borm@×××.de> |
94 |
+openfoam-utilities-1.4.1_p20080827.ebuild, |
95 |
+files/openfoam-utilities-1.4.1_p20080827.patch, |
96 |
+files/openfoam-utilities-compile-1.4.1_p20080827.patch: |
97 |
Update patches for the OpenFOAM utilities |
98 |
|
99 |
04 Aug 2008; Oliver Borm (boroli) <oli.borm@×××.de> |
100 |
openfoam-utilities-1.4.1_p20080328.ebuild, openfoam-utilities-1.5.ebuild: |
101 |
Changed version dependencies |
102 |
|
103 |
28 Jul 2008; Oliver Borm (boroli) <oli.borm@×××.de> |
104 |
openfoam-utilities-1.5.ebuild: |
105 |
Removed unnecessary variable declaration |
106 |
|
107 |
28 Jul 2008; Oliver Borm (boroli) <oli.borm@×××.de> |
108 |
openfoam-utilities-1.5.ebuild: |
109 |
Fixed some errors due to wrong relative paths. |
110 |
|
111 |
26 Jul 2008; Thomas Anderson <gentoofan23@g.o> |
112 |
openfoam-utilities-1.5.ebuild: |
113 |
Fix unnecessary quoting |
114 |
|
115 |
22 Jul 2008; Oliver Borm (boroli) <oli.borm@×××.de> |
116 |
+openfoam-utilities-1.5.ebuild, +files/OpenFOAM-1.5-compile.patch: |
117 |
Version bump to 1.5 |
118 |
|
119 |
22 Apr 2008; Thomas Sachau (Tommy[D]) <tommy@g.o> |
120 |
openfoam-utilities-1.4.1_p20080328.ebuild: |
121 |
Fix dep |
122 |
|
123 |
21 Apr 2008; Oliver Borm (boroli) <oli.borm@×××.de> |
124 |
openfoam-utilities-1.4.1_p20080328.ebuild: |
125 |
Fixed some minor dependency problems. |
126 |
|
127 |
30 Mar 2008; Thomas Sachau (Tommy[D]) tommy@g.o |
128 |
-openfoam-utilities-1.4.1_p20080118.ebuild, |
129 |
-files/openfoam-utilities-compile-1.4.1_p20080118.patch, |
130 |
-files/openfoam-utilities-1.4.1_p20080118.patch: |
131 |
Drop old version |
132 |
|
133 |
28 Mar 2008; Oliver Borm (boroli) <oli.borm@×××.de> |
134 |
+openfoam-utilities-1.4.1_p20080328.ebuild, |
135 |
+files/openfoam-utilities-1.4.1_p20080328.patch, |
136 |
+files/openfoam-utilities-compile-1.4.1_p20080328.patch: |
137 |
sci-libs/parmetis in portage requires new dependencies |
138 |
|
139 |
29 Jan 2008; Oliver Borm (boroli) <oli.borm@×××.de> |
140 |
+files/openfoam-utilities-compile-1.4.1_p20080118.patch, |
141 |
+files/openfoam-utilities-1.4.1_p20080118.patch, +metadata.xml, |
142 |
+openfoam-utilities-1.4.1_p20080118.ebuild: |
143 |
New Ebuild for the OpenFOAM utilities |
144 |
|
145 |
|
146 |
|
147 |
|
148 |
1.1 sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090311.ebuild |
149 |
|
150 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090311.ebuild?rev=1.1&view=markup |
151 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090311.ebuild?rev=1.1&content-type=text/plain |
152 |
|
153 |
Index: openfoam-utilities-1.5_p20090311.ebuild |
154 |
=================================================================== |
155 |
# Copyright 1999-2009 Gentoo Foundation |
156 |
# Distributed under the terms of the GNU General Public License v2 |
157 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090311.ebuild,v 1.1 2009/04/25 16:24:08 patrick Exp $ |
158 |
|
159 |
EAPI="2" |
160 |
|
161 |
inherit eutils versionator multilib toolchain-funcs |
162 |
|
163 |
MY_PN="OpenFOAM" |
164 |
MY_PV=$(get_version_component_range 1-2) |
165 |
MY_P="${MY_PN}-${MY_PV}" |
166 |
|
167 |
DESCRIPTION="OpenFOAM - utilities" |
168 |
HOMEPAGE="http://www.opencfd.co.uk/openfoam/" |
169 |
SRC_URI="mirror://sourceforge/foam/${MY_P}.General.gtgz -> ${MY_P}.General.tgz |
170 |
http://omploader.org/vMWRlMQ/${MY_PN}-git-${PVR}.patch |
171 |
http://omploader.org/vMWRlMA/${MY_P}-svn.patch" |
172 |
|
173 |
LICENSE="GPL-2" |
174 |
SLOT="1.5" |
175 |
KEYWORDS="~amd64 ~x86" |
176 |
IUSE="" |
177 |
|
178 |
RDEPEND="!=sci-libs/openfoam-${MY_PV}* |
179 |
!=sci-libs/openfoam-bin-${MY_PV}* |
180 |
=sci-libs/openfoam-solvers-${MY_PV}*" |
181 |
DEPEND="${RDEPEND} |
182 |
>=sys-devel/gcc-4.1" |
183 |
|
184 |
S=${WORKDIR}/${MY_P} |
185 |
INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}" |
186 |
|
187 |
pkg_setup() { |
188 |
# just to be sure the right profile is selected (gcc-config) |
189 |
if ! version_is_at_least 4.1 $(gcc-version) ; then |
190 |
die "${PN} requires >=sys-devel/gcc-4.1 to compile." |
191 |
fi |
192 |
} |
193 |
|
194 |
src_prepare() { |
195 |
epatch "${FILESDIR}"/${MY_P}-compile.patch |
196 |
epatch "${DISTDIR}"/${MY_P}-svn.patch |
197 |
epatch "${DISTDIR}"/${MY_PN}-git-${PVR}.patch |
198 |
epatch "${FILESDIR}"/${MY_P}-ggi.patch |
199 |
|
200 |
chmod +x applications/utilities/postProcessing/graphics/ensightFoamReader/Allwmake |
201 |
} |
202 |
|
203 |
src_compile() { |
204 |
cp -a ${INSDIR}/etc/{bashrc,settings.sh} "${S}"/etc/. || die "cannot copy bashrc" |
205 |
|
206 |
# This is a hack, due to the meta ebuild: |
207 |
sed -i -e "s|FOAM_LIB=\$WM_PROJECT_DIR/lib|FOAM_LIB=${INSDIR}/lib|" \ |
208 |
-e "s|FOAM_LIBBIN=\$FOAM_LIB|FOAM_LIBBIN=\$WM_PROJECT_DIR/lib|" \ |
209 |
-e "s|_foamAddLib \$FOAM_USER_LIBBIN|_foamAddLib \$FOAM_LIB|" \ |
210 |
etc/settings.sh || die "could not replace paths" |
211 |
|
212 |
sed -i -e "s|-L\$(LIB_WM_OPTIONS_DIR)|-L\$(LIB_WM_OPTIONS_DIR) -L${INSDIR}/lib|" \ |
213 |
wmake/Makefile || die "could not replace search paths" |
214 |
|
215 |
sed -i -e "s|(FOAM_LIBBIN)|(FOAM_LIB)|" applications/utilities/postProcessing/velocityField/{flowType,Pe,uprime,vorticity,enstrophy,Q,Co,Lambda2,Mach}/Make/options || die "cannot change LIB dir" |
216 |
sed -i -e "s|(FOAM_LIBBIN)|(FOAM_LIB)|" applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/Make/options || die "cannot change LIB dir" |
217 |
|
218 |
export FOAM_INST_DIR="${WORKDIR}" |
219 |
source etc/bashrc |
220 |
|
221 |
cd applications/utilities |
222 |
wmake all || die "could not build OpenFOAM utilities" |
223 |
} |
224 |
|
225 |
src_install() { |
226 |
insopts -m0755 |
227 |
insinto ${INSDIR}/applications/bin |
228 |
doins -r applications/bin/* |
229 |
|
230 |
insinto ${INSDIR}/lib |
231 |
doins -r lib/* |
232 |
} |