diff options
author | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2006-02-02 19:40:47 +0000 |
---|---|---|
committer | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2006-02-02 19:40:47 +0000 |
commit | db50be942fce97afef99220c0a80b64fcb75c1ed (patch) | |
tree | 065566ab8a4bebd7decb7e978241be14be437e26 /sci-libs/mkl | |
parent | Version bump (diff) | |
download | sci-db50be942fce97afef99220c0a80b64fcb75c1ed.tar.gz sci-db50be942fce97afef99220c0a80b64fcb75c1ed.tar.bz2 sci-db50be942fce97afef99220c0a80b64fcb75c1ed.zip |
added experimental mkl-8.0.1.006
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@89 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-libs/mkl')
-rw-r--r-- | sci-libs/mkl/ChangeLog | 48 | ||||
-rw-r--r-- | sci-libs/mkl/Manifest | 4 | ||||
-rw-r--r-- | sci-libs/mkl/files/digest-mkl-8.0.1.006 | 1 | ||||
-rw-r--r-- | sci-libs/mkl/metadata.xml | 15 | ||||
-rw-r--r-- | sci-libs/mkl/mkl-8.0.1.006.ebuild | 132 |
5 files changed, 200 insertions, 0 deletions
diff --git a/sci-libs/mkl/ChangeLog b/sci-libs/mkl/ChangeLog new file mode 100644 index 000000000..dba9a23ad --- /dev/null +++ b/sci-libs/mkl/ChangeLog @@ -0,0 +1,48 @@ +# ChangeLog for sci-libs/mkl +# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*mkl-8.0.1.006 (02 Feb 2006) + + 02 Feb 2006; Sebastien Fabbro <seb@ist.utl.pt> + +mkl-8.0.1.006.ebuild, +metadata.xml + Major version bump, close bug #96426, and ebuild fully rewritten. + Added english description on metadata.xml + + 24 Aug 2005; Patrick Kursawe <phosphan@gentoo.org> mkl-5.2.ebuild: + No longer using cp -a (bug #103487) + + 26 Jun 2005; Olivier Fisette <ribosome@gentoo.org> -mkl-5.1.ebuild: + Removed obsolete version. + +*mkl-5.2 (28 Dec 2004) + + 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +files/5.1/35mkl, +mkl-5.1.ebuild, +mkl-5.2.ebuild: + Moved from dev-libs/mkl to sci-libs/mkl. + + 24 Mar 2004; Jason Wever <weeve@gentoo.org> mkl-5.1.ebuild, mkl-5.2.ebuild: + All masked on sparc as this is an x86 binary only package. + + 03 Mar 2004; Peter Bienstman <pbienst@gentoo.org> mkl-5.2.ebuild : + mark stable on x86 + +*mkl-5.2 (30 Jan 2004) + + 30 Jan 2004; George Shapovalov <george@gentoo.org> mkl-5.2.ebuild, metadata.xml : + new version (#38830), few cleanups, added metadata + Thanks to Peter Bienstman <Peter.Bienstman@rug.ac.be> for an update. + The "new" license was different only in the version number in one place. I just modified + the file under license to accomodate both 5.1 and 5.2 + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords + +*mkl-5.1 (26 Apr 2002) + + 28 Nov 2002; Zach Welch <zwelch@genoot.org> : + Minor fixes to ebuild to make repoman and lintool happy. Please use + these tools; all commits should be done via 'repoman' commit. + + 26 Apr 2002; William McArthur <sandymac@gentoo.org> mkl-5.1.ebuild : + + Initial ebuild for the Intel Math Kernel Library. diff --git a/sci-libs/mkl/Manifest b/sci-libs/mkl/Manifest new file mode 100644 index 000000000..cf9079b98 --- /dev/null +++ b/sci-libs/mkl/Manifest @@ -0,0 +1,4 @@ +MD5 f0122114658bed82421c724016249798 ChangeLog 1771 +MD5 f1853cde0595400d25d2fa52f079a46e files/digest-mkl-8.0.1.006 68 +MD5 729a826a74e62fe48daf668e3dccefb4 metadata.xml 603 +MD5 139b4f46e209df9bc979811896752d05 mkl-8.0.1.006.ebuild 3165 diff --git a/sci-libs/mkl/files/digest-mkl-8.0.1.006 b/sci-libs/mkl/files/digest-mkl-8.0.1.006 new file mode 100644 index 000000000..746017f06 --- /dev/null +++ b/sci-libs/mkl/files/digest-mkl-8.0.1.006 @@ -0,0 +1 @@ +MD5 0b8b4d1c59904cef106f78016a9b4f7a l_mkl_p_8.0.1.006.tgz 95069010 diff --git a/sci-libs/mkl/metadata.xml b/sci-libs/mkl/metadata.xml new file mode 100644 index 000000000..629bb4e5e --- /dev/null +++ b/sci-libs/mkl/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <maintainer> + <email>seb@ist.utl.pt</email> + <name>Sebastien Fabbro</name> + </maintainer> + <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.1.006.ebuild b/sci-libs/mkl/mkl-8.0.1.006.ebuild new file mode 100644 index 000000000..cf6827c51 --- /dev/null +++ b/sci-libs/mkl/mkl-8.0.1.006.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MYPV=${PV/.006//} + +DESCRIPTION="Intel(R) Math Kernel Library: linear algebra, fft, etc..." +HOMEPAGE="http://developer.intel.com/software/products/mkl/" +SRC_URI="l_${PN}_p_${PV}.tgz" +RESTRICT="nostrip fetch" +IUSE="" +SLOT="0" +LICENSE="mkl-8.0" +KEYWORDS="-* ~x86 ~amd64 ~ia64" +DEPEND="virtual/libc + app-arch/rpm2targz" +RDEPEND="virtual/libc + app-admin/eselect" +PROVIDE="virtual/blas + virtual/lapack" +# should it provide fft as well? + + +S="${WORKDIR}/l_${PN}_p_${PV}" + +# hopefully recyclable for ipp +src_unpack() { + + if [ ! -n ${INTEL_LICENSE_FILES_TO_COPY} ]; then + eerror "\$INTEL_LICENSE_FILES_TO_COPY undefined" + eerror "Please locate your license file and run:" + eerror "\t INTEL_LICENSE_FILES_TO_COPY=/my/license/files emerge ${PN}" + eerror "or place your license in /opt/intel/license and run emerge ${PN}" + die + fi + + 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} + + # we cannot sed on such a big binary install file, so we trick it + # fake rpm commands to exit the nasty install once done building the rpm + # anyway, might just a dependence to rpm after all + + mkdir -p bin + echo "exit 1" > bin/rpm2cpio + echo "exit 1" > bin/rpm + chmod +x bin/* + export PATH=".:${PATH}:$PWD/bin" + export INSTDIR=/opt/intel/${PN}/${MYPV} + + cd ${S}/install + # create an answer file to the install program + echo $" +[${PN}_install] +EULA_ACCEPT_REJECT=accept +FLEXLM_LICENSE_LOCATION=${INTEL_LICENSE_FILES_TO_COPY} +TEMP_DIR=${WORKDIR}/rpm +INSTALL_DESTINATION=${D}/opt +RPM_INSTALLATION= +" > answers.txt + + einfo "Building rpm file (be patient)..." + ./install --noroot --nonrpm --installpath ${D}/${INSTDIR} --silent answers.txt &> /dev/null + rm -rf ${WORKDIR}/bin ${S}/* + + cd ${WORKDIR}/rpm + for x in *.rpm; do + einfo "Extracting ${x}..." + rpm2targz ${x} || die "rpm2targz failed" + tar xfz ${x/.rpm/.tar.gz} -C ${S} + rm -f ${x} ${x/.rpm/.tar.gz} + done + cp ${PN}_license ${S}/opt/intel/licenses + cd ${WORKDIR} + rm -rf rpm + case ${ARCH} in + amd64) + IARCH="em64t" + ;; + ia64) + IARCH="64" + ;; + x86) + IARCH="32" + ;; + esac + export IARCH +} + +src_compile() { + einfo "Nothing to compile" +} + + +src_test() { + # todo: testing with other compilers than gnu + cd ${WORKDIR}${INSTDIR}/tests + for testdir in *; do + einfo "Testing $testdir" + cd $testdir + emake so$IARCH F=gnu + done +} + +src_install () { + cd ${WORKDIR}${INSTDIR} + # remove unnecessary libraries + use ${ARCH} || rm -rf lib/${IARCH} + + # install all necessary stuff + insinto ${INSTDIR} + doins -r doc examples include interfaces tests tools/builder + insinto ${INSTDIR}/lib + doins -r lib/${IARCH}/* + + echo "INCLUDE=${INSTDIR}/include:\${INCLUDE}" > 35mkl + echo "LD_LIBRARY_PATH=${INSTDIR}/lib/${IARCH}:\${LD_LIBRARY_PATH}" >> 35mkl + doenvd 35mkl +} + +pkg_postinst() { + einfo + einfo "To use MKL's BLAS features, you have to issue (as root):" + einfo "\n\teselect blas set MKL" + einfo "To use MKL's LAPACK features, you have to issue (as root):" + einfo "\n\teselect lapack set MKL" + einfo +} |