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

Collapse All | Expand All

(-)file_not_specified_in_diff (-32 / +41 lines)
Line 22 Link Here
22
IUSE="lapack"
22
IUSE="lapack fortran"
23
--
Lines 29-30 Link Here
29
FORTRAN="gfortran g77"
30
Lines 77-103 Link Here
77
	# Map compilers to what numpy calls them (same as scipy)
75
	if use fortran; then
78
	case "${FORTRANC}" in
76
79
		gfortran)
77
		# This will set FORTRANC
80
			NUMPY_FC="gnu95"
78
		need_fortran "gfortran g77"
81
			;;
79
82
		g77)
80
		# Map compilers to what numpy calls them (same as scipy)
83
			NUMPY_FC="gnu"
81
		case "${FORTRANC}" in
84
			;;
82
			gfortran)
85
		g95)
83
				NUMPY_FC="gnu95"
86
			NUMPY_FC="g95"
84
				;;
87
			;;
85
			g77)
88
		ifc|ifort)
86
				NUMPY_FC="gnu"	
89
			if use ia64; then
87
				;;
90
				NUMPY_FC="intele"
88
			g95)
91
			elif use amd64; then
89
				NUMPY_FC="g95"
92
				NUMPY_FC="intelem"
90
				;;
93
			else
91
			ifc|ifort)
94
				NUMPY_FC="intel"
92
				if use ia64; then
95
			fi
93
					NUMPY_FC="intele"
96
			;;
94
				elif use amd64; then
97
		*)
95
					NUMPY_FC="intelem"
98
			local msg="Invalid Fortran compiler \'${FORTRANC}\'"
96
				else
99
			eerror "${msg}"
97
					NUMPY_FC="intel"
100
			die "${msg}"
98
				fi
101
			;;
99
				;;
102
	esac
100
			*)	
103
	export NUMPY_FC
101
				local msg="Invalid Fortran compiler \'${FORTRANC}\'"
104
--
102
				eerror "${msg}"
103
				die "${msg}"
104
				;;
105
		esac
106
		export NUMPY_FC
107
	fi
Line 152 Link Here
156
# Horrible kludge to avoid fortran.eclass::fortran_pkg_setup()
157
# to be called by the global "inherit fortran"
158
# Suggested in: https://bugs.gentoo.org/show_bug.cgi?id=186913
159
pkg_setup() {
160
	true
161
}
162

Return to bug 186913