summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2009-04-25 16:35:59 +0000
committerPatrick Lauer <patrick@gentoo.org>2009-04-25 16:35:59 +0000
commit6e7ce0eb4d05b107b8a186f974e95e9a82142550 (patch)
tree0ec2a6e052be5f97617cdc3fd26c5a7566cdf577 /sci-libs/openfoam
parentInitial import from sunrise. Thanks to Oliver Borm for the ebuild and the sun... (diff)
downloadgentoo-2-6e7ce0eb4d05b107b8a186f974e95e9a82142550.tar.gz
gentoo-2-6e7ce0eb4d05b107b8a186f974e95e9a82142550.tar.bz2
gentoo-2-6e7ce0eb4d05b107b8a186f974e95e9a82142550.zip
Initial import from sunrise. Thanks to Oliver Borm for the ebuild and the sunrise people for massaging it into shape.
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/openfoam')
-rw-r--r--sci-libs/openfoam/ChangeLog106
-rw-r--r--sci-libs/openfoam/files/OpenFOAM-1.5-compile.patch436
-rw-r--r--sci-libs/openfoam/metadata.xml5
-rw-r--r--sci-libs/openfoam/openfoam-1.5.ebuild114
4 files changed, 661 insertions, 0 deletions
diff --git a/sci-libs/openfoam/ChangeLog b/sci-libs/openfoam/ChangeLog
new file mode 100644
index 000000000000..5f3743204763
--- /dev/null
+++ b/sci-libs/openfoam/ChangeLog
@@ -0,0 +1,106 @@
+# ChangeLog for sci-libs/openfoam
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/ChangeLog,v 1.1 2009/04/25 16:35:58 patrick Exp $
+
+*openfoam-1.5 (25 Apr 2009)
+
+ 25 Apr 2009; Patrick Lauer <patrick@gentoo.org>
+ +files/OpenFOAM-1.5-compile.patch, +metadata.xml, +openfoam-1.5.ebuild:
+ Initial import from sunrise. Thanks to Oliver Borm for the ebuild and the
+ sunrise people for massaging it into shape.
+
+ 20 Feb 2009; Tomas Chvatal <scarabeus@gentoo.org> metadata.xml:
+ Remove unused local useflags.
+
+ 13 Feb 2009; Oliver Borm (boroli) <oli.borm@web.de>
+ -openfoam-1.4.1_p20080118.ebuild, -files/compile-1.4.1_p20080118.patch,
+ -files/openfoam-paraFoam-1.4.1_p20080118.patch:
+ Remove old version.
+
+ 05 Feb 2009; Tomas Chvatal <scarabeus@gentoo.org>
+ openfoam-1.4.1_p20080118.ebuild, openfoam-1.5.ebuild:
+ Make repoman happy
+
+ 31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> metadata.xml:
+ Add local useflags to metadata.xml (GLEP 56)
+
+ 04 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de>
+ openfoam-1.4.1_p20080118.ebuild, openfoam-1.5.ebuild:
+ Changed version dependencies
+
+ 04 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de> openfoam-1.5.ebuild:
+ Fixed some typos in the src_install section, thanks to Maxim Loginov.
+
+ 26 Jul 2008; Thomas Anderson <gentoofan23@gentoo.org> openfoam-1.5.ebuild:
+ Fix unnecessary quoting
+
+ 22 Jul 2008; Oliver Borm (boroli) <oli.borm@web.de> +openfoam-1.5.ebuild,
+ +files/OpenFOAM-1.5-compile.patch:
+ Version bump to 1.5 for bug 104257, thanks to Tommy[D]
+
+ 11 Jun 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com>
+ ChangeLog:
+ Remove executable prop on patch
+
+ 12 Apr 2008; Pielmeier Daniel (billie) <daniel.pielmeier@googlemail.com>
+ openfoam-1.4.1_p20080118.ebuild:
+ Fix patch as it is now in DISTDIR
+
+ 30 Mar 2008; Thomas Sachau (Tommy[D]) tommy@gentoo.org
+ openfoam-1.4.1_p20080118.ebuild, -files/openfoam-1.4.1_p20080118.patch:
+ Move oversized patch
+
+ 28 Mar 2008; Oliver Borm (boroli) <oli.borm@web.de>
+ openfoam-1.4.1_p20080118.ebuild, +files/openfoam-1.4.1_p20080118.patch,
+ +files/compile-1.4.1_p20080118.patch,
+ +files/openfoam-paraFoam-1.4.1_p20080118.patch:
+ sci-libs/parmetis in portage requires new dependencies; paraFoam support added
+
+ 27 Mar 2008; Markus Ullmann <jokey@gentoo.org> openfoam-1.4.1_p20071028:
+ Drop old
+
+ 27 Mar 2008; Markus Ullmann <jokey@gentoo.org>
+ -openfoam-1.4.1_p20071028.patch, -compile-1.4.1_p20080118.patch,
+ -openfoam-1.4.1_p20080118.patch, -compile-1.4.1.patch, -mico-1.4.1.patch,
+ openfoam-1.4.1_p20071028, openfoam-1.4.1_p20080118:
+ Move patchset to dev.ge.org
+
+ 29 Jan 2008; Oliver Borm (boroli) <oli.borm@web.de>
+ openfoam-1.4.1_p20071028.ebuild, openfoam-1.4.1_p20080118.ebuild:
+ Dependencies updated
+
+ 22 Jan 2008; Oliver Borm (boroli) <oli.borm@web.de>
+ +files/openfoam-1.4.1_p20080118.patch,
+ +files/compile-1.4.1_p20080118.patch, +openfoam-1.4.1_p20080118.ebuild:
+ Improved ebuild with new patches for bug 104257
+
+ 06 Jan 2008; Markus Ullmann <jokey@gentoo.org> openfoam-1.4.1_p20071028:
+ Drop keywords as we don't have the dependencies
+
+ 18 Nov 2007; Oliver Borm (boroli) <oli.borm@web.de>
+ openfoam-1.4.1_p20071028.ebuild:
+ Corrected some typos in the sed commands and an einfo to the ebuild.
+
+ 05 Nov 2007; Christian Faulhammer <opfer@gentoo.org>
+ openfoam-1.4.1_p20071028.ebuild:
+ make it multilib-safe
+
+ 05 Nov 2007; Oliver Borm (boroli) <oli.borm@web.de>
+ openfoam-1.4.1_p20071028.ebuild:
+ This improved ebuild corrects some minor bugs.
+
+ 05 Nov 2007; Oliver Borm (boroli) <oli.borm@web.de>
+ files/mico-1.4.1.patch, files/compile-1.4.1.patch,
+ openfoam-1.4.1_p20071028.ebuild:
+ This ebuild enables metis support and is more dynamically against version
+ numbers.
+
+ 02 Nov 2007; Jakub Moc <jakub@gentoo.org> openfoam-1.4.1_p20071028.ebuild:
+ Multilib fixes, nuke excessive quoting, remove implicit system dependencies.
+
+ 02 Nov 2007; Oliver Borm (boroli) <oli.borm@web.de>
+ +files/openfoam-1.4.1_p20071028.patch, +files/mico-1.4.1.patch,
+ +files/compile-1.4.1.patch, +metadata.xml,
+ +openfoam-1.4.1_p20071028.ebuild:
+ New ebuild for bug 104257
+
diff --git a/sci-libs/openfoam/files/OpenFOAM-1.5-compile.patch b/sci-libs/openfoam/files/OpenFOAM-1.5-compile.patch
new file mode 100644
index 000000000000..4479cb384d62
--- /dev/null
+++ b/sci-libs/openfoam/files/OpenFOAM-1.5-compile.patch
@@ -0,0 +1,436 @@
+--- OpenFOAM-1.5-src/etc/bashrc 2008-07-09 19:08:57.000000000 +0200
++++ OpenFOAM-1.5/etc/bashrc 2008-07-21 23:07:48.000000000 +0200
+@@ -42,9 +42,9 @@
+ #
+ # Location of FOAM installation
+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+-foamInstall=$HOME/$WM_PROJECT
++# foamInstall=$HOME/$WM_PROJECT
+ # foamInstall=~$WM_PROJECT
+-# foamInstall=/usr/local/$WM_PROJECT
++foamInstall=/usr/lib/$WM_PROJECT
+ # foamInstall=/opt/$WM_PROJECT
+
+ : ${FOAM_INST_DIR:=$foamInstall}; export FOAM_INST_DIR
+@@ -59,7 +59,7 @@
+
+ # Location of third-party software
+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+-export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/ThirdParty
++# export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/ThirdParty
+
+
+ # Operating System/Platform from Unix or MSWindows
+@@ -192,15 +192,15 @@
+
+
+ _foamSource $WM_PROJECT_DIR/etc/settings.sh
+-_foamSource $WM_PROJECT_DIR/etc/aliases.sh
++# _foamSource $WM_PROJECT_DIR/etc/aliases.sh
+
+
+ # Source user setup files for optional packages
+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ # _foamSource $WM_PROJECT_DIR/etc/apps/paraview/bashrc
+-_foamSource $WM_PROJECT_DIR/etc/apps/paraview3/bashrc
++# _foamSource $WM_PROJECT_DIR/etc/apps/paraview3/bashrc
+ # _foamSource $WM_PROJECT_DIR/etc/apps/ensightFoam/bashrc
+-_foamSource $WM_PROJECT_DIR/etc/apps/cint/bashrc
++# _foamSource $WM_PROJECT_DIR/etc/apps/cint/bashrc
+
+
+ # Again clean environment (path, PATH, MANPATH, LD_LIBRARY_PATH)
+--- OpenFOAM-1.5-src/etc/settings.sh 2008-06-27 13:19:25.000000000 +0200
++++ OpenFOAM-1.5/etc/settings.sh 2008-07-21 00:50:00.000000000 +0200
+@@ -56,30 +56,30 @@
+ export PATH=$WM_PROJECT_DIR/bin:$FOAM_INST_DIR/$WM_ARCH/bin:$PATH
+
+ #- Location of the jobControl directory
+-export FOAM_JOB_DIR=$FOAM_INST_DIR/jobControl
++export FOAM_JOB_DIR=$HOME/$WM_PROJECT/jobControl
+
+ export WM_DIR=$WM_PROJECT_DIR/wmake
+ export WM_LINK_LANGUAGE=c++
+-export WM_OPTIONS=$WM_ARCH${WM_COMPILER}$WM_PRECISION_OPTION$WM_COMPILE_OPTION
++export WM_OPTIONS=$WM_ARCH${WM_COMPILER}
+ export PATH=$WM_DIR:$PATH
+
+ export FOAM_SRC=$WM_PROJECT_DIR/src
+ export FOAM_LIB=$WM_PROJECT_DIR/lib
+-export FOAM_LIBBIN=$FOAM_LIB/$WM_OPTIONS
++export FOAM_LIBBIN=$FOAM_LIB
+ _foamAddLib $FOAM_LIBBIN
+
+ export FOAM_APP=$WM_PROJECT_DIR/applications
+-export FOAM_APPBIN=$WM_PROJECT_DIR/applications/bin/$WM_OPTIONS
++export FOAM_APPBIN=$WM_PROJECT_DIR/applications/bin
+ _foamAddPath $FOAM_APPBIN
+
+ export FOAM_TUTORIALS=$WM_PROJECT_DIR/tutorials
+ export FOAM_UTILITIES=$FOAM_APP/utilities
+ export FOAM_SOLVERS=$FOAM_APP/solvers
+
+-export FOAM_USER_LIBBIN=$WM_PROJECT_USER_DIR/lib/$WM_OPTIONS
++export FOAM_USER_LIBBIN=$WM_PROJECT_USER_DIR/lib
+ _foamAddLib $FOAM_USER_LIBBIN
+
+-export FOAM_USER_APPBIN=$WM_PROJECT_USER_DIR/applications/bin/$WM_OPTIONS
++export FOAM_USER_APPBIN=$WM_PROJECT_USER_DIR/applications/bin
+ _foamAddPath $FOAM_USER_APPBIN
+
+ export FOAM_RUN=$WM_PROJECT_USER_DIR/run
+@@ -93,7 +93,7 @@
+ # Select compiler installation
+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ # WM_COMPILER_INST = OpenFOAM | System
+-WM_COMPILER_INST=OpenFOAM
++WM_COMPILER_INST=System
+
+ case "$WM_COMPILER_INST" in
+ OpenFOAM)
+@@ -136,45 +136,47 @@
+
+ case "$WM_MPLIB" in
+ OPENMPI)
+- mpi_version=openmpi-1.2.6
+- export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
+- export MPI_ARCH_PATH=$MPI_HOME/platforms/$WM_OPTIONS
+-
++ MPI_VERSION=openmpi
++# export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
++# export MPI_ARCH_PATH=$MPI_HOME/platforms/$WM_OPTIONS
++ export MPI_ARCH_PATH=/usr
+ # Tell OpenMPI where to find its install directory
+ export OPAL_PREFIX=$MPI_ARCH_PATH
+
+- _foamAddLib $MPI_ARCH_PATH/lib
+- _foamAddPath $MPI_ARCH_PATH/bin
++# _foamAddLib $MPI_ARCH_PATH/lib
++# _foamAddPath $MPI_ARCH_PATH/bin
+
+- export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
+- unset mpi_version
++ export FOAM_MPI_LIBBIN=$FOAM_LIB/$MPI_VERSION
++# unset mpi_version
+ ;;
+
+ LAM)
+- mpi_version=lam-7.1.4
+- export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
+- export MPI_ARCH_PATH=$MPI_HOME/platforms/$WM_OPTIONS
+- export LAMHOME=$WM_THIRD_PARTY_DIR/$mpi_version
++ MPI_VERSION=lam
++# export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
++# export MPI_ARCH_PATH=$MPI_HOME/platforms/$WM_OPTIONS
++ export MPI_ARCH_PATH=/usr
++# export LAMHOME=$WM_THIRD_PARTY_DIR/$mpi_version
+ # note: LAMHOME is deprecated, should probably point to MPI_ARCH_PATH too
+
+- _foamAddLib $MPI_ARCH_PATH/lib
+- _foamAddPath $MPI_ARCH_PATH/bin
++# _foamAddLib $MPI_ARCH_PATH/lib
++# _foamAddPath $MPI_ARCH_PATH/bin
+
+- export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
+- unset mpi_version
++ export FOAM_MPI_LIBBIN=$FOAM_LIB/$MPI_VERSION
++# unset mpi_version
+ ;;
+
+ MPICH)
+- mpi_version=mpich-1.2.4
+- export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
+- export MPI_ARCH_PATH=$MPI_HOME/platforms/$WM_OPTIONS
++ MPI_VERSION=mpich
++# export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
++# export MPI_ARCH_PATH=$MPI_HOME/platforms/$WM_OPTIONS
++ export MPI_ARCH_PATH=/usr
+ export MPICH_ROOT=$MPI_ARCH_PATH
+
+- _foamAddLib $MPI_ARCH_PATH/lib
+- _foamAddPath $MPI_ARCH_PATH/bin
++# _foamAddLib $MPI_ARCH_PATH/lib
++# _foamAddPath $MPI_ARCH_PATH/bin
+
+- export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
+- unset mpi_version
++ export FOAM_MPI_LIBBIN=$FOAM_LIB/$MPI_VERSION
++# unset mpi_version
+ ;;
+
+ MPICH-GM)
+--- OpenFOAM-1.5-src/etc/cshrc 2008-07-09 19:09:28.000000000 +0200
++++ OpenFOAM-1.5/etc/cshrc 2008-07-20 22:31:22.000000000 +0200
+@@ -58,7 +58,7 @@
+
+ # Location of third-party software
+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+-setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/ThirdParty
++# setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/ThirdParty
+
+
+ # Operating System/Platform from Unix or MSWindows
+@@ -188,12 +188,12 @@
+ alias _foamSource 'if ($?FOAM_VERBOSE && $?prompt) echo "Executing: \!*"; source \!*'
+
+ _foamSource $WM_PROJECT_DIR/etc/settings.csh
+-_foamSource $WM_PROJECT_DIR/etc/aliases.csh
++# _foamSource $WM_PROJECT_DIR/etc/aliases.csh
+
+ # Source user setup files for optional packages
+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ # _foamSource $WM_PROJECT_DIR/etc/apps/paraview/cshrc
+-_foamSource $WM_PROJECT_DIR/etc/apps/paraview3/cshrc
++# _foamSource $WM_PROJECT_DIR/etc/apps/paraview3/cshrc
+ # _foamSource $WM_PROJECT_DIR/etc/apps/ensightFoam/cshrc
+
+
+--- OpenFOAM-1.5-src/etc/settings.csh 2008-06-27 13:19:25.000000000 +0200
++++ OpenFOAM-1.5/etc/settings.csh 2008-07-20 23:14:59.000000000 +0200
+@@ -39,30 +39,30 @@
+ set path=($WM_PROJECT_DIR/bin $FOAM_INST_DIR/$WM_ARCH/bin $path)
+
+ #- Location of the jobControl directory
+-setenv FOAM_JOB_DIR $FOAM_INST_DIR/jobControl
++setenv FOAM_JOB_DIR $HOME/$WM_PROJECT/jobControl
+
+ setenv WM_DIR $WM_PROJECT_DIR/wmake
+ setenv WM_LINK_LANGUAGE c++
+-setenv WM_OPTIONS $WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_COMPILE_OPTION
++setenv WM_OPTIONS $WM_ARCH$WM_COMPILER
+ set path=($WM_DIR $path)
+
+ setenv FOAM_SRC $WM_PROJECT_DIR/src
+ setenv FOAM_LIB $WM_PROJECT_DIR/lib
+-setenv FOAM_LIBBIN $FOAM_LIB/$WM_OPTIONS
++setenv FOAM_LIBBIN $FOAM_LIB
+ _foamAddLib $FOAM_LIBBIN
+
+ setenv FOAM_APP $WM_PROJECT_DIR/applications
+-setenv FOAM_APPBIN $WM_PROJECT_DIR/applications/bin/$WM_OPTIONS
++setenv FOAM_APPBIN $WM_PROJECT_DIR/applications/bin
+ _foamAddPath $FOAM_APPBIN
+
+ setenv FOAM_TUTORIALS $WM_PROJECT_DIR/tutorials
+ setenv FOAM_UTILITIES $FOAM_APP/utilities
+ setenv FOAM_SOLVERS $FOAM_APP/solvers
+
+-setenv FOAM_USER_LIBBIN $WM_PROJECT_USER_DIR/lib/$WM_OPTIONS
++setenv FOAM_USER_LIBBIN $WM_PROJECT_USER_DIR/lib
+ _foamAddLib $FOAM_USER_LIBBIN
+
+-setenv FOAM_USER_APPBIN $WM_PROJECT_USER_DIR/applications/bin/$WM_OPTIONS
++setenv FOAM_USER_APPBIN $WM_PROJECT_USER_DIR/applications/bin
+ _foamAddPath $FOAM_USER_APPBIN
+
+ setenv FOAM_RUN $WM_PROJECT_USER_DIR/run
+@@ -76,7 +76,7 @@
+ # Select compiler installation
+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ # WM_COMPILER_INST = OpenFOAM | System
+-set WM_COMPILER_INST=OpenFOAM
++set WM_COMPILER_INST=System
+
+ switch ("$WM_COMPILER_INST")
+ case OpenFOAM:
+@@ -125,45 +125,48 @@
+
+ switch ("$WM_MPLIB")
+ case OPENMPI:
+- set mpi_version=openmpi-1.2.6
+- setenv MPI_HOME $WM_THIRD_PARTY_DIR/$mpi_version
+- setenv MPI_ARCH_PATH $MPI_HOME/platforms/$WM_OPTIONS
++# set mpi_version=openmpi-1.2.6
++# setenv MPI_HOME $WM_THIRD_PARTY_DIR/$mpi_version
++# setenv MPI_ARCH_PATH $MPI_HOME/platforms/$WM_OPTIONS
++ setenv MPI_ARCH_PATH /usr
+
+ # Tell OpenMPI where to find its install directory
+ setenv OPAL_PREFIX $MPI_ARCH_PATH
+
+- _foamAddLib $MPI_ARCH_PATH/lib
+- _foamAddPath $MPI_ARCH_PATH/bin
++# _foamAddLib $MPI_ARCH_PATH/lib
++# _foamAddPath $MPI_ARCH_PATH/bin
+
+- setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
+- unset mpi_version
++ setenv FOAM_MPI_LIBBIN $FOAM_LIB/openmpi
++# unset mpi_version
+ breaksw
+
+ case LAM:
+- set mpi_version=lam-7.1.4
+- setenv MPI_HOME $WM_THIRD_PARTY_DIR/$mpi_version
+- setenv MPI_ARCH_PATH $MPI_HOME/platforms/$WM_OPTIONS
+- setenv LAMHOME $WM_THIRD_PARTY_DIR/$mpi_version
++# set mpi_version=lam-7.1.4
++# setenv MPI_HOME $WM_THIRD_PARTY_DIR/$mpi_version
++# setenv MPI_ARCH_PATH $MPI_HOME/platforms/$WM_OPTIONS
++ setenv MPI_ARCH_PATH /usr
++# setenv LAMHOME $WM_THIRD_PARTY_DIR/$mpi_version
+ # note: LAMHOME is deprecated, should probably point to MPI_ARCH_PATH too
+
+- _foamAddLib $MPI_ARCH_PATH/lib
+- _foamAddPath $MPI_ARCH_PATH/bin
++# _foamAddLib $MPI_ARCH_PATH/lib
++# _foamAddPath $MPI_ARCH_PATH/bin
+
+- setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
+- unset mpi_version
++ setenv FOAM_MPI_LIBBIN $FOAM_LIB/lam
++# unset mpi_version
+ breaksw
+
+ case MPICH:
+- set mpi_version=mpich-1.2.4
+- setenv MPI_HOME $WM_THIRD_PARTY_DIR/$mpi_version
+- setenv MPI_ARCH_PATH $MPI_HOME/platforms/$WM_OPTIONS
++# set mpi_version=mpich-1.2.4
++# setenv MPI_HOME $WM_THIRD_PARTY_DIR/$mpi_version
++# setenv MPI_ARCH_PATH $MPI_HOME/platforms/$WM_OPTIONS
++ setenv MPI_ARCH_PATH /usr
+ setenv MPICH_ROOT $MPI_ARCH_PATH
+
+- _foamAddLib $MPI_ARCH_PATH/lib
+- _foamAddPath $MPI_ARCH_PATH/bin
++# _foamAddLib $MPI_ARCH_PATH/lib
++# _foamAddPath $MPI_ARCH_PATH/bin
+
+- setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
+- unset mpi_version
++ setenv FOAM_MPI_LIBBIN $FOAM_LIB/mpich
++# unset mpi_version
+ breaksw
+
+ case MPICH-GM:
+--- OpenFOAM-1.5-src/wmake/rules/General/flex++ 2008-05-01 16:16:40.000000000 +0200
++++ OpenFOAM-1.5/wmake/rules/General/flex++ 2008-07-22 16:18:41.000000000 +0200
+@@ -1,6 +1,6 @@
+ .SUFFIXES: .L
+
+-Ltoo = flex++ -f $$SOURCE ; mv lex.yy.cc $*.C ; $(CC) $(c++FLAGS) -c $*.C -o $@
++Ltoo = flex --c++ $$SOURCE ; mv lex.yy.cc $*.C ; $(CC) $(c++FLAGS) -c $*.C -o $@
+
+ .L.dep:
+ $(MAKE_DEP)
+--- OpenFOAM-1.5-src/wmake/Makefile 2008-06-27 13:19:31.000000000 +0200
++++ OpenFOAM-1.5/wmake/Makefile 2008-07-20 23:06:27.000000000 +0200
+@@ -56,7 +56,7 @@
+
+ LIB_SRC = $(WM_PROJECT_DIR)/src
+ LIB_DIR = $(WM_PROJECT_DIR)/lib
+-LIB_WM_OPTIONS_DIR = $(LIB_DIR)/$(WM_OPTIONS)
++LIB_WM_OPTIONS_DIR = $(LIB_DIR)
+ OBJECTS_DIR = $(MAKE_DIR)/$(WM_OPTIONS)
+ CLASSES_DIR = $(MAKE_DIR)/classes
+
+--- OpenFOAM-1.5-src/bin/paraFoam 2008-07-03 18:14:43.000000000 +0200
++++ OpenFOAM-1.5/bin/paraFoam 2008-07-22 15:23:24.000000000 +0200
+@@ -77,8 +77,8 @@
+ [ -s "$parentDir/$check" ] || usage "file does not exist: '$parentDir/$check'"
+ done
+
+-#caseFile="$caseName.foam"
+-caseFile="$caseName.OpenFOAM"
++caseFile="$caseName.foam"
++# caseFile="$caseName.OpenFOAM"
+
+ case "$ParaView_VERSION" in
+ 2*)
+@@ -96,7 +96,7 @@
+ *)
+ # Clean up on termination and on Ctrl-C
+ trap "rm -f $caseFile 2>/dev/null; exit 0" EXIT TERM INT
+- touch $caseFile
++ ln system/controlDict $caseFile
+ paraview --data=$caseFile
+ ;;
+
+--- OpenFOAM-1.5-src/src/decompositionAgglomeration/decompositionMethods/Make/options 2008-06-09 16:22:09.000000000 +0200
++++ OpenFOAM-1.5/src/decompositionAgglomeration/decompositionMethods/Make/options 2008-07-20 22:19:30.000000000 +0200
+@@ -1,6 +1,5 @@
+ EXE_INC = \
+- -I$(WM_THIRD_PARTY_DIR)/metis-5.0pre2/include
++ -I/usr/include/metis
+
+ LIB_LIBS = \
+- -lmetis \
+- -lGKlib
++ -lmetis
+--- OpenFOAM-1.5-src/src/decompositionAgglomeration/parMetisDecomp/Make/options 2008-06-09 16:23:55.000000000 +0200
++++ OpenFOAM-1.5/src/decompositionAgglomeration/parMetisDecomp/Make/options 2008-07-20 22:24:04.000000000 +0200
+@@ -2,11 +2,11 @@
+
+ EXE_INC = \
+ $(PFLAGS) $(PINC) \
+- -I$(WM_THIRD_PARTY_DIR)/ParMetis-3.1/ParMETISLib \
+- -I$(WM_THIRD_PARTY_DIR)/ParMetis-3.1 \
++ -I/usr/include/parmetis \
++ -I/usr/include/metis \
+ -I../decompositionMethods/lnInclude
+
+ LIB_LIBS = \
+ -L$(FOAM_MPI_LIBBIN) \
+- -lmetis-parmetis \
++ -lmetis \
+ -lparmetis
+--- OpenFOAM-1.5-src/src/decompositionAgglomeration/MGridGenGamgAgglomeration/Make/options 2008-06-09 16:22:37.000000000 +0200
++++ OpenFOAM-1.5/src/decompositionAgglomeration/MGridGenGamgAgglomeration/Make/options 2008-07-21 20:45:42.000000000 +0200
+@@ -1,5 +1,3 @@
+-ParMGridGen = $(WM_THIRD_PARTY_DIR)/ParMGridGen-1.0
+-
+ TYPE_REAL=
+ #if defined(SP)
+ TYPE_REAL=-DTYPE_REAL
+@@ -7,9 +5,9 @@
+
+ EXE_INC = \
+ -I$(LIB_SRC)/finiteVolume/lnInclude \
+- -I$(ParMGridGen)/MGridGen/Lib/lnInclude \
+- -I$(ParMGridGen)/MGridGen/IMlib/lnInclude \
++ -I/usr/include/mgridgen \
+ $(TYPE_REAL)
+
+ LIB_LIBS = \
++ -lIMlib \
+ -lMGridGen
+--- OpenFOAM-1.5-src/src/autoMesh/autoHexMesh/autoHexMeshDriver/autoRefineDriver.C 2008-07-09 10:43:41.000000000 +0200
++++ OpenFOAM-1.5/src/autoMesh/autoHexMesh/autoHexMeshDriver/autoRefineDriver.C 2008-07-21 22:02:55.000000000 +0200
+@@ -240,6 +240,7 @@
+ // ~~~~~~~~~~~~~~~~~~~~~~~~~
+ // Only look at surface intersections (minLevel and surface curvature),
+ // do not do internal refinement (refinementShells)
++PtrList<featureEdgeMesh> dummy(0);
+
+ labelList candidateCells
+ (
+@@ -248,7 +249,8 @@
+ refineParams.keepPoints()[0],
+ refineParams.curvature(),
+
+- PtrList<featureEdgeMesh>(0), // dummy featureMeshes;
++// PtrList<featureEdgeMesh>(0), // dummy featureMeshes;
++dummy, //dummy featureMeshes;
+ labelList(0), // dummy featureLevels;
+
+ false, // featureRefinement
+@@ -382,6 +384,8 @@
+ << "----------------------------" << nl
+ << endl;
+
++PtrList<featureEdgeMesh> dummy(0);
++
+ labelList candidateCells
+ (
+ meshRefiner_.refineCandidates
+@@ -389,7 +393,8 @@
+ refineParams.keepPoints()[0],
+ refineParams.curvature(),
+
+- PtrList<featureEdgeMesh>(0), // dummy featureMeshes;
++// PtrList<featureEdgeMesh>(0), // dummy featureMeshes;
++dummy, // dummy featureMeshes;
+ labelList(0), // dummy featureLevels;
+
+ false, // featureRefinement
diff --git a/sci-libs/openfoam/metadata.xml b/sci-libs/openfoam/metadata.xml
new file mode 100644
index 000000000000..6f1d493c5450
--- /dev/null
+++ b/sci-libs/openfoam/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/sci-libs/openfoam/openfoam-1.5.ebuild b/sci-libs/openfoam/openfoam-1.5.ebuild
new file mode 100644
index 000000000000..eb7ec8971b87
--- /dev/null
+++ b/sci-libs/openfoam/openfoam-1.5.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/openfoam-1.5.ebuild,v 1.1 2009/04/25 16:35:58 patrick Exp $
+
+inherit eutils versionator multilib toolchain-funcs
+
+MY_PN="OpenFOAM"
+MY_PV=$(get_version_component_range 1-2)
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Open Field Operation and Manipulation - CFD Simulation Toolbox"
+HOMEPAGE="http://www.opencfd.co.uk/openfoam/"
+SRC_URI="mirror://sourceforge/foam/${MY_P}.General.gtgz"
+
+LICENSE="GPL-2"
+SLOT="1.5"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples doc"
+
+DEPEND="!=sci-libs/openfoam-bin-${MY_PV}*
+ !=sci-libs/openfoam-kernel-${MY_PV}*
+ !=sci-libs/openfoam-meta-${MY_PV}*
+ !=sci-libs/openfoam-solvers-${MY_PV}*
+ !=sci-libs/openfoam-utilities-${MY_PV}*
+ !=sci-libs/openfoam-wmake-${MY_PV}*
+ sci-libs/parmetis
+ sci-libs/parmgridgen
+ || ( >sci-visualization/paraview-3.0 sci-visualization/opendx )
+ virtual/mpi"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if ! version_is_at_least 4.1 $(gcc-version) ; then
+ die "${PN} requires >=sys-devel/gcc-4.1 to compile."
+ fi
+
+ elog
+ elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :"
+ elog "source /usr/$(get_libdir)/${MY_PN}/bashrc"
+ ewarn
+ ewarn "FoamX is deprecated since ${MY_PN}-1.5! "
+ ewarn
+}
+
+src_unpack() {
+ ln -s "${DISTDIR}"/${MY_P}.General.gtgz ${MY_P}.General.tgz
+ unpack ./${MY_P}.General.tgz
+
+ cd "${S}"
+ epatch "${FILESDIR}"/${MY_P}-compile.patch
+}
+
+src_compile() {
+ if has_version sys-cluster/lam-mpi ; then
+ export WM_MPLIB=LAM
+ elif has_version sys-cluster/mpich2 ; then
+ export WM_MPLIB=MPICH
+ elif has_version sys-cluster/openmpi ; then
+ export WM_MPLIB=OPENMPI
+ else
+ die "You need one of the following mpi implementations: openmpi, lam-mpi or mpich2"
+ fi
+
+ sed -i -e "s|WM_MPLIB:=OPENMPI|WM_MPLIB:="${WM_MPLIB}"|" etc/bashrc
+ sed -i -e "s|setenv WM_MPLIB OPENMPI|setenv WM_MPLIB "${WM_MPLIB}"|" etc/cshrc
+
+ export FOAM_INST_DIR=${WORKDIR}
+ source etc/bashrc
+
+ find wmake -name dirToString | xargs rm -rf
+ find wmake -name wmkdep | xargs rm -rf
+
+ ./Allwmake || die "could not build"
+}
+
+src_test() {
+ cd bin
+ ./foamInstallationTest
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/${MY_PN}/${MY_P}
+ doins -r etc
+
+ rm -rf tutorials/rhoPorousSimpleFoam/angledDuctExplicit/{0,constant}
+ cp -a tutorials/rhoPorousSimpleFoam/angledDuctImplicit/{0,constant} tutorials/rhoPorousSimpleFoam/angledDuctExplicit
+ use examples && doins -r tutorials
+
+ insopts -m0755
+ doins -r bin
+
+ insinto /usr/$(get_libdir)/${MY_PN}/${MY_P}/applications/bin
+ doins -r applications/bin/*
+
+ insinto /usr/$(get_libdir)/${MY_PN}/${MY_P}/lib
+ doins -r lib/*
+
+ insinto /usr/$(get_libdir)/${MY_PN}/${MY_P}/wmake
+ doins -r wmake/*
+
+ insopts -m0644
+ insinto /usr/share/doc/${PF}
+ doins doc/Guides-a4/*.pdf
+ dodoc README
+
+ if use doc ; then
+ dohtml -r doc/Doxygen
+ fi
+
+ dosym /usr/$(get_libdir)/${MY_PN}/${MY_P}/etc/bashrc /usr/$(get_libdir)/${MY_PN}/bashrc
+ dosym /usr/$(get_libdir)/${MY_PN}/${MY_P}/etc/cshrc /usr/$(get_libdir)/${MY_PN}/cshrc
+}