commit:     78f211142eb2913de4af6b4700ad9c580e96c8c6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  6 20:53:04 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec  6 21:55:14 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78f21114

[QA] sci-libs/openfoam-bin: Fix global scope use call, #566548

 sci-libs/openfoam-bin/openfoam-bin-1.6.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sci-libs/openfoam-bin/openfoam-bin-1.6.ebuild 
b/sci-libs/openfoam-bin/openfoam-bin-1.6.ebuild
index 7216f7e..bb842ed 100644
--- a/sci-libs/openfoam-bin/openfoam-bin-1.6.ebuild
+++ b/sci-libs/openfoam-bin/openfoam-bin-1.6.ebuild
@@ -10,9 +10,6 @@ MY_PN="OpenFOAM"
 MY_PV=$(get_version_component_range 1-2)
 MY_P="${MY_PN}-${MY_PV}"
 
-use x86 && WM_OPTIONS="linuxGccDPOpt"
-use amd64 && WM_OPTIONS="linux64GccDPOpt"
-
 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 -> ${MY_P}.General.tgz
@@ -73,6 +70,9 @@ src_configure() {
        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
 
+       use x86 && WM_OPTIONS="linuxGccDPOpt"
+       use amd64 && WM_OPTIONS="linux64GccDPOpt"
+
        mv lib/${WM_OPTIONS}/$MPI_VERSION* lib/${WM_OPTIONS}/$MPI_VERSION
 }
 

Reply via email to