summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-10-31 16:28:30 +0100
committerMichał Górny <mgorny@gentoo.org>2019-10-31 16:28:43 +0100
commit270b5cea93491f0dc44e44c424fcef72b4291027 (patch)
tree421a1b186cf30178128fac51ca602d064b9d3385 /sci-libs
parentdev-tcltk/tdom: amd64 stable wrt bug #699014 (diff)
downloadgentoo-270b5cea93491f0dc44e44c424fcef72b4291027.tar.gz
gentoo-270b5cea93491f0dc44e44c424fcef72b4291027.tar.bz2
gentoo-270b5cea93491f0dc44e44c424fcef72b4291027.zip
sci-libs/openfoam: Remove last-rited pkg
Closes: https://bugs.gentoo.org/633888 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/openfoam/Manifest5
-rw-r--r--sci-libs/openfoam/metadata.xml16
-rw-r--r--sci-libs/openfoam/openfoam-2.2.1.ebuild108
-rw-r--r--sci-libs/openfoam/openfoam-2.2.2.ebuild108
-rw-r--r--sci-libs/openfoam/openfoam-2.3.0-r1.ebuild111
-rw-r--r--sci-libs/openfoam/openfoam-2.3.1-r1.ebuild111
-rw-r--r--sci-libs/openfoam/openfoam-2.4.0-r1.ebuild113
7 files changed, 0 insertions, 572 deletions
diff --git a/sci-libs/openfoam/Manifest b/sci-libs/openfoam/Manifest
deleted file mode 100644
index a6b317c7242c..000000000000
--- a/sci-libs/openfoam/Manifest
+++ /dev/null
@@ -1,5 +0,0 @@
-DIST OpenFOAM-2.2.1.tgz 37600247 BLAKE2B ba364c052e482379e7a280aa4d35260e276eab61a93668e1ca26ddcbf8228f67f7562cf90e6d9e659b5971b0b8f28455ef1a8420d901e911913c331c34edc739 SHA512 1b3afab700ca6e8b328ec76b5d862e67696ad6c622bc1d3a26c3cc87d6ad62f752be72cc0644510b63612fd1441e7a2969e3b53728d30f2a67a2453530fcd286
-DIST OpenFOAM-2.2.2.tgz 32536146 BLAKE2B e56a9fd2f85baeca478ea5ab663fe502ca20234da0fe379cf44fe2189813c0fb675e8a94ed1a4fae7972c9dfd0ad4e36da6eea1dc0b34d9771cdd881d931b0a9 SHA512 c57128b4a3fea0419118963a0e65dcecb532cb36713a03c3beef027e57f5a48c6839f35286eb9163cceb9e278bef6135bca7ca53990c2dbe4544fb26e82098d0
-DIST OpenFOAM-2.3.0.tgz 37339475 BLAKE2B b09369bbd76dd0555e8a89b108196e47fd7d410447e95991132f6f2d3ab59d0b8b22370d7bb2fab2425bd66dcce2f687fbf6b4c293dd3fd81103b931b0455c80 SHA512 314e4726c3814bf8efebee88be0113c3921be8daeb947ef325688911ff6dc265f144952adf77af1d274abff58c68331bc48f4e74ef7a632c98adbd87fe79355c
-DIST OpenFOAM-2.3.1.tgz 37660806 BLAKE2B 36a9034bd9e601303c6d141d1f236650ed890ba1a032f81cfa11073fbb5deece734691b0d64069c7e59af055d2336fc725beeec8f612242098b139dd6abeb1d7 SHA512 a55cb2c8ac66bbfff81249aab759e1178895597460544009129883ab775813bb028d4c294d1913fd644d9d2268d075d2fd151c1cd1aac69080555f99ce1c182e
-DIST OpenFOAM-2.4.0.tgz 41640005 BLAKE2B d8d3efb323966d0b1617a80711724e9a9f52372f7548bab6f6d41c6920f20fb25f2d0dbfdb82a5b7ce6604548fc61ef3f383f045c3b90ac7d5c3132f3933ca8f SHA512 1916191d810676145a88492e902840f5cbd839f3b221dcf55c5edc26791b395c1d36fd6ef37e4c1bc1f813357a3b22ce3ec3e1b802ac49157f76d25e6ca53cbe
diff --git a/sci-libs/openfoam/metadata.xml b/sci-libs/openfoam/metadata.xml
deleted file mode 100644
index 3bb70c9ae50b..000000000000
--- a/sci-libs/openfoam/metadata.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>patrick@gentoo.org</email>
- <name>Patrick Lauer</name>
- </maintainer>
- <use>
- <flag name="opendx"> Install opendx visualisation tool</flag>
- <flag name="src"> Install source files</flag>
- <flag name="paraview">Enable support for paraview library</flag>
- </use>
- <upstream>
- <remote-id type="sourceforge">downloads</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/sci-libs/openfoam/openfoam-2.2.1.ebuild b/sci-libs/openfoam/openfoam-2.2.1.ebuild
deleted file mode 100644
index 711bb0042fcd..000000000000
--- a/sci-libs/openfoam/openfoam-2.2.1.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils versionator multilib toolchain-funcs multiprocessing
-
-MY_PN="OpenFOAM"
-MY_PV=$(get_version_component_range 1-2)
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="Open Field Operation and Manipulation - CFD Simulation Toolbox"
-HOMEPAGE="http://www.openfoam.org"
-SRC_URI="http://downloads.sourceforge.net/foam/${MY_P}.tgz"
-
-LICENSE="GPL-2"
-SLOT="2.2"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc examples opendx src"
-
-RDEPEND="!=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-libs/scotch
- virtual/mpi
- opendx? ( sci-visualization/opendx )"
-DEPEND="${DEPEND}
- doc? ( app-doc/doxygen[dot] )"
-
-S=${WORKDIR}/${MY_P}
-INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}"
-
-pkg_setup() {
- # just to be sure the right profile is selected (gcc-config)
- if ! version_is_at_least 4.3 $(gcc-version) ; then
- die "${PN} requires >=sys-devel/gcc-4.3 to compile."
- fi
-
- elog
- elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :"
- elog
- elog "alias startOF$(delete_all_version_separators ${MY_PV})='source ${INSDIR}/etc/bashrc'"
- elog
- elog "And everytime you want to use OpenFOAM you have to execute startOF$(delete_all_version_separators ${MY_PV})"
- ewarn
- ewarn "FoamX is deprecated since ${MY_PN}-1.5! "
- ewarn
-}
-
-src_configure() {
- if 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 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
-
- sed -i -e "s|^foamInstall=\$HOME|foamInstall=/usr/$(get_libdir)|" etc/bashrc
- sed -i -e "s|^set foamInstall = \$HOME|set foamInstall = /usr/$(get_libdir)|" etc/cshrc
-}
-
-src_compile() {
- export WM_NCOMPPROCS=$(makeopts_jobs)
-
- export FOAM_INST_DIR=${WORKDIR}
- source etc/bashrc
-
- find wmake -name dirToString -exec rm -rf {} +
- find wmake -name wmkdep -exec rm -rf {}+
-
- if use doc ; then
- ./Allwmake doc || die "could not build"
- else
- ./Allwmake || die "could not build"
- fi
-}
-
-src_test() {
- cd bin
- ./foamInstallationTest
-}
-
-src_install() {
- insinto ${INSDIR}
- doins -r etc
-
- use examples && doins -r tutorials
-
- use src && doins -r src
-
- insopts -m0755
- doins -r bin applications platforms wmake
-
- dodoc README.html doc/Guides-a4/*.pdf
-
- if use doc ; then
- dohtml -r doc/Doxygen
- fi
-}
diff --git a/sci-libs/openfoam/openfoam-2.2.2.ebuild b/sci-libs/openfoam/openfoam-2.2.2.ebuild
deleted file mode 100644
index 711bb0042fcd..000000000000
--- a/sci-libs/openfoam/openfoam-2.2.2.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils versionator multilib toolchain-funcs multiprocessing
-
-MY_PN="OpenFOAM"
-MY_PV=$(get_version_component_range 1-2)
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="Open Field Operation and Manipulation - CFD Simulation Toolbox"
-HOMEPAGE="http://www.openfoam.org"
-SRC_URI="http://downloads.sourceforge.net/foam/${MY_P}.tgz"
-
-LICENSE="GPL-2"
-SLOT="2.2"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc examples opendx src"
-
-RDEPEND="!=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-libs/scotch
- virtual/mpi
- opendx? ( sci-visualization/opendx )"
-DEPEND="${DEPEND}
- doc? ( app-doc/doxygen[dot] )"
-
-S=${WORKDIR}/${MY_P}
-INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}"
-
-pkg_setup() {
- # just to be sure the right profile is selected (gcc-config)
- if ! version_is_at_least 4.3 $(gcc-version) ; then
- die "${PN} requires >=sys-devel/gcc-4.3 to compile."
- fi
-
- elog
- elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :"
- elog
- elog "alias startOF$(delete_all_version_separators ${MY_PV})='source ${INSDIR}/etc/bashrc'"
- elog
- elog "And everytime you want to use OpenFOAM you have to execute startOF$(delete_all_version_separators ${MY_PV})"
- ewarn
- ewarn "FoamX is deprecated since ${MY_PN}-1.5! "
- ewarn
-}
-
-src_configure() {
- if 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 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
-
- sed -i -e "s|^foamInstall=\$HOME|foamInstall=/usr/$(get_libdir)|" etc/bashrc
- sed -i -e "s|^set foamInstall = \$HOME|set foamInstall = /usr/$(get_libdir)|" etc/cshrc
-}
-
-src_compile() {
- export WM_NCOMPPROCS=$(makeopts_jobs)
-
- export FOAM_INST_DIR=${WORKDIR}
- source etc/bashrc
-
- find wmake -name dirToString -exec rm -rf {} +
- find wmake -name wmkdep -exec rm -rf {}+
-
- if use doc ; then
- ./Allwmake doc || die "could not build"
- else
- ./Allwmake || die "could not build"
- fi
-}
-
-src_test() {
- cd bin
- ./foamInstallationTest
-}
-
-src_install() {
- insinto ${INSDIR}
- doins -r etc
-
- use examples && doins -r tutorials
-
- use src && doins -r src
-
- insopts -m0755
- doins -r bin applications platforms wmake
-
- dodoc README.html doc/Guides-a4/*.pdf
-
- if use doc ; then
- dohtml -r doc/Doxygen
- fi
-}
diff --git a/sci-libs/openfoam/openfoam-2.3.0-r1.ebuild b/sci-libs/openfoam/openfoam-2.3.0-r1.ebuild
deleted file mode 100644
index 0935f6953805..000000000000
--- a/sci-libs/openfoam/openfoam-2.3.0-r1.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils versionator multilib toolchain-funcs multiprocessing
-
-MY_PN="OpenFOAM"
-MY_PV=$(get_version_component_range 1-2)
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="Open Field Operation and Manipulation - CFD Simulation Toolbox"
-HOMEPAGE="http://www.openfoam.org"
-SRC_URI="http://downloads.sourceforge.net/foam/${MY_P}.tgz"
-
-LICENSE="GPL-2"
-SLOT="2.3"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc examples opendx src"
-
-RDEPEND="!=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-libs/scotch
- virtual/mpi
- opendx? ( sci-visualization/opendx )"
-DEPEND="${DEPEND}
- doc? ( app-doc/doxygen[dot] )"
-
-S=${WORKDIR}/${MY_P}
-INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}"
-
-pkg_setup() {
- # just to be sure the right profile is selected (gcc-config)
- if ! version_is_at_least 4.3 $(gcc-version) ; then
- die "${PN} requires >=sys-devel/gcc-4.3 to compile."
- fi
-
- elog
- elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :"
- elog
- elog "alias startOF$(delete_all_version_separators ${MY_PV})='source ${INSDIR}/etc/bashrc'"
- elog
- elog "And everytime you want to use OpenFOAM you have to execute startOF$(delete_all_version_separators ${MY_PV})"
- ewarn
- ewarn "FoamX is deprecated since ${MY_PN}-1.5! "
- ewarn
-}
-
-src_configure() {
- if 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 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
-
- sed -i -e "s|^foamInstall=\$HOME|foamInstall=/usr/$(get_libdir)|" etc/bashrc
- sed -i -e "s|^set foamInstall = \$HOME|set foamInstall = /usr/$(get_libdir)|" etc/cshrc
-
- 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
- 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
-}
-
-src_compile() {
- export WM_NCOMPPROCS=$(makeopts_jobs)
-
- export FOAM_INST_DIR=${WORKDIR}
- source etc/bashrc
-
- find wmake -name dirToString -exec rm -rf {} +
- find wmake -name wmkdep -exec rm -rf {}+
-
- ./Allwmake || die "could not build"
- if use doc ; then
- doc/Allwmake || die "could not build"
- fi
-}
-
-# Doesn't do anything sane
-#src_test() {
-# cd bin
-# ./foamInstallationTest
-#}
-
-src_install() {
- insinto ${INSDIR}
- doins -r etc
-
- use examples && doins -r tutorials
-
- use src && doins -r src
-
- insopts -m0755
- doins -r bin applications platforms wmake
-
- dodoc README.html doc/Guides-a4/*.pdf
-
- if use doc ; then
- dohtml -r doc/Doxygen
- fi
-}
diff --git a/sci-libs/openfoam/openfoam-2.3.1-r1.ebuild b/sci-libs/openfoam/openfoam-2.3.1-r1.ebuild
deleted file mode 100644
index 9ed9cb2b0907..000000000000
--- a/sci-libs/openfoam/openfoam-2.3.1-r1.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils versionator multilib toolchain-funcs multiprocessing
-
-MY_PN="OpenFOAM"
-MY_PV=$(get_version_component_range 1-2)
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="Open Field Operation and Manipulation - CFD Simulation Toolbox"
-HOMEPAGE="http://www.openfoam.org"
-SRC_URI="http://downloads.sourceforge.net/foam/${MY_P}.tgz"
-
-LICENSE="GPL-2"
-SLOT="2.3"
-KEYWORDS="amd64 x86"
-IUSE="doc examples opendx src"
-
-RDEPEND="!=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-libs/scotch
- virtual/mpi
- opendx? ( sci-visualization/opendx )"
-DEPEND="${DEPEND}
- doc? ( app-doc/doxygen[dot] )"
-
-S=${WORKDIR}/${MY_P}
-INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}"
-
-pkg_setup() {
- # just to be sure the right profile is selected (gcc-config)
- if ! version_is_at_least 4.3 $(gcc-version) ; then
- die "${PN} requires >=sys-devel/gcc-4.3 to compile."
- fi
-
- elog
- elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :"
- elog
- elog "alias startOF$(delete_all_version_separators ${MY_PV})='source ${INSDIR}/etc/bashrc'"
- elog
- elog "And everytime you want to use OpenFOAM you have to execute startOF$(delete_all_version_separators ${MY_PV})"
- ewarn
- ewarn "FoamX is deprecated since ${MY_PN}-1.5! "
- ewarn
-}
-
-src_configure() {
- if 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 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
-
- sed -i -e "s|^foamInstall=\$HOME|foamInstall=/usr/$(get_libdir)|" etc/bashrc
- sed -i -e "s|^set foamInstall = \$HOME|set foamInstall = /usr/$(get_libdir)|" etc/cshrc
-
- 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
- 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
-}
-
-src_compile() {
- export WM_NCOMPPROCS=$(makeopts_jobs)
-
- export FOAM_INST_DIR=${WORKDIR}
- source etc/bashrc
-
- find wmake -name dirToString -exec rm -rf {} +
- find wmake -name wmkdep -exec rm -rf {}+
-
- ./Allwmake || die "could not build"
- if use doc ; then
- doc/Allwmake || die "could not build"
- fi
-}
-
-# Doesn't do anything sane
-#src_test() {
-# cd bin
-# ./foamInstallationTest
-#}
-
-src_install() {
- insinto ${INSDIR}
- doins -r etc
-
- use examples && doins -r tutorials
-
- use src && doins -r src
-
- insopts -m0755
- doins -r bin applications platforms wmake
-
- dodoc README.html doc/Guides-a4/*.pdf
-
- if use doc ; then
- dohtml -r doc/Doxygen
- fi
-}
diff --git a/sci-libs/openfoam/openfoam-2.4.0-r1.ebuild b/sci-libs/openfoam/openfoam-2.4.0-r1.ebuild
deleted file mode 100644
index 67bda192d50c..000000000000
--- a/sci-libs/openfoam/openfoam-2.4.0-r1.ebuild
+++ /dev/null
@@ -1,113 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils versionator multilib toolchain-funcs multiprocessing
-
-MY_PN="OpenFOAM"
-MY_PV=$(get_version_component_range 1-2)
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="Open Field Operation and Manipulation - CFD Simulation Toolbox"
-HOMEPAGE="http://www.openfoam.org"
-SRC_URI="http://downloads.sourceforge.net/foam/${MY_P}.tgz"
-
-LICENSE="GPL-2"
-SLOT="2.4"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc examples opendx src paraview"
-
-RDEPEND="!=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-mathematics/cgal
- sci-libs/parmetis
- sci-libs/parmgridgen
- sci-libs/scotch
- virtual/mpi
- opendx? ( sci-visualization/opendx )
- paraview? ( sci-visualization/paraview[development] )"
-DEPEND="${DEPEND}
- doc? ( app-doc/doxygen[dot] )"
-
-S=${WORKDIR}/${MY_P}
-INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}"
-
-pkg_setup() {
- # just to be sure the right profile is selected (gcc-config)
- if ! version_is_at_least 4.3 $(gcc-version) ; then
- die "${PN} requires >=sys-devel/gcc-4.3 to compile."
- fi
-
- elog
- elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :"
- elog
- elog "alias startOF$(delete_all_version_separators ${MY_PV})='source ${INSDIR}/etc/bashrc'"
- elog
- elog "And everytime you want to use OpenFOAM you have to execute startOF$(delete_all_version_separators ${MY_PV})"
- ewarn
- ewarn "FoamX is deprecated since ${MY_PN}-1.5! "
- ewarn
-}
-
-src_configure() {
- if 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 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
-
- sed -i -e "s|^foamInstall=\$HOME|foamInstall=/usr/$(get_libdir)|" etc/bashrc
- sed -i -e "s|^set foamInstall = \$HOME|set foamInstall = /usr/$(get_libdir)|" etc/cshrc
-
- 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
- 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
-}
-
-src_compile() {
- export WM_NCOMPPROCS=$(makeopts_jobs)
-
- export FOAM_INST_DIR=${WORKDIR}
- source etc/bashrc
-
- find wmake -name dirToString -exec rm -rf {} +
- find wmake -name wmkdep -exec rm -rf {}+
-
- ./Allwmake || die "could not build"
- if use doc ; then
- doc/Allwmake || die "could not build"
- fi
-}
-
-# Doesn't do anything sane
-#src_test() {
-# cd bin
-# ./foamInstallationTest
-#}
-
-src_install() {
- insinto ${INSDIR}
- doins -r etc
-
- use examples && doins -r tutorials
-
- use src && doins -r src
-
- insopts -m0755
- doins -r bin applications platforms wmake
-
- dodoc README.html doc/Guides-a4/*.pdf
-
- if use doc ; then
- dohtml -r doc/Doxygen
- fi
-}