|
@@ -99,19 +99,22 @@ multilib_src_test() {
|
|
|
|
|
|
multilib_src_install() {
|
|
multilib_src_install() {
|
|
default
|
|
default
|
|
|
|
+ if !(use fortran); then
|
|
|
|
+ # some fortran files get installed unconditionally
|
|
|
|
+ rm -f "${ED}"usr/include/mpif* "${ED}"usr/include/*.mod || die
|
|
|
|
+ return;
|
|
|
|
+ fi
|
|
|
|
|
|
# fortran header cannot be wrapped (bug #540508), workaround part 1
|
|
# fortran header cannot be wrapped (bug #540508), workaround part 1
|
|
if multilib_is_native_abi && use fortran; then
|
|
if multilib_is_native_abi && use fortran; then
|
|
mkdir "${T}"/fortran || die
|
|
mkdir "${T}"/fortran || die
|
|
mv "${ED}"usr/include/mpif* "${T}"/fortran || die
|
|
mv "${ED}"usr/include/mpif* "${T}"/fortran || die
|
|
mv "${ED}"usr/include/*.mod "${T}"/fortran || die
|
|
mv "${ED}"usr/include/*.mod "${T}"/fortran || die
|
|
- else
|
|
|
|
- # some fortran files get installed unconditionally
|
|
|
|
- rm "${ED}"usr/include/mpif* "${ED}"usr/include/*.mod || die
|
|
|
|
fi
|
|
fi
|
|
}
|
|
}
|
|
|
|
|
|
multilib_src_install_all() {
|
|
multilib_src_install_all() {
|
|
|
|
+echo "I am in the last funcsion"
|
|
# fortran header cannot be wrapped (bug #540508), workaround part 2
|
|
# fortran header cannot be wrapped (bug #540508), workaround part 2
|
|
if use fortran; then
|
|
if use fortran; then
|
|
mv "${T}"/fortran/* "${ED}"usr/include || die
|
|
mv "${T}"/fortran/* "${ED}"usr/include || die
|