Просмотр исходного кода

modified ebiuld. It is work in two versions

LDA010 лет назад: 7
Родитель
Сommit
6a9ce271eb
1 измененных файлов с 6 добавлено и 3 удалено
  1. 6 3
      gentoo/sys-cluster/mpich/mpich-3.2-r1.ebuild

+ 6 - 3
gentoo/sys-cluster/mpich/mpich-3.2-r1.ebuild

@@ -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