--- /usr/portage/app-sci/blas-atlas/blas-atlas-3.6.0.ebuild 2004-06-06 18:18:58.000000000 +0200 +++ blas-atlas-3.6.0.ebuild 2004-06-10 10:29:52.093927072 +0200 @@ -13,7 +13,7 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~x86 amd64 ~ppc" -IUSE="doc" +IUSE="doc ifc" DEPEND="app-sci/blas-config >=sys-devel/libtool-1.5" @@ -25,10 +25,15 @@ S=${WORKDIR}/ATLAS pkg_setup() { - use ifc || if [ -z `which g77` ]; then + if use ifc + then + eerror "using ifc as fortran compiler" + fi + if [ -z `which g77` ] && ! use ifc + then #if ifc is defined then the dep was already checked eerror "No fortran compiler found on the system!" - eerror "Please add g77 to your USE flags and reemerge gcc!" + eerror "Please add f77 to your USE flags and reemerge gcc!" die fi } @@ -63,7 +68,24 @@ make config CC="${GCC} -DUSE_LIBTOOL -DINTERACTIVE" || die else # Use ATLAS defaults for all questions: - (echo | make config CC="${GCC} -DUSE_LIBTOOL") || atlas_fail + if ! use ifc + then + (echo | make config CC="${GCC} -DUSE_LIBTOOL") || atlas_fail + else + echo "023" >> answer + echo "" >> answer + echo "" >> answer + echo "" >> answer + echo "" >> answer + echo "" >> answer + echo "" >> answer + echo "" >> answer + echo "1" >> answer + echo "ifc" >> answer + echo "" >> answer + echo "" >> answer + make config CC="${GCC} -DUSE_LIBTOOL" < answer + fi fi TMPSTR=$(ls Make.Linux*)