View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/app-sci/blas-atlas/blas-atlas-3.6.0.ebuild (-4 / +26 lines)
 Lines 13-19    Link Here 
LICENSE="BSD"
LICENSE="BSD"
SLOT="0"
SLOT="0"
KEYWORDS="~x86 amd64 ~ppc"
KEYWORDS="~x86 amd64 ~ppc"
IUSE="doc"
IUSE="doc ifc"
DEPEND="app-sci/blas-config
DEPEND="app-sci/blas-config
	>=sys-devel/libtool-1.5"
	>=sys-devel/libtool-1.5"
 Lines 25-34    Link Here 
S=${WORKDIR}/ATLAS
S=${WORKDIR}/ATLAS
pkg_setup() {
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
		#if ifc is defined then the dep was already checked
		eerror "No fortran compiler found on the system!"
		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
		die
	fi
	fi
}
}
 Lines 63-69    Link Here 
		make config CC="${GCC} -DUSE_LIBTOOL -DINTERACTIVE" || die
		make config CC="${GCC} -DUSE_LIBTOOL -DINTERACTIVE" || die
	else
	else
		# Use ATLAS defaults for all questions:
		# 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
	fi
	TMPSTR=$(ls Make.Linux*)
	TMPSTR=$(ls Make.Linux*)