summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2006-07-03 08:30:38 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2006-07-03 08:30:38 +0000
commita0b54b845fbd6b30abb753b8bde4b36555cbd52c (patch)
tree202810b958720664089f67892db034ac08ed3ae2 /sci-libs/mkl
parentAdd sci-libs/mkl:fortran95 (diff)
downloadhistorical-a0b54b845fbd6b30abb753b8bde4b36555cbd52c.tar.gz
historical-a0b54b845fbd6b30abb753b8bde4b36555cbd52c.tar.bz2
historical-a0b54b845fbd6b30abb753b8bde4b36555cbd52c.zip
Bump to something relatively current, based on ebuild from the science overlay by bicatali. Also switch to new eselect modules.
Package-Manager: portage-2.1.1_pre1-r5
Diffstat (limited to 'sci-libs/mkl')
-rw-r--r--sci-libs/mkl/ChangeLog11
-rw-r--r--sci-libs/mkl/Manifest22
-rw-r--r--sci-libs/mkl/files/digest-mkl-8.0.2.0043
-rw-r--r--sci-libs/mkl/mkl-8.0.2.004.ebuild226
4 files changed, 259 insertions, 3 deletions
diff --git a/sci-libs/mkl/ChangeLog b/sci-libs/mkl/ChangeLog
index 29a712e84bc8..9c16f5fc37f6 100644
--- a/sci-libs/mkl/ChangeLog
+++ b/sci-libs/mkl/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-libs/mkl
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/mkl/ChangeLog,v 1.4 2005/08/24 16:27:00 phosphan Exp $
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/mkl/ChangeLog,v 1.5 2006/07/03 08:30:38 spyderous Exp $
+
+*mkl-8.0.2.004 (03 Jul 2006)
+
+ 03 Jul 2006; Donnie Berkholz <spyderous@gentoo.org>;
+ +mkl-8.0.2.004.ebuild:
+ Bump to something relatively current, based on ebuild from the science
+ overlay by bicatali. Also switch to new eselect modules.
24 Aug 2005; Patrick Kursawe <phosphan@gentoo.org> mkl-5.2.ebuild:
No longer using cp -a (bug #103487)
diff --git a/sci-libs/mkl/Manifest b/sci-libs/mkl/Manifest
index a5afa3316788..d342d6dae9b1 100644
--- a/sci-libs/mkl/Manifest
+++ b/sci-libs/mkl/Manifest
@@ -1,4 +1,24 @@
+DIST l_mkl_p_8.0.2.004.tgz 94983122 RMD160 a11834af3cc18eddd425a1c06e3c2b31a1d69cc5 SHA256 f74948cee237cf2f3f7c8d726327ab5caa1cd43e2c87600cd7a3411c057f0f7b
+DIST mkl52lin_e.tar 32296960
+EBUILD mkl-5.2.ebuild 1151 RMD160 1bf7946aea4427ae4a94a44b364fdbca98a4f15f SHA1 cf0c695e4666a21a5374e60d09e11c2228390fac SHA256 a6fe150320b21999f336a1696f9819c4cdbf14868c65dff2f3079b2f8c2c8e38
MD5 b5326ad7b00da4c13a0e4fb83b1e4988 mkl-5.2.ebuild 1151
-MD5 a2df029916b6203c53a90e42d9eebec8 ChangeLog 1623
+RMD160 1bf7946aea4427ae4a94a44b364fdbca98a4f15f mkl-5.2.ebuild 1151
+SHA256 a6fe150320b21999f336a1696f9819c4cdbf14868c65dff2f3079b2f8c2c8e38 mkl-5.2.ebuild 1151
+EBUILD mkl-8.0.2.004.ebuild 5608 RMD160 0e4af971e81a213c2c52bad85b915bd92e99a5c7 SHA1 7667d1373d925b7ace6d8625c7595c524735bc3e SHA256 5860475c8b937488ae1a6c365275b55d454485a5960eb9ee6f08a0fac41e73c3
+MD5 c5618960ee7cb9632da7e54c566ea3c1 mkl-8.0.2.004.ebuild 5608
+RMD160 0e4af971e81a213c2c52bad85b915bd92e99a5c7 mkl-8.0.2.004.ebuild 5608
+SHA256 5860475c8b937488ae1a6c365275b55d454485a5960eb9ee6f08a0fac41e73c3 mkl-8.0.2.004.ebuild 5608
+MISC ChangeLog 1867 RMD160 fe41d2b127d5c23fbbba93cc20498c3b1ed4c281 SHA1 f01fac034ff39f9e8eb25a3b9d9135d0789df0c1 SHA256 e7f1d796b68a11b3bbc7a42c26c75b603d7b4bdb757c59e6a27484ea846caeec
+MD5 8beee9c34706c8e98d1f3f827aff4cca ChangeLog 1867
+RMD160 fe41d2b127d5c23fbbba93cc20498c3b1ed4c281 ChangeLog 1867
+SHA256 e7f1d796b68a11b3bbc7a42c26c75b603d7b4bdb757c59e6a27484ea846caeec ChangeLog 1867
+MISC metadata.xml 156 RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 SHA1 da2b240a255820145b7c83a5c48e45b96b7e9ee6 SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900
MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 metadata.xml 156
+SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900 metadata.xml 156
MD5 d6dbbff7ddabf9df43b79ead57708a4d files/digest-mkl-5.2 61
+RMD160 3dbc192908ab939d632c1b04420e1823c0f3eb03 files/digest-mkl-5.2 61
+SHA256 f4a7c4886cafae318c9a07dc342e09020d3665a01fe093a83a6b6013bb7d4e5f files/digest-mkl-5.2 61
+MD5 52df3f37e16620d114f640decb55ae0e files/digest-mkl-8.0.2.004 250
+RMD160 0a348d74316dc417674bf87a936d72d8df926d92 files/digest-mkl-8.0.2.004 250
+SHA256 3856b75115545182790d0e8ac8ba707b2d3df2d4aeee89a446d1ede3f8010ad7 files/digest-mkl-8.0.2.004 250
diff --git a/sci-libs/mkl/files/digest-mkl-8.0.2.004 b/sci-libs/mkl/files/digest-mkl-8.0.2.004
new file mode 100644
index 000000000000..ff935df18160
--- /dev/null
+++ b/sci-libs/mkl/files/digest-mkl-8.0.2.004
@@ -0,0 +1,3 @@
+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/mkl-8.0.2.004.ebuild b/sci-libs/mkl/mkl-8.0.2.004.ebuild
new file mode 100644
index 000000000000..16fa42a32789
--- /dev/null
+++ b/sci-libs/mkl/mkl-8.0.2.004.ebuild
@@ -0,0 +1,226 @@
+# 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.1 2006/07/03 08:30:38 spyderous 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}"
+ einfo
+ einfo "http://www.intel.com/cd/software/products/asmo-na/eng/perflib/mkl/219859.htm"
+ einfo "From the above url you can get a free, non-commercial"
+ einfo "license to use the Intel Math Kernel Libary emailed to you."
+ einfo "You cannot use mkl without this license file."
+ einfo "Read the website for more information on this license."
+ einfo
+ 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
+
+ einfo "To use MKL's BLAS features, you have to issue (as root):"
+ einfo "\n\teselect blas set mkl"
+ einfo "To use MKL's CBLAS features, you have to issue (as root):"
+ einfo "\n\teselect cblas set mkl"
+ einfo "To use MKL's LAPACK features, you have to issue (as root):"
+ einfo "\n\teselect lapack set mkl"
+}