Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 165206 Details for
Bug 104257
OpenFOAM-1.2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
improved ebuild
openfoam-1.5.ebuild (text/plain), 3.82 KB, created by
Maxim Loginov
on 2008-09-11 18:19:31 UTC
(
hide
)
Description:
improved ebuild
Filename:
MIME Type:
Creator:
Maxim Loginov
Created:
2008-09-11 18:19:31 UTC
Size:
3.82 KB
patch
obsolete
># Copyright 1999-2008 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >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 > !sci-libs/openfoam-kernel > !sci-libs/openfoam-meta > !sci-libs/openfoam-solvers > !sci-libs/openfoam-utilities > !sci-libs/openfoam-wmake > sci-libs/parmetis > sci-libs/parmgridgen > virtual/mpi" > >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}/${MY_P}/etc/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 > > # there is no obvious way to clean the tree after build > # save src to install it later > cp -a src src.orig || die "failed to create src backup" > > # fix hardwired paths in other places > find ${S}/wmake/rules -name X -exec \ > sed -i "s|-L/usr/X11R6/lib|`pkg-config --libs-only-L x11`|g" \{\} \; \ > || die "failed to fix hardwired X libs" > find ${S}/wmake/rules -name X -exec \ > sed -i "s|-I/usr/X11R6/include|`pkg-config --cflags-only-I x11`|g" \{\} \; \ > || die "failed to fix hardwired X includes" >} > >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 \ > || die "failed to fix MPI_LIB in etc/bashrc" > sed -i -e "s|setenv WM_MPLIB OPENMPI|setenv WM_MPLIB ${WM_MPLIB}|" etc/cshrc \ > || die "failed to fix MPI_LIB in etc/cshrc" > > export FOAM_INST_DIR=${WORKDIR} > # next command is quite dangerous, since it does not rewrite > # environment variables if they already set, this can lead to > # really unpredictable results. solution would be to unset all > # FOAM_* and WM_* variables > 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 > > 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/${P} > doins doc/Guides-a4/*.pdf > dodoc COPYING README README.html ReleaseNotes-1.5 ReleaseNotes-1.5.html > > if use doc ; then > doins -r doc/Doxygen > dosym /usr/share/doc/${P} /usr/$(get_libdir)/${MY_PN}/${MY_P}/doc > fi > > if use examples ;then > insinto /usr/share/${P} > # tutorials > rm -rf tutorials/rhoPorousSimpleFoam/angledDuctExplicit/{0,constant} > cp -a tutorials/rhoPorousSimpleFoam/angledDuctImplicit/{0,constant} \ > tutorials/rhoPorousSimpleFoam/angledDuctExplicit > doins -r tutorials > dosym /usr/share/${P}/tutorials /usr/$(get_libdir)/${MY_PN}/${MY_P}/tutorials > # and sources > rm -rf src && mv src.orig src || die "failed to restore src backup" > doins -r src > dosym /usr/share/${P}/src /usr/$(get_libdir)/${MY_PN}/${MY_P}/src > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 104257
:
87505
|
89196
|
89687
|
90384
|
90385
|
90386
|
91150
|
135019
|
135020
|
135022
|
135024
|
140130
|
161142
|
161144
|
161146
| 165206