summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Borm (oli) <oli.borm@web.de>2009-02-13 22:12:16 +0000
committerOliver Borm (oli) <oli.borm@web.de>2009-02-13 22:12:16 +0000
commitba502897b4afa7ccdc8fd1ef066805714a3d605a (patch)
tree23cc1ad57b5e6460dbb30ee3fd5f55eb03dbcacf /sci-libs
parentsci-libs/openfoam-src: Remove old version. (diff)
downloadsunrise-reviewed-ba502897b4afa7ccdc8fd1ef066805714a3d605a.tar.gz
sunrise-reviewed-ba502897b4afa7ccdc8fd1ef066805714a3d605a.tar.bz2
sunrise-reviewed-ba502897b4afa7ccdc8fd1ef066805714a3d605a.zip
sci-libs/openfoam: Remove old version.
svn path=/sunrise/; revision=7916
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/openfoam/ChangeLog5
-rw-r--r--sci-libs/openfoam/Manifest7
-rw-r--r--sci-libs/openfoam/files/compile-1.4.1_p20080118.patch253
-rw-r--r--sci-libs/openfoam/files/openfoam-paraFoam-1.4.1_p20080118.patch29
-rw-r--r--sci-libs/openfoam/openfoam-1.4.1_p20080118.ebuild238
5 files changed, 6 insertions, 526 deletions
diff --git a/sci-libs/openfoam/ChangeLog b/sci-libs/openfoam/ChangeLog
index 03280a0f0..946180136 100644
--- a/sci-libs/openfoam/ChangeLog
+++ b/sci-libs/openfoam/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 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
diff --git a/sci-libs/openfoam/Manifest b/sci-libs/openfoam/Manifest
index 7c9fdd94c..de48dd480 100644
--- a/sci-libs/openfoam/Manifest
+++ b/sci-libs/openfoam/Manifest
@@ -1,10 +1,5 @@
AUX OpenFOAM-1.5-compile.patch 15006 RMD160 ba8423526b5244e3c30d9d38830a2fe79e3c2a1a SHA1 7d275039cea1fe8a3c28fafeda1fef3665360f83 SHA256 6cb940b6c559a846ec65184db8f7c7966d1bef105d5bdad6ca4afd3f1b4d5b89
-AUX compile-1.4.1_p20080118.patch 7139 RMD160 d7ec0d67ffd5515347d901ab98f6f662f410d431 SHA1 f8a7dc555da810f9a39f7ceba217fcf594941de6 SHA256 0519fe7aa1108e6601ec50405b96770a00f6b27d6109d1c56687059ff908323e
-AUX openfoam-paraFoam-1.4.1_p20080118.patch 1065 RMD160 b20c53b7976fd9c25303dc3d2a31f8f02cfd7468 SHA1 52233c957fed91051f7e0fa99647ae616a366833 SHA256 0afa1abae77b52da3343983b892f7b975117b5758e0582b726b58adc41561d70
-DIST OpenFOAM-1.4.1.General.gtgz 148526808 RMD160 e25d8bdfa63f15eeeb7b9f1cef09cc26fb7bef74 SHA1 56bbbf5b33c49d08cda35088a65b24d7dc59014f SHA256 c765b36639b42c737bc9ba1ac13c0f66efe20ee4a9f71a6ef987e86ebd50da28
DIST OpenFOAM-1.5.General.gtgz 117334661 RMD160 bccaa9f8f99d31aa6c791d40b30dd9ad4f534041 SHA1 3577f562dc1f54bb32e1e0ef43f979418212c2f7 SHA256 d4cba2d9475523a53cea80b8d39da70d12bfffb9f46e2d1442946ba4a23efd31
-DIST openfoam-1.4.1_p20080118.patch 620098 RMD160 8e3e5ee7b6b9248191b0a1ae990ade9df1d7ea36 SHA1 9d0e7ab8fe5432d3601ac616d16b2000e7fa2607 SHA256 fee1c43d5bad63a2fa929556c2850377c084e9508a282f67979a5514445e4de1
-EBUILD openfoam-1.4.1_p20080118.ebuild 10068 RMD160 54a7850b3ffb024b123fa44d0f239fd4d777964e SHA1 ddc940bed929a5a040a3ee1d8ce009ef51994034 SHA256 2786c28cad2404c7cc3d0ca305963f1862dd8f9446b80472ed0bcd6bf813a8ce
EBUILD openfoam-1.5.ebuild 2971 RMD160 bfee336183188b227fa8e900ac25d1a9a2525508 SHA1 07591fa7c2d39585a507f9e90aa630700eebd804 SHA256 e864b6400551b9550534ae48090fee82f626aa005acd891867785abb2e6aa3bd
-MISC ChangeLog 3541 RMD160 70038799b218a683fc6cc4c8b3e4f8e4d60b7558 SHA1 ea3e201b432385ea1e7e124be81013b44b869f95 SHA256 a2a253ba823b8846ef710467f229f52638b1496bbafb3498f059a63913f7d679
+MISC ChangeLog 3742 RMD160 f9442b1be1894e5d5a1932d4a214ede70dbc9497 SHA1 57471bda9c5cb2df8763e0e4d0621cd9fec753f6 SHA256 2809a84133b00e572ba017e05dfad32c376c4bdb733d3335aab17e8546de4f94
MISC metadata.xml 338 RMD160 5c81790bd48a9e38ad9bc98fc5e15fa1ff6dac5c SHA1 bae9c545be8e4438b9e1f891ffc33a53405e753d SHA256 8daa7d1d48a127020f8cb03c55bb6140a1253d374284318384def84d7d725b5e
diff --git a/sci-libs/openfoam/files/compile-1.4.1_p20080118.patch b/sci-libs/openfoam/files/compile-1.4.1_p20080118.patch
deleted file mode 100644
index 6f3563814..000000000
--- a/sci-libs/openfoam/files/compile-1.4.1_p20080118.patch
+++ /dev/null
@@ -1,253 +0,0 @@
-diff -ur OpenFOAM-1.4.1-src/src/Allwmake OpenFOAM-1.4.1/src/Allwmake
---- OpenFOAM-1.4.1-src/src/Allwmake 2007-07-27 17:54:28.000000000 +0200
-+++ OpenFOAM-1.4.1/src/Allwmake 2007-10-18 21:04:12.000000000 +0200
-@@ -3,103 +3,103 @@
-
- (cd $FOAM_SRC/OpenFOAM ; wmakeLnInclude . )
-
--wmake libso zlib-1.2.1
--
--if [ "$WM_MPLIB" = "OPENMPI" -a ! -r $OPENMPI_ARCH_PATH/lib/libmpi.a -a ! -r $OPENMPI_ARCH_PATH/lib/libmpi.so ]
--then
--
-- cd $OPENMPI_HOME
--
-- gmake distclean
-- rm -rf $OPENMPI_ARCH_PATH
--
-- ./configure \
-- --prefix=$OPENMPI_ARCH_PATH \
-- --disable-mpirun-prefix-by-default \
-- --disable-orterun-prefix-by-default \
-- --enable-shared --disable-static \
-- --disable-mpi-f77 --disable-mpi-f90 --disable-mpi-cxx \
-- --disable-mpi-profile
--
-- gmake
-- gmake install
-- gmake distclean
--
-- cd $FOAM_SRC
--fi
--
--if [ "$WM_MPLIB" = "LAM" -a ! -r $LAM_ARCH_PATH/lib/libmpi.a -a ! -r $LAM_ARCH_PATH/lib/libmpi.so ]
--then
--
-- cd $LAMHOME
--
-- gmake distclean
-- rm -rf $LAM_ARCH_PATH
--
-- ./configure \
-- --prefix=$LAM_ARCH_PATH \
-- --enable-shared \
-- --disable-static \
-- --without-romio \
-- --without-mpi2cpp \
-- --without-profiling \
-- --without-fc
--
-- gmake
-- gmake install
-- gmake distclean
--
-- cd $FOAM_SRC
--fi
--
--if [ "$WM_MPLIB" = "MPICH" -a ! -r $MPICH_ARCH_PATH/lib/libmpich.a -a ! -r $MPICH_ARCH_PATH/lib/libmpich.so ]
--then
--
-- cd $MPICH_PATH
--
-- make distclean
-- rm -rf $MPICH_ARCH_PATH
-- rm util/machines/machines.*
--
-- ./configure \
-- --without-mpe \
-- --disable-f77 \
-- --disable-f90 \
-- --disable-f90modules \
-- --disable-c++ \
-- --disable-mpedbg \
-- --disable-devdebug \
-- --disable-debug \
-- --enable-sharedlib=$MPICH_ARCH_PATH/lib \
-- --with-device=ch_p4 \
-- -prefix=$MPICH_ARCH_PATH
-- make
-- make install
-- make distclean
--
-- if [ -r $MPICH_ARCH_PATH ]
-- then
-- cd $MPICH_ARCH_PATH/bin
-- for file in *
-- do
-- sed s%$MPICH_ARCH_PATH%'$MPICH_ARCH_PATH'%g $file > temp.$$
-- mv temp.$$ $file
-- chmod ugo+rx $file
-- done
--
-- cd $MPICH_ARCH_PATH/lib
--
-- if [ -r libmpich.so.1.0 ]
-- then
-- rm *.so
-- ln -s libmpich.so.1.0 libmpich.so
-- fi
--
-- cd $MPICH_ARCH_PATH
-- fi
--
-- cd $FOAM_SRC
--fi
-+# wmake libso zlib-1.2.1
-+#
-+# if [ "$WM_MPLIB" = "OPENMPI" -a ! -r $OPENMPI_ARCH_PATH/lib/libmpi.a -a ! -r $OPENMPI_ARCH_PATH/lib/libmpi.so ]
-+# then
-+#
-+# cd $OPENMPI_HOME
-+#
-+# gmake distclean
-+# rm -rf $OPENMPI_ARCH_PATH
-+#
-+# ./configure \
-+# --prefix=$OPENMPI_ARCH_PATH \
-+# --disable-mpirun-prefix-by-default \
-+# --disable-orterun-prefix-by-default \
-+# --enable-shared --disable-static \
-+# --disable-mpi-f77 --disable-mpi-f90 --disable-mpi-cxx \
-+# --disable-mpi-profile
-+#
-+# gmake
-+# gmake install
-+# gmake distclean
-+#
-+# cd $FOAM_SRC
-+# fi
-+#
-+# if [ "$WM_MPLIB" = "LAM" -a ! -r $LAM_ARCH_PATH/lib/libmpi.a -a ! -r $LAM_ARCH_PATH/lib/libmpi.so ]
-+# then
-+#
-+# cd $LAMHOME
-+#
-+# gmake distclean
-+# rm -rf $LAM_ARCH_PATH
-+#
-+# ./configure \
-+# --prefix=$LAM_ARCH_PATH \
-+# --enable-shared \
-+# --disable-static \
-+# --without-romio \
-+# --without-mpi2cpp \
-+# --without-profiling \
-+# --without-fc
-+#
-+# gmake
-+# gmake install
-+# gmake distclean
-+#
-+# cd $FOAM_SRC
-+# fi
-+#
-+# if [ "$WM_MPLIB" = "MPICH" -a ! -r $MPICH_ARCH_PATH/lib/libmpich.a -a ! -r $MPICH_ARCH_PATH/lib/libmpich.so ]
-+# then
-+#
-+# cd $MPICH_PATH
-+#
-+# make distclean
-+# rm -rf $MPICH_ARCH_PATH
-+# rm util/machines/machines.*
-+#
-+# ./configure \
-+# --without-mpe \
-+# --disable-f77 \
-+# --disable-f90 \
-+# --disable-f90modules \
-+# --disable-c++ \
-+# --disable-mpedbg \
-+# --disable-devdebug \
-+# --disable-debug \
-+# --enable-sharedlib=$MPICH_ARCH_PATH/lib \
-+# --with-device=ch_p4 \
-+# -prefix=$MPICH_ARCH_PATH
-+# make
-+# make install
-+# make distclean
-+#
-+# if [ -r $MPICH_ARCH_PATH ]
-+# then
-+# cd $MPICH_ARCH_PATH/bin
-+# for file in *
-+# do
-+# sed s%$MPICH_ARCH_PATH%'$MPICH_ARCH_PATH'%g $file > temp.$$
-+# mv temp.$$ $file
-+# chmod ugo+rx $file
-+# done
-+#
-+# cd $MPICH_ARCH_PATH/lib
-+#
-+# if [ -r libmpich.so.1.0 ]
-+# then
-+# rm *.so
-+# ln -s libmpich.so.1.0 libmpich.so
-+# fi
-+#
-+# cd $MPICH_ARCH_PATH
-+# fi
-+#
-+# cd $FOAM_SRC
-+# fi
-
- (cd Pstream ; ./Allwmake)
- wmake libso OpenFOAM
-diff -ur OpenFOAM-1.4.1-src/wmake/rules/General/flex++ OpenFOAM-1.4.1/wmake/rules/General/flex++
---- OpenFOAM-1.4.1-src/wmake/rules/General/flex++ 2006-08-18 17:35:12.000000000 +0200
-+++ OpenFOAM-1.4.1/wmake/rules/General/flex++ 2007-10-28 17:38:46.000000000 +0100
-@@ -1,6 +1,6 @@
- .SUFFIXES: .L
-
--Ltoo = flex++ -f $$SOURCE ; mv lex.yy.cc $*.C ; $(CC) $(c++FLAGS) -c $*.C -o $@
-+Ltoo = flex --c++ -f $$SOURCE ; mv lex.yy.cc $*.C ; $(CC) $(c++FLAGS) -c $*.C -o $@
-
- .L.dep:
- $(MAKE_DEP)
-diff -ur OpenFOAM-1.4.1-src/wmake/rules/General/flex++.test OpenFOAM-1.4.1/wmake/rules/General/flex++.test
---- OpenFOAM-1.4.1-src/wmake/rules/General/flex++.test 2007-03-13 17:27:58.000000000 +0100
-+++ OpenFOAM-1.4.1/wmake/rules/General/flex++.test 2007-10-28 17:39:09.000000000 +0100
-@@ -1,6 +1,6 @@
- .SUFFIXES: .L
-
--Ltoo = flex++ $$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)
-diff -ur OpenFOAM-1.4.1-src/src/Allwmake OpenFOAM-1.4.1/src/Allwmake
---- OpenFOAM-1.4.1-src/src/Allwmake 2007-07-27 17:54:28.000000000 +0200
-+++ OpenFOAM-1.4.1/src/Allwmake 2007-10-18 21:04:12.000000000 +0200
-@@ -141,13 +141,13 @@
-
- (cd malloc ; ./Allwmake)
-
--if [ ! -r $MICO_ARCH_PATH/lib/libmico${MICO_VERSION}.a ]
--then
-- cd $MICO_PATH
-- gmake distclean
-- ./configure --prefix=$MICO_ARCH_PATH --disable-shared --without-x
-- gmake
-- gmake install
-- gmake distclean
-- cd ..
--fi
-+# if [ ! -r $MICO_ARCH_PATH/lib/libmico${MICO_VERSION}.a ]
-+# then
-+# cd $MICO_PATH
-+# gmake distclean
-+# ./configure --prefix=$MICO_ARCH_PATH --disable-shared --without-x
-+# gmake
-+# gmake install
-+# gmake distclean
-+# cd ..
-+# fi
diff --git a/sci-libs/openfoam/files/openfoam-paraFoam-1.4.1_p20080118.patch b/sci-libs/openfoam/files/openfoam-paraFoam-1.4.1_p20080118.patch
deleted file mode 100644
index 56adcecfb..000000000
--- a/sci-libs/openfoam/files/openfoam-paraFoam-1.4.1_p20080118.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- OpenFOAM-1.4.1-src/bin/paraFoam 2007-04-17 12:57:20.000000000 +0200
-+++ paraFoam 2008-03-28 12:36:24.000000000 +0100
-@@ -66,13 +66,19 @@
- [ -s "$rootDir/$check" ] || usage "file does not exist: '$check'"
- done
-
-+if [ -r system/controlDict.foam ]; then
-+ echo "$0: Using already present $caseDir/system/controlDict.foam"
-+ # since we are now in the cwd, ROOT/CASE is '$PWD'
-+ paraview --data="$PWD/system/controlDict.foam"
-+else
-+ if [ ! -s system/controlDict ]; then
-+ usage "file does not exist: 'system/controlDict'"
-+ fi
-+ ln system/controlDict system/controlDict.foam
-+ # since we are now in the cwd, ROOT/CASE is '$PWD'
-+ paraview --data="$PWD/system/controlDict.foam"
-+fi
-
--# since we are now in the cwd, ROOT/CASE is '$PWD'
--sed -e s%ROOT/CASE%$PWD%g \
-- -e s%CASE%$caseName%g $WM_PROJECT_DIR/bin/paraFoam.pvs > paraFoam.pvs
--
--touch $caseName.foam
--paraview paraFoam.pvs
--rm paraFoam.pvs $caseName.foam 2>/dev/null
-+rm system/controlDict.foam 2>/dev/null
-
- #------------------------------------------------------------------------------
diff --git a/sci-libs/openfoam/openfoam-1.4.1_p20080118.ebuild b/sci-libs/openfoam/openfoam-1.4.1_p20080118.ebuild
deleted file mode 100644
index f6cdeaaf6..000000000
--- a/sci-libs/openfoam/openfoam-1.4.1_p20080118.ebuild
+++ /dev/null
@@ -1,238 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils java-pkg-2 versionator multilib toolchain-funcs
-
-MY_PN="OpenFOAM"
-MY_PV=$(get_version_component_range 1-3 ${PV})
-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
- http://dev.gentooexperimental.org/~tommy/${P}.patch"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="examples lam mpich"
-
-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}*
- =dev-java/sun-java3d-bin-1.4*
- net-misc/mico
- <virtual/jdk-1.5
- sci-libs/parmetis
- || ( >sci-visualization/paraview-3.0 sci-visualization/opendx )
- !mpich? ( !lam? ( sys-cluster/openmpi ) )
- lam? ( sys-cluster/lam-mpi )
- mpich? ( sys-cluster/mpich2 )"
-RDEPEND="${DEPEND}"
-
-S=${WORKDIR}/${MY_P}
-
-pkg_setup() {
- if use lam && use mpich ; then
- die "Please choose only one MPI implementation as default."
- fi
-
- if ! version_is_at_least 4.1 $(gcc-version) ; then
- die "${PN} requires >=sys-devel/gcc-4.1 to compile."
- fi
-
- if use amd64 ; then
- elog
- elog "In order to use OpenFOAM you should add the following lines to ~/.bashrc :"
- elog 'WM_64="on"'
- elog "source /usr/$(get_libdir)/OpenFOAM/bashrc"
- else
- elog
- elog "In order to use OpenFOAM you should add the following line to ~/.bashrc :"
- elog "source /usr/$(get_libdir)/OpenFOAM/bashrc"
- fi
-
- elog
- elog "In order to get FoamX running, you have to do the following: "
- elog "mkdir -p ~/.${MY_P}/apps "
- elog "cp -r /usr/$(get_libdir)/${MY_PN}/${MY_P}/.${MY_P}/apps/FoamX ~/.${MY_P}/apps "
- elog
-
- java-pkg-2_pkg_setup
-}
-
-src_unpack() {
- ln -s "${DISTDIR}"/${MY_P}.General.gtgz ${MY_P}.General.tgz
- unpack ./${MY_P}.General.tgz
-
- cd "${S}"
- epatch "${DISTDIR}"/${P}.patch
- epatch "${FILESDIR}"/compile-${PV}.patch
- epatch "${FILESDIR}"/${PN}-paraFoam-${PV}.patch
-}
-
-src_compile() {
- use amd64 && export WM_64="on"
-
- if use lam ; then
- export WM_MPLIB=LAM
- elif use mpich ; then
- export WM_MPLIB=MPICH
- else
- export WM_MPLIB=OPENMPI
- fi
-
- sed -i -e "s|WM_PROJECT_VERSION=|WM_PROJECT_VERSION=${MY_PV} #|" \
- -e "s|export WM_PROJECT_INST_DIR=\$HOME/\$WM_PROJECT|# export WM_PROJECT_INST_DIR=\$HOME/\$WM_PROJECT|" \
- -e "s|#export WM_PROJECT_INST_DIR=/usr/local/\$WM_PROJECT|export WM_PROJECT_INST_DIR=/usr/$(get_libdir)/\$WM_PROJECT|" \
- -e "s|[^#]export WM_MPLIB=| #export WM_MPLIB=|" \
- -e "s|#export WM_MPLIB=$|export WM_MPLIB="${WM_MPLIB}"|" \
- -e "s|SOURCE \$WM_PROJECT_DIR/\$FOAM_DOT_DIR/apps|#SOURCE \$WM_PROJECT_DIR/\$FOAM_DOT_DIR/apps|" \
- "${S}"/.${MY_P}/bashrc
-
- sed -i -e "s|WM_PROJECT_VERSION |WM_PROJECT_VERSION ${MY_PV} #|" \
- -e "s|setenv WM_PROJECT_INST_DIR \$HOME/\$WM_PROJECT|# setenv WM_PROJECT_INST_DIR \$HOME/\$WM_PROJECT|" \
- -e "s|#setenv WM_PROJECT_INST_DIR /usr/local/\$WM_PROJECT|setenv WM_PROJECT_INST_DIR /usr/$(get_libdir)/\$WM_PROJECT|" \
- -e "s|[^#]setenv WM_MPLIB | #setenv WM_MPLIB |" \
- -e "s|#setenv WM_MPLIB OPENMPI|setenv WM_MPLIB "${WM_MPLIB}"|" \
- -e "s|SOURCE \$WM_PROJECT_DIR/\$FOAM_DOT_DIR/apps|#SOURCE \$WM_PROJECT_DIR/\$FOAM_DOT_DIR/apps|" \
- "${S}"/.${MY_P}/cshrc
-
- sed -i -e "s|FOAM_JOB_DIR=\$WM_PROJECT_INST_DIR/jobControl|FOAM_JOB_DIR=\$HOME/\$WM_PROJECT/jobControl|" \
- -e "s|WM_COMPILER_DIR=|WM_COMPILER_DIR=/usr # |" \
- -e 's|JAVA_HOME=|JAVA_HOME=${JAVA_HOME} # |' \
- -e 's@OPENMPI_VERSION=@OPENMPI_VERSION=`/usr/bin/ompi_info --version ompi full --parsable | grep ompi:version:full | cut -d: -f4-` # @' \
- -e 's|[^#]export OPENMPI_HOME=|# export OPENMPI_HOME=|' \
- -e 's|OPENMPI_ARCH_PATH=|OPENMPI_ARCH_PATH=/usr # |' \
- -e 's@LAM_VERSION=@LAM_VERSION=`/usr/bin/laminfo -version lam full | awk ''{print \$\$2}''` # @' \
- -e 's|[^#]export LAMHOME=|# export LAMHOME=|' \
- -e 's|LAM_ARCH_PATH=|LAM_ARCH_PATH=/usr # |' \
- -e 's|MPICH_VERSION=|MPICH_VERSION=`/usr/bin/mpich2version --version` # |' \
- -e 's|[^#]export MPICH_PATH=$FOAM_SRC|# export MPICH_PATH=$FOAM_SRC|' \
- -e 's|MPICH_ARCH_PATH=|MPICH_ARCH_PATH=/usr # |' \
- -e 's|AddLib $OPENMPI_ARCH_PATH|# AddLib $OPENMPI_ARCH_PATH|' \
- -e 's|AddPath $OPENMPI_ARCH_PATH|# AddPath $OPENMPI_ARCH_PATH|' \
- -e 's|AddLib $LAM_ARCH_PATH|# AddLib $LAM_ARCH_PATH|' \
- -e 's|AddPath $LAM_ARCH_PATH|# AddPath $LAM_ARCH_PATH|' \
- -e 's|AddLib $MPICH_ARCH_PATH|# AddLib $MPICH_ARCH_PATH|' \
- -e 's|AddPath $MPICH_ARCH_PATH|# AddPath $MPICH_ARCH_PATH|' \
- -e 's|$FOAM_LIBBIN/openmpi-$OPENMPI_VERSION|$FOAM_LIBBIN/openmpi|' \
- -e 's|$FOAM_LIBBIN/lam-$LAM_VERSION|$FOAM_LIBBIN/lam|' \
- -e 's|$FOAM_LIBBIN/mpich-$MPICH_VERSION|$FOAM_LIBBIN/mpich|' \
- -e 's|MICO_VERSION=|MICO_VERSION=`/usr/bin/mico-config --version` # |' \
- -e "s|[^#]export MICO_PATH=|# export MICO_PATH=|" \
- -e "s|MICO_ARCH_PATH=|MICO_ARCH_PATH=/usr # |" \
- "${S}"/.bashrc
-
- sed -i -e "s|FOAM_JOB_DIR \$WM_PROJECT_INST_DIR/jobControl|FOAM_JOB_DIR \$HOME/\$WM_PROJECT/jobControl|" \
- -e "s|WM_COMPILER_DIR |WM_COMPILER_DIR /usr # |" \
- -e 's|JAVA_HOME |JAVA_HOME ${JAVA_HOME} # |' \
- -e 's@OPENMPI_VERSION @OPENMPI_VERSION `/usr/bin/ompi_info --version ompi full --parsable | grep ompi:version:full | cut -d: -f4-` # @' \
- -e 's|[^#]setenv OPENMPI_HOME|# setenv OPENMPI_HOME|' \
- -e 's|OPENMPI_ARCH_PATH |OPENMPI_ARCH_PATH /usr # |' \
- -e 's@LAM_VERSION @LAM_VERSION `/usr/bin/laminfo -version lam full | awk ''{print \$\$2}''` # @' \
- -e 's|[^#]setenv LAMHOME|# setenv LAMHOME|' \
- -e 's|LAM_ARCH_PATH |LAM_ARCH_PATH /usr # |' \
- -e 's|MPICH_VERSION |MPICH_VERSION `/usr/bin/mpich2version --version` # |' \
- -e 's|[^#]setenv MPICH_PATH $FOAM_SRC|# setenv MPICH_PATH $FOAM_SRC|' \
- -e 's|MPICH_ARCH_PATH |MPICH_ARCH_PATH /usr # |' \
- -e 's|AddLib $OPENMPI_ARCH_PATH|# AddLib $OPENMPI_ARCH_PATH|' \
- -e 's|AddPath $OPENMPI_ARCH_PATH|# AddPath $OPENMPI_ARCH_PATH|' \
- -e 's|AddLib $LAM_ARCH_PATH|# AddLib $LAM_ARCH_PATH|' \
- -e 's|AddPath $LAM_ARCH_PATH|# AddPath $LAM_ARCH_PATH|' \
- -e 's|AddLib $MPICH_ARCH_PATH|# AddLib $MPICH_ARCH_PATH|' \
- -e 's|AddPath $MPICH_ARCH_PATH|# AddPath $MPICH_ARCH_PATH|' \
- -e 's|$FOAM_LIBBIN/openmpi-$OPENMPI_VERSION|$FOAM_LIBBIN/openmpi|' \
- -e 's|$FOAM_LIBBIN/lam-$LAM_VERSION|$FOAM_LIBBIN/lam|' \
- -e 's|$FOAM_LIBBIN/mpich-$MPICH_VERSION|$FOAM_LIBBIN/mpich|' \
- -e 's|MICO_VERSION |MICO_VERSION `/usr/bin/mico-config --version` # |' \
- -e "s|[^#]setenv MICO_PATH |# setenv MICO_PATH |" \
- -e "s|MICO_ARCH_PATH |MICO_ARCH_PATH /usr # |" \
- "${S}"/.cshrc
-
- sed -i -e "s|/lib/j3d-org.jar|/lib/j3d-org.jar:/usr/share/sun-java3d-bin/lib/vecmath.jar:/usr/share/sun-java3d-bin/lib/j3dutils.jar:/usr/share/sun-java3d-bin/lib/j3dcore.jar|" \
- "${S}"/applications/utilities/mesh/manipulation/patchTool/Java/Allwmake
-
- sed -i -e "s|:../lib/j3d-org.jar|:../lib/j3d-org.jar:/usr/share/sun-java3d-bin/lib/vecmath.jar:/usr/share/sun-java3d-bin/lib/j3dutils.jar:/usr/share/sun-java3d-bin/lib/j3dcore.jar|" \
- "${S}"/applications/utilities/mesh/manipulation/patchTool/Java/Make/options
-
- sed -i -e "s|-lmetis \\\|-lmetis|" \
- -e 's|../metis-5.0pre2/include|/usr/include/metis|' \
- -e 's|-lGKlib||' \
- "${S}"/applications/utilities/parallelProcessing/decompositionMethods/decompositionMethods/Make/options \
- || die "could not replace metis options"
-
- sed -i -e 's|wmake libso metis|# wmake libso metis|' \
- "${S}"/applications/utilities/parallelProcessing/decompositionMethods/Allwmake \
- || die "could not replace metis options"
-
- sed -i -e 's|wmake libso ParMetis|# wmake libso ParMetis|' \
- "${S}"/applications/utilities/parallelProcessing/decompositionMethods/parMetisDecomp/Allwmake \
- || die "could not replace metis options"
-
- sed -i -e 's|parMetisDecomp/ParMetis-3.1/ParMETISLib|/usr/include/parmetis|' \
- "${S}"/applications/utilities/parallelProcessing/decompositionMethods/parMetisDecomp/Make/options \
- || die "could not replace metis options"
-
- cp "${S}"/.${MY_P}/bashrc "${S}"/.${MY_P}/bashrc.bak || "cannot copy bashrc"
-
- sed -i -e "s|WM_PROJECT_INST_DIR=/usr/$(get_libdir)/\$WM_PROJECT|WM_PROJECT_INST_DIR="${WORKDIR}"|" \
- -e "s|WM_PROJECT_DIR=\$WM_PROJECT_INST_DIR/\$WM_PROJECT-\$WM_PROJECT_VERSION|WM_PROJECT_DIR="${S}"|" \
- "${S}"/.${MY_P}/bashrc.bak \
- || die "could not replace source options"
-
- source "${S}"/.${MY_P}/bashrc.bak
-
- find "${S}"/wmake -name dirToString | xargs rm -rf
- find "${S}"/wmake -name wmkdep | xargs rm -rf
-
- cd "${S}"
- ./Allwmake || die "could not build"
-
- rm "${S}"/bin/paraFoam.pvs
- rm "${S}"/.${MY_P}/bashrc.bak
-
- sed -i -e "s|/\$WM_OPTIONS||" "${S}"/.bashrc || die "could not delete \$WM_OPTIONS in .bashrc"
- sed -i -e "s|/\$WM_OPTIONS||" "${S}"/.cshrc || die "could not delete \$WM_OPTIONS in .cshrc"
- rm "${S}"/applications/utilities/mesh/conversion/ccm26ToFoam/libccmio/config/{irix64_6.5-mips4,irix_6.5-mips3,sunos64_5.8-ultra,linux64_2.6-pwr4-glibc_2.3.3}/qmake
-}
-
-src_test() {
- cd "${S}"/bin
- ./foamInstallationTest
-}
-
-src_install() {
- insinto /usr/$(get_libdir)/"${MY_PN}"/${MY_P}
- doins -r .bashrc .cshrc .${MY_P}
-
- use examples && doins -r tutorials
-
- insopts -m0755
- doins -r bin
-
- insinto /usr/$(get_libdir)/${MY_PN}/${MY_P}/applications/bin
- doins -r applications/bin/${WM_OPTIONS}/*
-
- insinto /usr/$(get_libdir)/${MY_PN}/${MY_P}/lib
- doins -r lib/${WM_OPTIONS}/*
-
- insinto /usr/$(get_libdir)/${MY_PN}/${MY_P}/wmake
- doins -r wmake/*
-
- insopts -m0644
- find "${S}"/applications -type d \( -name "${WM_OPTIONS}" -o -name linuxDebug -o -name linuxOpt \) | xargs rm -rf
-
- insinto /usr/$(get_libdir)/${MY_PN}/${MY_P}/applications
- doins -r applications/solvers applications/test applications/utilities
-
- insinto /usr/share/${MY_PN}/${MY_P}/doc
- doins -r README doc/Guides-a4 doc/Guides-usletter
-
- dosym /usr/$(get_libdir)/${MY_PN}/${MY_P}/.${MY_P}/bashrc /usr/$(get_libdir)/${MY_PN}/bashrc
- dosym /usr/$(get_libdir)/${MY_PN}/${MY_P}/.${MY_P}/cshrc /usr/$(get_libdir)/${MY_PN}/cshrc
-}