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: openfoam-2.2.2.ebuild ChangeLog
Date: Fri, 01 Nov 2013 05:17:14
Message-Id: 20131101051708.34F1120047@flycatcher.gentoo.org
1 patrick 13/11/01 05:17:08
2
3 Modified: ChangeLog
4 Added: openfoam-2.2.2.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.17 sci-libs/openfoam/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/ChangeLog?rev=1.17&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/ChangeLog?rev=1.17&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/ChangeLog?r1=1.16&r2=1.17
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/openfoam/ChangeLog,v
20 retrieving revision 1.16
21 retrieving revision 1.17
22 diff -u -r1.16 -r1.17
23 --- ChangeLog 29 Jul 2013 08:10:39 -0000 1.16
24 +++ ChangeLog 1 Nov 2013 05:17:08 -0000 1.17
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-libs/openfoam
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/ChangeLog,v 1.16 2013/07/29 08:10:39 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/ChangeLog,v 1.17 2013/11/01 05:17:08 patrick Exp $
30 +
31 +*openfoam-2.2.2 (01 Nov 2013)
32 +
33 + 01 Nov 2013; Patrick Lauer <patrick@g.o> +openfoam-2.2.2.ebuild:
34 + Bump
35
36 *openfoam-2.2.1 (29 Jul 2013)
37
38
39
40
41 1.1 sci-libs/openfoam/openfoam-2.2.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/openfoam-2.2.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/openfoam-2.2.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: openfoam-2.2.2.ebuild
47 ===================================================================
48 # Copyright 1999-2013 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.2.2.ebuild,v 1.1 2013/11/01 05:17:08 patrick Exp $
51
52 EAPI="5"
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/foam/${MY_P}.tgz"
63
64 LICENSE="GPL-2"
65 SLOT="2.2"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="doc examples opendx src"
68
69 RDEPEND="!=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 virtual/mpi
79 opendx? ( sci-visualization/opendx )"
80 DEPEND="${DEPEND}
81 doc? ( app-doc/doxygen[dot] )"
82
83 S=${WORKDIR}/${MY_P}
84 INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}"
85
86 pkg_setup() {
87 # just to be sure the right profile is selected (gcc-config)
88 if ! version_is_at_least 4.3 $(gcc-version) ; then
89 die "${PN} requires >=sys-devel/gcc-4.3 to compile."
90 fi
91
92 elog
93 elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :"
94 elog
95 elog "alias startOF$(delete_all_version_separators ${MY_PV})='source ${INSDIR}/etc/bashrc'"
96 elog
97 elog "And everytime you want to use OpenFOAM you have to execute startOF$(delete_all_version_separators ${MY_PV})"
98 ewarn
99 ewarn "FoamX is deprecated since ${MY_PN}-1.5! "
100 ewarn
101 }
102
103 src_configure() {
104 if has_version sys-cluster/mpich2 ; then
105 export WM_MPLIB=MPICH
106 elif has_version sys-cluster/openmpi ; then
107 export WM_MPLIB=OPENMPI
108 else
109 die "You need one of the following mpi implementations: openmpi or mpich2"
110 fi
111
112 sed -i -e "s|WM_MPLIB:=OPENMPI|WM_MPLIB:="${WM_MPLIB}"|" etc/bashrc
113 sed -i -e "s|setenv WM_MPLIB OPENMPI|setenv WM_MPLIB "${WM_MPLIB}"|" etc/cshrc
114
115 sed -i -e "s|^foamInstall=\$HOME|foamInstall=/usr/$(get_libdir)|" etc/bashrc
116 sed -i -e "s|^set foamInstall = \$HOME|set foamInstall = /usr/$(get_libdir)|" etc/cshrc
117 }
118
119 src_compile() {
120
121 WM_NCOMPPROCS=`echo $MAKEOPTS | sed 's/-j\([0-9][0-9]*\)/\1/'`
122 if [ -n "$WM_NCOMPPROCS" ] ; then
123 export WM_NCOMPPROCS
124 else
125 export WM_NCOMPPROCS=1
126 fi
127 elog "Building on $WM_NCOMPPROCS cores"
128
129 export FOAM_INST_DIR=${WORKDIR}
130 source etc/bashrc
131
132 find wmake -name dirToString | xargs rm -rf
133 find wmake -name wmkdep | xargs rm -rf
134
135 if use doc ; then
136 ./Allwmake doc || die "could not build"
137 else
138 ./Allwmake || die "could not build"
139 fi
140 }
141
142 src_test() {
143 cd bin
144 ./foamInstallationTest
145 }
146
147 src_install() {
148 insinto ${INSDIR}
149 doins -r etc
150
151 use examples && doins -r tutorials
152
153 use src && doins -r src
154
155 insopts -m0755
156 doins -r bin applications platforms wmake
157
158 dodoc README.html doc/Guides-a4/*.pdf
159
160 if use doc ; then
161 dohtml -r doc/Doxygen
162 fi
163 }