diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2007-03-24 23:11:42 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2007-03-24 23:11:42 +0000 |
commit | 6488836a93c38a121fb469b1c45965d8ce0306a3 (patch) | |
tree | 2cbd80eaf14e49724088525de202969db1d16313 /sci-libs | |
parent | added mkl-9.0 (diff) | |
download | gentoo-2-6488836a93c38a121fb469b1c45965d8ce0306a3.tar.gz gentoo-2-6488836a93c38a121fb469b1c45965d8ce0306a3.tar.bz2 gentoo-2-6488836a93c38a121fb469b1c45965d8ce0306a3.zip |
Version bump. Removed an older version, added longdescription in metadata.xml, fixed bug #156517. The new ebuild has a lot of changes, since Intel has changed once more the installation process.
(Portage version: 2.1.2.2)
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/mkl/ChangeLog | 11 | ||||
-rw-r--r-- | sci-libs/mkl/files/digest-mkl-8.0.2.004 | 3 | ||||
-rw-r--r-- | sci-libs/mkl/files/digest-mkl-9.0.018 | 3 | ||||
-rw-r--r-- | sci-libs/mkl/files/eselect.blas | 6 | ||||
-rw-r--r-- | sci-libs/mkl/files/eselect.cblas | 4 | ||||
-rw-r--r-- | sci-libs/mkl/files/eselect.lapack | 6 | ||||
-rw-r--r-- | sci-libs/mkl/metadata.xml | 7 | ||||
-rw-r--r-- | sci-libs/mkl/mkl-8.0.2.004.ebuild | 226 | ||||
-rw-r--r-- | sci-libs/mkl/mkl-8.1.014.ebuild | 21 | ||||
-rw-r--r-- | sci-libs/mkl/mkl-9.0.018.ebuild | 209 |
10 files changed, 250 insertions, 246 deletions
diff --git a/sci-libs/mkl/ChangeLog b/sci-libs/mkl/ChangeLog index bbf4559e9569..b289ad244fca 100644 --- a/sci-libs/mkl/ChangeLog +++ b/sci-libs/mkl/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sci-libs/mkl # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/mkl/ChangeLog,v 1.11 2007/02/22 14:03:09 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/mkl/ChangeLog,v 1.12 2007/03/24 23:11:42 bicatali Exp $ + +*mkl-9.0.018 (24 Mar 2007) + + 24 Mar 2007; Sébastien Fabbro <bicatali@gentoo.org> files/eselect.blas, + files/eselect.cblas, files/eselect.lapack, metadata.xml, + -mkl-8.0.2.004.ebuild, mkl-8.1.014.ebuild, +mkl-9.0.018.ebuild: + Version bump. Removed an older version, added longdescription in + metadata.xml, fixed bug #156517. The new ebuild has a lot of changes, + since Intel has changed once more the installation process. 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog: Transition to Manifest2. diff --git a/sci-libs/mkl/files/digest-mkl-8.0.2.004 b/sci-libs/mkl/files/digest-mkl-8.0.2.004 deleted file mode 100644 index ff935df18160..000000000000 --- a/sci-libs/mkl/files/digest-mkl-8.0.2.004 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 fd76dc20d94950ba9d865c3703b12051 l_mkl_p_8.0.2.004.tgz 94983122 -RMD160 a11834af3cc18eddd425a1c06e3c2b31a1d69cc5 l_mkl_p_8.0.2.004.tgz 94983122 -SHA256 f74948cee237cf2f3f7c8d726327ab5caa1cd43e2c87600cd7a3411c057f0f7b l_mkl_p_8.0.2.004.tgz 94983122 diff --git a/sci-libs/mkl/files/digest-mkl-9.0.018 b/sci-libs/mkl/files/digest-mkl-9.0.018 new file mode 100644 index 000000000000..775ce9b5061b --- /dev/null +++ b/sci-libs/mkl/files/digest-mkl-9.0.018 @@ -0,0 +1,3 @@ +MD5 4780d30b60e8410427fb3736a929f8bd l_mkl_p_9.0.018.tgz 142125233 +RMD160 301566c09298ede7336224d2d33f07103cac1ffe l_mkl_p_9.0.018.tgz 142125233 +SHA256 28f46ec621e54dac7ee9d4ddea448b80f8c8dfb7ed047d1f7166142f16755384 l_mkl_p_9.0.018.tgz 142125233 diff --git a/sci-libs/mkl/files/eselect.blas b/sci-libs/mkl/files/eselect.blas index a76e5fc7d3db..7a63e53f6349 100644 --- a/sci-libs/mkl/files/eselect.blas +++ b/sci-libs/mkl/files/eselect.blas @@ -1,3 +1,3 @@ -blas/mkl/libmkl_blas.so /usr/@LIBDIR@/libblas.so -blas/mkl/libmkl_blas.so /usr/@LIBDIR@/libblas.so.0 -blas/mkl/libmkl_blas.a /usr/@LIBDIR@/libblas.a +blas/mkl/libblas.so /usr/@LIBDIR@/libblas.so +blas/mkl/libblas.so.0 /usr/@LIBDIR@/libblas.so.0 +blas/mkl/libblas.a /usr/@LIBDIR@/libblas.a diff --git a/sci-libs/mkl/files/eselect.cblas b/sci-libs/mkl/files/eselect.cblas index 720c12b34176..27127cceefcf 100644 --- a/sci-libs/mkl/files/eselect.cblas +++ b/sci-libs/mkl/files/eselect.cblas @@ -1,3 +1,3 @@ mkl/mkl_cblas.h /usr/include/cblas.h -blas/mkl/libmkl_cblas.so /usr/@LIBDIR@/libcblas.so -blas/mkl/libmkl_cblas.so /usr/@LIBDIR@/libcblas.so.0 +blas/mkl/libcblas.so.0 /usr/@LIBDIR@/libcblas.so +blas/mkl/libcblas.so /usr/@LIBDIR@/libcblas.so.0 diff --git a/sci-libs/mkl/files/eselect.lapack b/sci-libs/mkl/files/eselect.lapack index a63719995681..7385a69defbe 100644 --- a/sci-libs/mkl/files/eselect.lapack +++ b/sci-libs/mkl/files/eselect.lapack @@ -1,3 +1,3 @@ -lapack/mkl/libmkl_lapack.so /usr/@LIBDIR@/liblapack.so -lapack/mkl/libmkl_lapack.so /usr/@LIBDIR@/liblapack.so.0 -lapack/mkl/libmkl_lapack.a /usr/@LIBDIR@/liblapack.a +lapack/mkl/liblapack.so /usr/@LIBDIR@/liblapack.so +lapack/mkl/liblapack.so.0 /usr/@LIBDIR@/liblapack.so.0 +lapack/mkl/liblapack.a /usr/@LIBDIR@/liblapack.a diff --git a/sci-libs/mkl/metadata.xml b/sci-libs/mkl/metadata.xml index b229aec85b8f..755ec66a5135 100644 --- a/sci-libs/mkl/metadata.xml +++ b/sci-libs/mkl/metadata.xml @@ -2,4 +2,11 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>sci</herd> +<longdescription lang="en"> +The Intel Math Kernel Library is a mathematical library mostly +optimized for Intel processors (also works on AMDs). It contains BLAS +and LAPACK implementations, Fast Fourier Transforms, a vector math +library, and random number generators. It also has multiprocessor +capacities. +</longdescription> </pkgmetadata> diff --git a/sci-libs/mkl/mkl-8.0.2.004.ebuild b/sci-libs/mkl/mkl-8.0.2.004.ebuild deleted file mode 100644 index 1e176e791be7..000000000000 --- a/sci-libs/mkl/mkl-8.0.2.004.ebuild +++ /dev/null @@ -1,226 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/mkl/mkl-8.0.2.004.ebuild,v 1.2 2006/08/17 20:12:15 dberkholz Exp $ - -inherit fortran rpm flag-o-matic - -MYPV=${PV/.004/} -DESCRIPTION="Intel(R) Math Kernel Library: linear algebra, fft, random number generators." -HOMEPAGE="http://developer.intel.com/software/products/mkl/" -SRC_URI="l_${PN}_p_${PV}.tgz" -RESTRICT="nostrip fetch" - -#fortran95 implements a fortran 95 blas/lapack interface -IUSE="fortran95 examples" -SLOT="0" -LICENSE="mkl-8.0.1" -KEYWORDS="~x86 ~amd64 ~ia64" -RDEPEND="virtual/libc - app-admin/eselect-blas - app-admin/eselect-cblas - app-admin/eselect-lapack" -DEPEND="${RDEPEND}" -PROVIDE="virtual/blas - virtual/lapack" - - -S="${WORKDIR}/l_${PN}_p_${PV}" -INSTDIR=opt/intel/${PN}/${MYPV} - - -pkg_setup() { - - if use fortran95; then - FORTRAN="ifc gfortran" - fortran_pkg_setup - fi - - if [ -z "${INTEL_LICENSE}" -a -z \ - $(find /opt/intel/licenses -name *mkl*.lic) ]; then - eerror "Did not find any valid mkl license." - eerror "Please locate your license file and run:" - eerror "\t INTEL_LICENSE=/my/license/files emerge ${PN}" - eerror "or place your license in /opt/intel/licenses and run emerge ${PN}" - elog - elog "http://www.intel.com/cd/software/products/asmo-na/eng/perflib/mkl/219859.htm" - elog "From the above url you can get a free, non-commercial" - elog "license to use the Intel Math Kernel Libary emailed to you." - elog "You cannot use mkl without this license file." - elog "Read the website for more information on this license." - elog - fi -} - - -# the whole shmol is to extract rpm files non-interactively -# from the big mkl installation -# hopefully recyclable for ipp -src_unpack() { - - ewarn - ewarn "Intel ${PN} requires 200Mb of disk space" - ewarn "Make sure you have enough space on /var and also in /opt/intel" - ewarn - - unpack ${A} - - # fake rpm commands to trick the big install script - mkdir -p bin - echo "exit 1" > bin/rpm2cpio - echo "exit 1" > bin/rpm - chmod +x bin/* - PATH=".:${PATH}:$PWD/bin" - - cd ${S}/install - # answer file to make the big install script non-interactive - echo $" -[${PN}_install] -EULA_ACCEPT_REJECT=accept -FLEXLM_LICENSE_LOCATION=${INTEL_LICENSE} -TEMP_DIR=${WORKDIR}/rpm -INSTALL_DESTINATION=${S} -RPM_INSTALLATION= -" > answers.txt - - einfo "Building rpm file..." - ./install \ - --noroot \ - --nonrpm \ - --installpath ${S} \ - --silent answers.txt &> /dev/null - - [ -z $(find ${WORKDIR} -name "*.rpm") ] \ - && die "error while extracting the rpm" - - rm -rf ${WORKDIR}/bin ${S}/* - - cd ${S} - for x in $(ls ../rpm/*.rpm); do - einfo "Extracting $(basename ${x})..." - rpm_unpack ${x} || die "rpm_unpack failed" - done - - # clean up - rm -rf ${WORKDIR}/rpm - rm -rf ${S}/${INSTDIR}/tools/environment -} - -src_compile() { - - case ${ARCH} in - amd64) - IARCH="em64t" - IKERN="em64t" - ;; - ia64) - IARCH="64" - IKERN="ipf" - ;; - x86) - IARCH="32" - IKERN="ia32" - ;; - esac - ILIBDIR=${INSTDIR}/lib/${IARCH} - einfo "IARCH=$IARCH IKERN=$IKERN" - - cd ${S}/${INSTDIR}/tools/builder - for x in blas cblas lapack; do - make ${IKERN} export=${FILESDIR}/${x}.list name=libmkl_${x} \ - || die "make ${IKERN} failed" - done - - if use fortran95; then - local fc=${FORTRANC} - if [ "${FORTRANC}" = "ifc" ]; then - fc=ifort - fi - for x in blas lapack; do - cd ${S}/${INSTDIR}/interfaces/${x}95 - make lib \ - PLAT=lnx${IARCH/em64t/32e} \ - FC=${fc} \ - INSTALL_DIR=${S}/${ILIBDIR} || die "make lib failed" - done - fi -} - -src_test() { - local fc="gnu" - [ "${FORTRANC}" = "ifc" ] && fc="ifort" - - cd ${S}/${INSTDIR}/tests - for testdir in *; do - einfo "Testing $testdir" - cd ${testdir} - emake so$IARCH F=${fc} || die "make $testdir failed" - done -} - -src_install () { - cd ${S} - - # install license - if [ -n "${INTEL_LICENSE}" -a -f "${INTEL_LICENSE}" ]; then - insinto /opt/intel/licenses - doins ${INTEL_LICENSE} - fi - - # install documentation and include files - insinto /${INSTDIR} - doins -r ${INSTDIR}/{doc,include} - dodir /usr/include - dosym /${INSTDIR}/include /usr/include/${PN} - use examples && doins -r ${INSTDIR}/examples - - # install static libraries - insinto /${ILIBDIR} - doins ${ILIBDIR}/*.a - dodir /usr/$(get_libdir)/{blas,lapack}/mkl - dosym /${ILIBDIR}/libmkl_${IKERN}.a \ - /usr/$(get_libdir)/blas/mkl/libmkl_blas.a - dosym /${ILIBDIR}/libmkl_lapack.a \ - /usr/$(get_libdir)/lapack/mkl/libmkl_lapack.a - - # install shared libraries - insopts -m0755 - doins ${ILIBDIR}/*.so - insinto /usr/$(get_libdir)/blas/mkl - doins ${INSTDIR}/tools/builder/libmkl_{,c}blas.so - insinto /usr/$(get_libdir)/lapack/mkl - doins ${INSTDIR}/tools/builder/libmkl_lapack.so - - # install tools - insopts -m0644 - insinto /${INSTDIR} - rm -f ${INSTDIR}/tools/builder/*.so - doins -r ${INSTDIR}/tools - - # install eselect files - eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas mkl - eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas mkl - eselect lapack add $(get_libdir) ${FILESDIR}/eselect.lapack mkl - - # install environment var - echo "LD_LIBRARY_PATH=/${ILIBDIR}" > 35mkl - doenvd 35mkl -} - -pkg_postinst() { - if [[ -z "$(eselect blas show)" ]]; then - eselect blas set mkl - fi - if [[ -z "$(eselect cblas show)" ]]; then - eselect cblas set mkl - fi - if [[ -z "$(eselect lapack show)" ]]; then - eselect lapack set mkl - fi - - elog "To use MKL's BLAS features, you have to issue (as root):" - elog "\n\teselect blas set mkl" - elog "To use MKL's CBLAS features, you have to issue (as root):" - elog "\n\teselect cblas set mkl" - elog "To use MKL's LAPACK features, you have to issue (as root):" - elog "\n\teselect lapack set mkl" -} diff --git a/sci-libs/mkl/mkl-8.1.014.ebuild b/sci-libs/mkl/mkl-8.1.014.ebuild index a293f983142d..fc069dcbaa17 100644 --- a/sci-libs/mkl/mkl-8.1.014.ebuild +++ b/sci-libs/mkl/mkl-8.1.014.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/mkl/mkl-8.1.014.ebuild,v 1.1 2006/08/30 06:37:30 dberkholz Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/mkl/mkl-8.1.014.ebuild,v 1.2 2007/03/24 23:11:42 bicatali Exp $ inherit fortran rpm flag-o-matic @@ -90,7 +90,7 @@ RPM_INSTALLATION= --silent answers.txt &> /dev/null [ -z $(find ${WORKDIR} -name "*.rpm") ] \ - && die "error while extracting the rpm" + && die "error while extracting the rpm" rm -rf ${WORKDIR}/bin ${S}/* @@ -126,7 +126,7 @@ src_compile() { cd ${S}/${INSTDIR}/tools/builder for x in blas cblas lapack; do - make ${IKERN} export=${FILESDIR}/${x}.list name=libmkl_${x} \ + make ${IKERN} export=${FILESDIR}/${x}.list name=lib${x} \ || die "make ${IKERN} failed" done @@ -178,17 +178,22 @@ src_install () { doins ${ILIBDIR}/*.a dodir /usr/$(get_libdir)/{blas,lapack}/mkl dosym /${ILIBDIR}/libmkl_${IKERN}.a \ - /usr/$(get_libdir)/blas/mkl/libmkl_blas.a + /usr/$(get_libdir)/blas/mkl/libblas.a dosym /${ILIBDIR}/libmkl_lapack.a \ - /usr/$(get_libdir)/lapack/mkl/libmkl_lapack.a + /usr/$(get_libdir)/lapack/mkl/liblapack.a # install shared libraries insopts -m0755 doins ${ILIBDIR}/*.so insinto /usr/$(get_libdir)/blas/mkl - doins ${INSTDIR}/tools/builder/libmkl_{,c}blas.so + newins ${INSTDIR}/tools/builder/libblas.so libblas.so.0 + newins ${INSTDIR}/tools/builder/libcblas.so libcblas.so.0 insinto /usr/$(get_libdir)/lapack/mkl - doins ${INSTDIR}/tools/builder/libmkl_lapack.so + newins ${INSTDIR}/tools/builder/liblapack.so liblapack.so.0 + dosym libblas.so.0 /usr/$(get_libdir)/blas/mkl/libblas.so + dosym libcblas.so.0 /usr/$(get_libdir)/blas/mkl/libcblas.so + dosym liblapack.so.0 /usr/$(get_libdir)/lapack/mkl/liblapack.so + # install tools insopts -m0644 diff --git a/sci-libs/mkl/mkl-9.0.018.ebuild b/sci-libs/mkl/mkl-9.0.018.ebuild new file mode 100644 index 000000000000..9de46cd4b690 --- /dev/null +++ b/sci-libs/mkl/mkl-9.0.018.ebuild @@ -0,0 +1,209 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/mkl/mkl-9.0.018.ebuild,v 1.1 2007/03/24 23:11:42 bicatali Exp $ + +inherit toolchain-funcs fortran + +DESCRIPTION="Intel(R) Math Kernel Library: linear algebra, fft, random number generators." +HOMEPAGE="http://developer.intel.com/software/products/mkl/" +SRC_URI="l_${PN}_p_${PV}.tgz" +RESTRICT="nostrip fetch" + +IUSE="fortran95 fftw examples" +SLOT="0" +LICENSE="mkl-9.0" +KEYWORDS="~x86 ~amd64 ~ia64" +RDEPEND="app-admin/eselect-blas + app-admin/eselect-cblas + app-admin/eselect-lapack" +DEPEND="${RDEPEND}" + +PROVIDE="virtual/blas + virtual/lapack" + +pkg_nofetch() { + einfo "Please download the intel mkl from:" + einfo "http://www.intel.com/software/products/mkl/downloads/lin_mkl.htm" + einfo "and place it in ${DISTDIR}" + einfo "Also you need to register in ${HOMEPAGE}" + einfo "and keep the license Intel sent you" +} + +pkg_setup() { + + if [[ -z "${INTEL_LICENSE}" ]] && + [[ -z "$(find /opt/intel/licenses -name *MKL*.lic)" ]]; then + eerror "Did not find any valid mkl license." + eerror "Please locate your license file and run:" + eerror "\t INTEL_LICENSE=/my/license/dir emerge ${PN}" + eerror "or place your license in /opt/intel/licenses" + eerror "Hint: the license file is in the email Intel sent you" + die + fi + + # setting up compilers + INTEL_CC=gnu + [[ "$(tc-getCC)" == "icc" ]] && INTEL_CC=icc + # gfortran still not compiling tests nor fortran95 interface + FORTRAN="ifc g77" + use fortran95 && FORTRAN="ifc" + fortran_pkg_setup + + # setting up architecture name + case ${ARCH} in + x86) INTEL_ARCH="32" INTEL_KERN=ia32 ;; + amd64) INTEL_ARCH="em64t" INTEL_KERN=em64t ;; + ia64) INTEL_ARCH="64" INTEL_KERN=ipf ;; + esac +} + +src_unpack() { + + ewarn + ewarn "Intel ${PN} requires 400Mb of disk space" + ewarn "Make sure you have them on ${PORTAGE_TMPDIR} and in /opt/intel" + ewarn + unpack ${A} + + cd l_${PN}_p_${PV}/install + + # make an answer file to install non-interactivaly + # (devs: to produce such a file, first do it interactively + # tar xvf l_*; cd l_*/install; ./install --duplicate answers.txt) + echo $" +[MKL] +EULA_ACCEPT_REJECT=ACCEPT +FLEXLM_LICENSE_LOCATION= +INSTALLMODE=NONRPM +INSTALL_DESTINATION=${S} +" > answers.txt + + einfo "Extracting ..." + # the binary blob extractor forces installation in /opt/intel + addwrite /opt/intel + ./install \ + --silent answers.txt \ + --log log.txt &> /dev/null + + [[ -z $(find "${WORKDIR}" -name libmkl.so) ]] \ + && die "extracting failed" + + cd "${WORKDIR}" && rm -rf l_* +} + +src_compile() { + + cd "${S}"/tools/builder + for x in blas cblas lapack; do + emake \ + export="${FILESDIR}"/${x}.list \ + name=lib${x} \ + ${INTEL_KERN} || die "emake ${x} failed" + done + + if use fortran95; then + for x in blas95 lapack95; do + cd "${S}"/interfaces/${x} + emake -j1 \ + PLAT=lnx${INTEL_ARCH/em64t/32e} \ + FC=${FORTRANC} \ + INSTALL_DIR=../../lib/${INTEL_ARCH} \ + lib || die "emake ${x} failed" + done + fi + + if use fftw; then + for x in "${S}"/interfaces/fft*; do + cd "${x}" + emake \ + F=${INTEL_CC} \ + lib${INTEL_ARCH} || die "emake ${x} failed" + done + fi +} + +src_test() { + # only testing with g77/gcc for now + cd "${S}"/tests + for testdir in * ; do + einfo "Testing ${testdir}" + cd ${testdir} + emake \ + F=gnu \ + lib${INTEL_ARCH} || die "emake ${testdir} failed" + done +} + +src_install() { + + # install license in case of the extracting did not + if [ -n "${INTEL_LICENSE}" -a -f "${INTEL_LICENSE}" ]; then + insinto /opt/intel/licenses + doins "${INTEL_LICENSE}" + fi + + local install_dir=/opt/intel/${PN}/${PV:0:3} + dodir ${install_dir} + cp -pPR include lib man doc "${D}"${install_dir} + + dodir /usr/$(get_libdir)/{blas,lapack}/mkl + dosym ${install_dir}/lib/${INTEL_ARCH}/libmkl_${INTEL_KERN}.a \ + /usr/$(get_libdir)/blas/mkl/libblas.a + dosym ${install_dir}/lib/${INTEL_ARCH}/libmkl_${INTEL_KERN}.a \ + /usr/$(get_libdir)/blas/mkl/libcblas.a + dosym /${install_dir}/lib/${INTEL_ARCH}/libmkl_lapack.a \ + /usr/$(get_libdir)/lapack/mkl/liblapack.a + + insopts -m0755 + insinto /usr/$(get_libdir)/blas/mkl + newins tools/builder/libblas.so libblas.so.0 + newins tools/builder/libcblas.so libcblas.so.0 + insinto /usr/$(get_libdir)/lapack/mkl + newins tools/builder/liblapack.so liblapack.so.0 + + dosym libblas.so.0 /usr/$(get_libdir)/blas/mkl/libblas.so + dosym libcblas.so.0 /usr/$(get_libdir)/blas/mkl/libcblas.so + dosym liblapack.so.0 /usr/$(get_libdir)/lapack/mkl/liblapack.so + + dodir /usr/include + dosym ${install_dir}/include /usr/include/${PN} + + rm -f tools/builder/*.so + for d in plugins builder support; do + insinto ${install_dir}/tools + doins -r tools/${d} + done + + if use examples; then + insinto ${install_dir} + doins -r examples + fi + + eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas mkl + eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas mkl + eselect lapack add $(get_libdir) ${FILESDIR}/eselect.lapack mkl + + echo "INCLUDE=${install_dir}/include" > 35mkl + echo "MANPATH=${install_dir}/man" > 35mkl + echo "LDPATH=${install_dir}/lib/${INTEL_ARCH}" >> 35mkl + doenvd 35mkl +} + +pkg_postinst() { + if [[ -z "$(eselect blas show)" ]]; then + eselect blas set mkl + fi + if [[ -z "$(eselect cblas show)" ]]; then + eselect cblas set mkl + fi + if [[ -z "$(eselect lapack show)" ]]; then + eselect lapack set mkl + fi + + elog "To use MKL's BLAS features, you have to issue (as root):" + elog "\n\teselect blas set mkl" + elog "To use MKL's CBLAS features, you have to issue (as root):" + elog "\n\teselect cblas set mkl" + elog "To use MKL's LAPACK features, you have to issue (as root):" + elog "\n\teselect lapack set mkl" +} |