summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-06-19 02:21:17 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-06-19 02:21:17 +0000
commit91fe75a6e5ea1ee8be82d0e21a4d02145e77df9f (patch)
tree58d5caa9e00baab5710c3d24674810453a089d26 /sci-libs/openfoam
parentmarked x86 per bug 418411 (diff)
downloadhistorical-91fe75a6e5ea1ee8be82d0e21a4d02145e77df9f.tar.gz
historical-91fe75a6e5ea1ee8be82d0e21a4d02145e77df9f.tar.bz2
historical-91fe75a6e5ea1ee8be82d0e21a4d02145e77df9f.zip
Bump
Package-Manager: portage-2.2.0_alpha110/cvs/Linux x86_64
Diffstat (limited to 'sci-libs/openfoam')
-rw-r--r--sci-libs/openfoam/ChangeLog9
-rw-r--r--sci-libs/openfoam/Manifest4
-rw-r--r--sci-libs/openfoam/openfoam-2.1.1.ebuild115
3 files changed, 125 insertions, 3 deletions
diff --git a/sci-libs/openfoam/ChangeLog b/sci-libs/openfoam/ChangeLog
index 8d86ac6f8da4..c7d2b368905a 100644
--- a/sci-libs/openfoam/ChangeLog
+++ b/sci-libs/openfoam/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-libs/openfoam
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/ChangeLog,v 1.9 2011/12/30 05:15:50 patrick Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/ChangeLog,v 1.10 2012/06/19 02:21:17 patrick Exp $
+
+*openfoam-2.1.1 (19 Jun 2012)
+
+ 19 Jun 2012; Patrick Lauer <patrick@gentoo.org> +openfoam-2.1.1.ebuild:
+ Bump
*openfoam-2.1.0 (30 Dec 2011)
diff --git a/sci-libs/openfoam/Manifest b/sci-libs/openfoam/Manifest
index 18493a61881f..a7c2e8486eed 100644
--- a/sci-libs/openfoam/Manifest
+++ b/sci-libs/openfoam/Manifest
@@ -1,6 +1,8 @@
DIST OpenFOAM-1.7.1.tgz 39002749 RMD160 867b48f67f60c63d8e0311afb5e903c79933d4c1 SHA1 7e6f69f82baf1a3bb650bc1bc4d31857312ab020 SHA256 878f3cd99a888573013eadc5d7f864fdf8e20b4749fc19cb36db450a719314e8
DIST OpenFOAM-2.1.0.tgz 32518358 RMD160 3c6c0cc7d3ee0fb913d4bf512ec7d5d55e059003 SHA1 a8508b87d2bd5d6985cf67851ec8eb46ae52dc6b SHA256 d8467b38c06b6f030b78c44cb3a1dec819432f6ccd49c28928d977f12171ec77
+DIST OpenFOAM-2.1.1.tgz 30709473 RMD160 73599db77c2a76b173c128c3027cc70058a1e109 SHA1 b795abed7ddbc7428c9ce0190c3018041054efea SHA256 b085980c507de4e00339335c3de2d0bdae1b31372320d62baae7ff8a98da64bc
EBUILD openfoam-1.7.1.ebuild 2750 RMD160 2ec3afcd56ef7b056ef9bb997f9978920f547cd7 SHA1 429e28246c9ab44eae1b4991a54e2008a9f21a27 SHA256 523be0e9ecc62a5b5b54ed3e82521ddd918e48c2cced01f53b77589cae4f4db0
EBUILD openfoam-2.1.0.ebuild 2844 RMD160 88e27e1bdc9f94a76aeeb65b9adb801c1485267d SHA1 6138b4a071aaa9237ad81ea517a80a28a42b9b96 SHA256 f4e0241efd74524d6a361393ad3c64e0aef0806d579f1f6c34652ad8a23b03ea
-MISC ChangeLog 5475 RMD160 0188e2580e2d491f72a6b843212ce563d54d6f36 SHA1 d1fa61f9d6814a070966053e66ec4eaf2258ca8d SHA256 5a005e71951af7c3d5273f6de739462d89957b438b67da65f4e7723d8184e6ec
+EBUILD openfoam-2.1.1.ebuild 2844 RMD160 2585380ca563d594814d02b2001c9550de72f09f SHA1 134855996091e0694b43e5a682733dd22a392852 SHA256 414cb367e692f544301b198afdf9026147af5cb962951481cf188d48fb447dc4
+MISC ChangeLog 5589 RMD160 b4565dc57108000c7d550cb44b8d795804ecf7d5 SHA1 5d853ec6edb9c463684e2c71874e59543cb51fb1 SHA256 3b97b9ab378db5d8eea4a15ed1344418b89d96475049ba91adef2eea236b3b9d
MISC metadata.xml 322 RMD160 e126ff7541d9229ac010158a68ce5990d6915679 SHA1 424a6f6de3d3e37f78c1790410753f68cf82a642 SHA256 0ad90544bb071480e4f598561808d748784ed1d205167d36b2d757fd263431ee
diff --git a/sci-libs/openfoam/openfoam-2.1.1.ebuild b/sci-libs/openfoam/openfoam-2.1.1.ebuild
new file mode 100644
index 000000000000..2b15d0713554
--- /dev/null
+++ b/sci-libs/openfoam/openfoam-2.1.1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam/openfoam-2.1.1.ebuild,v 1.1 2012/06/19 02:21:17 patrick Exp $
+
+EAPI="2"
+
+inherit eutils versionator multilib toolchain-funcs
+
+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/project/foam/foam/${PV}/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="2.1"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+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-libs/scotch
+ || ( >sci-visualization/paraview-3.0 sci-visualization/opendx )
+ virtual/mpi"
+RDEPEND="${DEPEND}"
+
+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
+}
+
+src_compile() {
+
+ WM_NCOMPPROCS=`echo $MAKEOPTS | sed 's/-j\([0-9][0-9]*\)/\1/'`
+ if [ -n "$WM_NCOMPPROCS" ] ; then
+ export WM_NCOMPPROCS
+ else
+ export WM_NCOMPPROCS=1
+ fi
+ elog "Building on $WM_NCOMPPROCS cores"
+
+ 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 ${INSDIR}
+ doins -r etc
+
+ use examples && doins -r tutorials
+
+ insopts -m0755
+ doins -r bin
+
+ insinto ${INSDIR}/applications/bin
+ doins -r applications/bin/*
+
+ insinto ${INSDIR}/lib
+ doins -r lib/*
+
+ insinto ${INSDIR}/wmake
+ doins -r wmake/*
+
+ dodoc {doc/Guides-a4/*.pdf,README}
+
+ if use doc ; then
+ dohtml -r doc/Doxygen
+ fi
+}