浏览代码

modified ebiuld. It is work in two versions

LDA010 7 年之前
父节点
当前提交
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() {
 	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
 	if multilib_is_native_abi && use fortran; then
 		mkdir "${T}"/fortran || die
 		mv "${ED}"usr/include/mpif* "${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
 }
 
 multilib_src_install_all() {
+echo "I am in the last funcsion"
 	# fortran header cannot be wrapped (bug #540508), workaround part 2
 	if use fortran; then
 		mv "${T}"/fortran/* "${ED}"usr/include || die