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.1.1.ebuild ChangeLog
Date: Tue, 19 Jun 2012 02:21:28
Message-Id: 20120619022118.0D2F02004C@flycatcher.gentoo.org
1 patrick 12/06/19 02:21:18
2
3 Modified: ChangeLog
4 Added: openfoam-2.1.1.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.10 sci-libs/openfoam/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/openfoam/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 30 Dec 2011 05:15:50 -0000 1.9
24 +++ ChangeLog 19 Jun 2012 02:21:17 -0000 1.10
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.9 2011/12/30 05:15:50 patrick Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/ChangeLog,v 1.10 2012/06/19 02:21:17 patrick Exp $
31 +
32 +*openfoam-2.1.1 (19 Jun 2012)
33 +
34 + 19 Jun 2012; Patrick Lauer <patrick@g.o> +openfoam-2.1.1.ebuild:
35 + Bump
36
37 *openfoam-2.1.0 (30 Dec 2011)
38
39
40
41
42 1.1 sci-libs/openfoam/openfoam-2.1.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/openfoam-2.1.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openfoam/openfoam-2.1.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openfoam-2.1.1.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/openfoam-2.1.1.ebuild,v 1.1 2012/06/19 02:21:17 patrick Exp $
52
53 EAPI="2"
54
55 inherit eutils versionator multilib toolchain-funcs
56
57 MY_PN="OpenFOAM"
58 MY_PV=$(get_version_component_range 1-2)
59 MY_P="${MY_PN}-${PV}"
60
61 DESCRIPTION="Open Field Operation and Manipulation - CFD Simulation Toolbox"
62 HOMEPAGE="http://www.openfoam.org"
63 SRC_URI="http://downloads.sourceforge.net/project/foam/foam/${PV}/${MY_P}.tgz"
64
65 LICENSE="GPL-2"
66 SLOT="2.1"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="doc examples"
69
70 DEPEND="!=sci-libs/openfoam-bin-${MY_PV}*
71 !=sci-libs/openfoam-kernel-${MY_PV}*
72 !=sci-libs/openfoam-meta-${MY_PV}*
73 !=sci-libs/openfoam-solvers-${MY_PV}*
74 !=sci-libs/openfoam-utilities-${MY_PV}*
75 !=sci-libs/openfoam-wmake-${MY_PV}*
76 sci-libs/parmetis
77 sci-libs/parmgridgen
78 sci-libs/scotch
79 || ( >sci-visualization/paraview-3.0 sci-visualization/opendx )
80 virtual/mpi"
81 RDEPEND="${DEPEND}"
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
116 src_compile() {
117
118 WM_NCOMPPROCS=`echo $MAKEOPTS | sed 's/-j\([0-9][0-9]*\)/\1/'`
119 if [ -n "$WM_NCOMPPROCS" ] ; then
120 export WM_NCOMPPROCS
121 else
122 export WM_NCOMPPROCS=1
123 fi
124 elog "Building on $WM_NCOMPPROCS cores"
125
126 export FOAM_INST_DIR=${WORKDIR}
127 source etc/bashrc
128
129 find wmake -name dirToString | xargs rm -rf
130 find wmake -name wmkdep | xargs rm -rf
131
132 ./Allwmake || die "could not build"
133 }
134
135 src_test() {
136 cd bin
137 ./foamInstallationTest
138 }
139
140 src_install() {
141 insinto ${INSDIR}
142 doins -r etc
143
144 use examples && doins -r tutorials
145
146 insopts -m0755
147 doins -r bin
148
149 insinto ${INSDIR}/applications/bin
150 doins -r applications/bin/*
151
152 insinto ${INSDIR}/lib
153 doins -r lib/*
154
155 insinto ${INSDIR}/wmake
156 doins -r wmake/*
157
158 dodoc {doc/Guides-a4/*.pdf,README}
159
160 if use doc ; then
161 dohtml -r doc/Doxygen
162 fi
163 }