diff options
author | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2006-02-03 12:38:20 +0000 |
---|---|---|
committer | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2006-02-03 12:38:20 +0000 |
commit | f0e73b1c733e40426118cb310c11d7053b898910 (patch) | |
tree | c54f8028289dc47f174386b264f473b46d752873 /sci-libs/mkl | |
parent | mkl/mkl-8.0.1.006.ebuild: corrected some installation bugs (diff) | |
download | sci-f0e73b1c733e40426118cb310c11d7053b898910.tar.gz sci-f0e73b1c733e40426118cb310c11d7053b898910.tar.bz2 sci-f0e73b1c733e40426118cb310c11d7053b898910.zip |
mkl-8.0.1.006.ebuild: reworked lib install + tests
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@91 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-libs/mkl')
-rw-r--r-- | sci-libs/mkl/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/mkl/mkl-8.0.1.006.ebuild | 31 |
2 files changed, 22 insertions, 11 deletions
diff --git a/sci-libs/mkl/Manifest b/sci-libs/mkl/Manifest index 395eca62e..9c6de9294 100644 --- a/sci-libs/mkl/Manifest +++ b/sci-libs/mkl/Manifest @@ -1,4 +1,4 @@ MD5 f0122114658bed82421c724016249798 ChangeLog 1771 MD5 f1853cde0595400d25d2fa52f079a46e files/digest-mkl-8.0.1.006 68 MD5 729a826a74e62fe48daf668e3dccefb4 metadata.xml 603 -MD5 685a0f20f59bb5712917b2d8c1b85ec6 mkl-8.0.1.006.ebuild 3195 +MD5 fd9a5ed708dc2c899a16b06811257343 mkl-8.0.1.006.ebuild 3470 diff --git a/sci-libs/mkl/mkl-8.0.1.006.ebuild b/sci-libs/mkl/mkl-8.0.1.006.ebuild index 1afec0621..fbedad1c6 100644 --- a/sci-libs/mkl/mkl-8.0.1.006.ebuild +++ b/sci-libs/mkl/mkl-8.0.1.006.ebuild @@ -2,9 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ +inherit eutils + MYPV=${PV/.006//} -DESCRIPTION="Intel(R) Math Kernel Library: linear algebra, fft, etc..." +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" @@ -90,6 +92,10 @@ RPM_INSTALLATION= ;; esac export IARCH + # remove unnecessary stuff + use ${ARCH} || rm -rf ${S}${INSTDIR}/lib/${IARCH} + rm -rf ${S}${INSTDIR}/tools/environment + } src_compile() { @@ -98,25 +104,30 @@ src_compile() { src_test() { - # todo: testing with compilers other than gcc/g77 + # todo: testing with compilers and flags other than gcc/g77 cd ${S}${INSTDIR}/tests for testdir in *; do einfo "Testing $testdir" cd $testdir - emake so$IARCH F=gnu + emake so$IARCH F=gnu || die "make $testdir failed" done } src_install () { + #does not work + #cp -pPR * ${D} + cd ${S}${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 - install -m0644 lib/${IARCH}/*.{so,a} + # should we keep the tests dir? if yes, remove test results + doins -r doc examples include interfaces tools + + insinto ${INSTDIR}/lib/${IARCH} + doins lib/${IARCH}/*.a + insopts -m0755 + doins lib/${IARCH}/*.so + + #todo: make it work with eselect/blas-config/lapack-config echo "INCLUDE=${INSTDIR}/include:\${INCLUDE}" > 35mkl echo "LD_LIBRARY_PATH=${INSTDIR}/lib/${IARCH}:\${LD_LIBRARY_PATH}" >> 35mkl |