Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 30453 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-sci/blas-atlas/blas-atlas-3.6.0.ebuild (-4 / +26 lines)
Lines 13-19 Link Here
13
LICENSE="BSD"
13
LICENSE="BSD"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~x86 amd64 ~ppc"
15
KEYWORDS="~x86 amd64 ~ppc"
16
IUSE="doc"
16
IUSE="doc ifc"
17
17
18
DEPEND="app-sci/blas-config
18
DEPEND="app-sci/blas-config
19
	>=sys-devel/libtool-1.5"
19
	>=sys-devel/libtool-1.5"
Lines 25-34 Link Here
25
S=${WORKDIR}/ATLAS
25
S=${WORKDIR}/ATLAS
26
26
27
pkg_setup() {
27
pkg_setup() {
28
	use ifc || if [ -z `which g77` ]; then
28
	if use ifc
29
	then
30
		eerror "using ifc as fortran compiler"
31
	fi
32
	if [ -z `which g77` ] && ! use ifc 
33
	then
29
		#if ifc is defined then the dep was already checked
34
		#if ifc is defined then the dep was already checked
30
		eerror "No fortran compiler found on the system!"
35
		eerror "No fortran compiler found on the system!"
31
		eerror "Please add g77 to your USE flags and reemerge gcc!"
36
		eerror "Please add f77 to your USE flags and reemerge gcc!"
32
		die
37
		die
33
	fi
38
	fi
34
}
39
}
Lines 63-69 Link Here
63
		make config CC="${GCC} -DUSE_LIBTOOL -DINTERACTIVE" || die
68
		make config CC="${GCC} -DUSE_LIBTOOL -DINTERACTIVE" || die
64
	else
69
	else
65
		# Use ATLAS defaults for all questions:
70
		# Use ATLAS defaults for all questions:
66
		(echo | make config CC="${GCC} -DUSE_LIBTOOL") || atlas_fail
71
		if ! use ifc
72
		then
73
			(echo | make config CC="${GCC} -DUSE_LIBTOOL") || atlas_fail
74
		else
75
			echo "023" >> answer
76
			echo "" >> answer
77
			echo "" >> answer
78
			echo "" >> answer
79
			echo "" >> answer
80
			echo "" >> answer
81
			echo "" >> answer
82
			echo "" >> answer
83
			echo "1" >> answer
84
			echo "ifc" >> answer
85
			echo "" >> answer
86
			echo "" >> answer
87
			make config CC="${GCC} -DUSE_LIBTOOL" < answer
88
		fi
67
	fi
89
	fi
68
90
69
	TMPSTR=$(ls Make.Linux*)
91
	TMPSTR=$(ls Make.Linux*)

Return to bug 30453