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

(-)numpy-1.0.3.ebuild (-28 / +37 lines)
Lines 19-25 Link Here
19
DEPEND="${RDEPEND}
19
DEPEND="${RDEPEND}
20
	lapack? ( app-admin/eselect-cblas )"
20
	lapack? ( app-admin/eselect-cblas )"
21
21
22
IUSE="lapack"
22
IUSE="lapack fortran"
23
SLOT="0"
23
SLOT="0"
24
KEYWORDS="~alpha amd64 hppa ia64 ppc ppc64 sparc x86"
24
KEYWORDS="~alpha amd64 hppa ia64 ppc ppc64 sparc x86"
25
LICENSE="BSD"
25
LICENSE="BSD"
Lines 74-106 Link Here
74
		echo "libraries = lapack" >> site.cfg
74
		echo "libraries = lapack" >> site.cfg
75
		unset LAPACK
75
		unset LAPACK
76
	fi
76
	fi
77
	# Map compilers to what numpy calls them (same as scipy)
77
	if use fortran; then
78
	case "${FORTRANC}" in
78
		# Map compilers to what numpy calls them (same as scipy)
79
		gfortran)
79
		case "${FORTRANC}" in
80
			NUMPY_FC="gnu95"
80
			gfortran)
81
			;;
81
				NUMPY_FC="gnu95"
82
		g77)
82
				;;
83
			NUMPY_FC="gnu"
83
			g77)
84
			;;
84
				NUMPY_FC="gnu"	
85
		g95)
85
				;;
86
			NUMPY_FC="g95"
86
			g95)
87
			;;
87
				NUMPY_FC="g95"
88
		ifc|ifort)
88
				;;
89
			if use ia64; then
89
			ifc|ifort)
90
				NUMPY_FC="intele"
90
				if use ia64; then
91
			elif use amd64; then
91
					NUMPY_FC="intele"
92
				NUMPY_FC="intelem"
92
				elif use amd64; then
93
			else
93
					NUMPY_FC="intelem"
94
				NUMPY_FC="intel"
94
				else
95
			fi
95
					NUMPY_FC="intel"
96
			;;
96
				fi
97
		*)
97
				;;
98
			local msg="Invalid Fortran compiler \'${FORTRANC}\'"
98
			*)	
99
			eerror "${msg}"
99
				local msg="Invalid Fortran compiler \'${FORTRANC}\'"
100
			die "${msg}"
100
				eerror "${msg}"
101
			;;
101
				die "${msg}"
102
	esac
102
				;;
103
	export NUMPY_FC
103
		esac
104
		export NUMPY_FC
105
	fi
104
	# http://projects.scipy.org/scipy/numpy/ticket/182
106
	# http://projects.scipy.org/scipy/numpy/ticket/182
105
	# Can't set LDFLAGS
107
	# Can't set LDFLAGS
106
	unset LDFLAGS
108
	unset LDFLAGS
Lines 149-154 Link Here
149
	rm -rf test
151
	rm -rf test
150
}
152
}
151
153
154
# Horrible kludge to avoid fortran.eclass::fortran_pkg_setup()
155
# to be called by the global "inherit fortran"
156
# Suggested in: https://bugs.gentoo.org/show_bug.cgi?id=186913
157
pkg_setup() {
158
	true
159
}
160
152
src_install() {
161
src_install() {
153
	# we need to do the configuring again, for some reason, the
162
	# we need to do the configuring again, for some reason, the
154
	# variables are not kept within setup.py functions
163
	# variables are not kept within setup.py functions

Return to bug 186913