Gentoo Archives: gentoo-commits

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