-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
PID=1232
PB=${PN}
+P_ARCHIVE=l_${PN}_p_${PV}
DESCRIPTION="Intel(R) Math Kernel Library: linear algebra, fft, math functions"
HOMEPAGE="http://developer.intel.com/software/products/mkl/"
-SRC_URI="http://registrationcenter-download.intel.com/irc_nas/${PID}/l_${PN}_p_${PV}.tgz"
+SRC_URI="http://registrationcenter-download.intel.com/irc_nas/${PID}/${P_ARCHIVE}.tgz"
SLOT="0"
LICENSE="Intel-SDP"
get_fcomp
}
-src_prepare() {
- check-reqs_src_prepare
-
- cd l_${PN}_*_${PV}/install || die
+src_unpack () {
+ default
+ cd "${WORKDIR}/${P_ARCHIVE}"/install || die
cp ${MKL_LICENSE} "${WORKDIR}"/ || die
MKL_LIC="$(basename ${MKL_LICENSE})"
eerror "See ${PWD}/log.txt to see why"
die "extracting failed"
fi
+}
+
+src_prepare() {
# remove left over
rm -f /opt/intel/.*mkl*.log /opt/intel/intel_sdp_products.db || die
# remove unused stuff and set up intel names
rm -rf "${WORKDIR}"/l_* || die
- cd "${S}" || die
# allow openmpi to work
epatch "${FILESDIR}"/${PN}-10.0.2.018-openmpi.patch
# make scalapack tests work for gfortran