diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/openfoam |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/openfoam')
-rw-r--r-- | sci-libs/openfoam/Manifest | 13 | ||||
-rw-r--r-- | sci-libs/openfoam/metadata.xml | 24 | ||||
-rw-r--r-- | sci-libs/openfoam/openfoam-2.2.1.ebuild | 108 | ||||
-rw-r--r-- | sci-libs/openfoam/openfoam-2.2.2.ebuild | 108 | ||||
-rw-r--r-- | sci-libs/openfoam/openfoam-2.3.0-r1.ebuild | 112 | ||||
-rw-r--r-- | sci-libs/openfoam/openfoam-2.3.1-r1.ebuild | 112 | ||||
-rw-r--r-- | sci-libs/openfoam/openfoam-2.4.0-r1.ebuild | 113 |
7 files changed, 590 insertions, 0 deletions
diff --git a/sci-libs/openfoam/Manifest b/sci-libs/openfoam/Manifest new file mode 100644 index 000000000000..6a61a2faa5c9 --- /dev/null +++ b/sci-libs/openfoam/Manifest @@ -0,0 +1,13 @@ +DIST OpenFOAM-2.2.1.tgz 37600247 SHA256 92ad3d88470db22799e07ae247aa85da92dabcb7995a17a178f791a7098fa2bb SHA512 1b3afab700ca6e8b328ec76b5d862e67696ad6c622bc1d3a26c3cc87d6ad62f752be72cc0644510b63612fd1441e7a2969e3b53728d30f2a67a2453530fcd286 WHIRLPOOL 4f6a16470be52f7ee442b2e8d37b8b86d8e70b1da326011b9952272f3c754f91894693c1edfe8623b23e6cd20cb7ca905a96ba432b963b082b4f7dad3faf54f9 +DIST OpenFOAM-2.2.2.tgz 32536146 SHA256 097adf813e035d04c9be19ee244632cd76971fde107682d50983f8d5cdcf0210 SHA512 c57128b4a3fea0419118963a0e65dcecb532cb36713a03c3beef027e57f5a48c6839f35286eb9163cceb9e278bef6135bca7ca53990c2dbe4544fb26e82098d0 WHIRLPOOL bf350b8bbaa80240865b5d704c6d0fe351e8751321168a4115ae0590e0a0c471b0bbcc4edcd48b7ad40403f9122ed441b0cef41096d39e2aee7e23eb1bb8e94e +DIST OpenFOAM-2.3.0.tgz 37339475 SHA256 f06b0fef527cb1c15d0f3899a9f7d4e5dffb4bf051735c4caae21d5d766ffd7b SHA512 314e4726c3814bf8efebee88be0113c3921be8daeb947ef325688911ff6dc265f144952adf77af1d274abff58c68331bc48f4e74ef7a632c98adbd87fe79355c WHIRLPOOL 515c0e7fd753cc7ef4e704dbfc70923539d3c0e3c7b97212db3debb3d7c7c8f28ec22da09918797ee86f19084cc86c44594cd85c54a89473fcbb8a8a6cdec6e7 +DIST OpenFOAM-2.3.1.tgz 37660806 SHA256 2bbcf4d5932397c2087a9b6d7eeee6d2b1350c8ea4f455415f05e7cd94d9e5ba SHA512 a55cb2c8ac66bbfff81249aab759e1178895597460544009129883ab775813bb028d4c294d1913fd644d9d2268d075d2fd151c1cd1aac69080555f99ce1c182e WHIRLPOOL 11e20e89154d32c4718ec39e4264280693ec9120bfa4292ab40c7f9ae4174e1c08a817655ab737deea86af396a7607533e088a937e13c39a45ebcae07ffb56b5 +DIST OpenFOAM-2.4.0.tgz 41640005 SHA256 aac4c9e2cc1b54724292add3e182ebf923a0929978e3b5ba524c97ce75477706 SHA512 1916191d810676145a88492e902840f5cbd839f3b221dcf55c5edc26791b395c1d36fd6ef37e4c1bc1f813357a3b22ce3ec3e1b802ac49157f76d25e6ca53cbe WHIRLPOOL 176992376ca67ff473977a22b2c9dcfb6a7c1c5e05a7ed96f0d54043d96351968b8c550584241f08c1022ff109a2023b220de67dda947e085bf92d4b2b8551d7 +EBUILD openfoam-2.2.1.ebuild 2734 SHA256 ec3caece285fb7455ef2e03df598ece06b1c615de5fb5855ac51d13b4d718fe2 SHA512 840b31b22793d5258e26118049a3c1277fcb22f37511bf71217b006af830fd8b360e09640e5026362e88fdc185d2531e86bb80fa1a0c539957d20707bc303234 WHIRLPOOL 5e3196372f2d589d0ae0444ab31766f63f004ef559bf2a16015aba99f915cc09d45848e7468e9f858c44bca6902d219c2d1280f99ff84ae798271feca66a539d +EBUILD openfoam-2.2.2.ebuild 2734 SHA256 ec3caece285fb7455ef2e03df598ece06b1c615de5fb5855ac51d13b4d718fe2 SHA512 840b31b22793d5258e26118049a3c1277fcb22f37511bf71217b006af830fd8b360e09640e5026362e88fdc185d2531e86bb80fa1a0c539957d20707bc303234 WHIRLPOOL 5e3196372f2d589d0ae0444ab31766f63f004ef559bf2a16015aba99f915cc09d45848e7468e9f858c44bca6902d219c2d1280f99ff84ae798271feca66a539d +EBUILD openfoam-2.3.0-r1.ebuild 3137 SHA256 3a2943621f4b640bd40e79fce08d71d7156547cfb473a8d1dc6a180810071ec7 SHA512 0bb6909e2d73ccbab116264ad3d32c744ec090df056f85811c2d92f1e68f6de5f55b639a10a121c3af306d0c07ae9222bd45d54493c9d534e8ee0aae26634779 WHIRLPOOL edad5ca3d776164d00501c356d190ec4f2334004e1b6d83bc6d4511ff495290e00e7f988688d77eb26f386791f3499db7b01bbb7a23cdf69719fcc0974c45a49 +EBUILD openfoam-2.3.1-r1.ebuild 3135 SHA256 5ab22e2149f464fbe3b951bb65cda3ee2a6ed200ac7ceaba62a3e817577370d6 SHA512 77e983ce44158d5a7119c8fd5229741fd5ac3be8fafef67dfa68f2a216b8d06cfcae7d1f2e8ee9af08f759b1db4576875b0116c571dfab78c8a764bc22e869c4 WHIRLPOOL 761beb5cd5ccb0669abbaa7f5428c3e1aa073afba9b08eec1574e3d7d9e110f0396850cd9ab0525ae3a4c472a4994b91f208d8d68a57ca08204cd7399c149f79 +EBUILD openfoam-2.4.0-r1.ebuild 3152 SHA256 2090d03ea94e5b59ca531c5b2475e2c31907aec2dd8f03e9bd74fa1627a66d21 SHA512 89a58093dabb8f17f6c03bf39069da82cb6c125ab12df67701393fcac419e53ff42950d3efa5685770954982bcf2e4d91889e19f22b10073bf48a2c89d4d9bf5 WHIRLPOOL 32717c080c2efa82de9edeb0a2b64901d1aaeca7350b014257ff8cf01259c373069dfe707e6b3fc08dca01ebe97840955f7a80b8e455bda4215b1d2347866227 +MISC ChangeLog 3568 SHA256 bfdf7fad2c6cdf2315d43b64a7b34b5bb02f300070d8c9293525153467587292 SHA512 60e836259b83ebc85fe5708bf0a6cef7feabfd112ccb8fcec9726eddfc4a6652f4d295ba0cb935f23c15517e48f8fd5a4fa83c95190987d20769b5db88df4fd3 WHIRLPOOL 66f0238e2663cabbdbbdae06c5e924740dad1dd6be6318952a11cc0d5b9e5dadaf854b8800222a97f9cbba1e5307cf28e13402407da044b2c33280d67ebb96f7 +MISC ChangeLog-2015 7365 SHA256 6f208d81128ade178ffad934167a83de9314fa4639ac1c033a894f60e9f6eec2 SHA512 f5fd56863878fc07198f623dba67821d4c106b24b8834d7c1db72f7de263eef590d94d61cffbd125cb4d7f5eb1b638b1ffa7d9ca2f72e04774fab924f9d704a2 WHIRLPOOL ec2a2a733606e93a62bca60c65459b7756509039bf26df451f4699b2586624a754c1ebe41524aea9b93ee2940e202272067d1fbf24c5916a0059fa0054ebfb83 +MISC metadata.xml 770 SHA256 73ae5d5cdd00227d5ad47dde6001df6025ef434a57ec5255633ebb93a3066a4d SHA512 781ddd52c727ab75efa6c1dffb7bfa6ae971f29de5eb64e308921f85ababe50cab46b537dc13ae9eddd924359980ca851700a0c95e6a9f71319e33bb10bc8772 WHIRLPOOL 95a8dbfe49dba2baabbb4bee70ff5c52f72dc46e6908e55e40e9e157406740a10f6803d03961523cf572b38dd979712759dc52035c8614e0a9c35f229495511e diff --git a/sci-libs/openfoam/metadata.xml b/sci-libs/openfoam/metadata.xml new file mode 100644 index 000000000000..2305ef0d7b97 --- /dev/null +++ b/sci-libs/openfoam/metadata.xml @@ -0,0 +1,24 @@ +<?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> + <maintainer type="person"> + <email>oli.borm@web.de</email> + <name>Oliver Borm</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</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 new file mode 100644 index 000000000000..711bb0042fcd --- /dev/null +++ b/sci-libs/openfoam/openfoam-2.2.1.ebuild @@ -0,0 +1,108 @@ +# 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 new file mode 100644 index 000000000000..711bb0042fcd --- /dev/null +++ b/sci-libs/openfoam/openfoam-2.2.2.ebuild @@ -0,0 +1,108 @@ +# 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 new file mode 100644 index 000000000000..45d328296a54 --- /dev/null +++ b/sci-libs/openfoam/openfoam-2.3.0-r1.ebuild @@ -0,0 +1,112 @@ +# 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 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-libs/parmetis + sci-libs/parmgridgen + sci-libs/scotch + virtual/mpi + opendx? ( sci-visualization/opendx ) + paraview? ( ~sci-visualization/paraview-4.1.0[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 +} diff --git a/sci-libs/openfoam/openfoam-2.3.1-r1.ebuild b/sci-libs/openfoam/openfoam-2.3.1-r1.ebuild new file mode 100644 index 000000000000..1e302b58e1e2 --- /dev/null +++ b/sci-libs/openfoam/openfoam-2.3.1-r1.ebuild @@ -0,0 +1,112 @@ +# 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 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-libs/parmetis + sci-libs/parmgridgen + sci-libs/scotch + virtual/mpi + opendx? ( sci-visualization/opendx ) + paraview? ( ~sci-visualization/paraview-4.1.0[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 +} diff --git a/sci-libs/openfoam/openfoam-2.4.0-r1.ebuild b/sci-libs/openfoam/openfoam-2.4.0-r1.ebuild new file mode 100644 index 000000000000..67bda192d50c --- /dev/null +++ b/sci-libs/openfoam/openfoam-2.4.0-r1.ebuild @@ -0,0 +1,113 @@ +# 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 +} |