diff options
author | George Shapovalov <george@gentoo.org> | 2004-02-02 19:09:43 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2004-02-02 19:09:43 +0000 |
commit | 68d64c6ac9b108346517a02201f89cbdb3de771c (patch) | |
tree | 75a230b611a8177ffbc32cbb0afcb03ab0f249f9 /app-sci | |
parent | added mask on blas-atlas as a part of blas reorg (diff) | |
download | gentoo-2-68d64c6ac9b108346517a02201f89cbdb3de771c.tar.gz gentoo-2-68d64c6ac9b108346517a02201f89cbdb3de771c.tar.bz2 gentoo-2-68d64c6ac9b108346517a02201f89cbdb3de771c.zip |
blas-atlas in - will replace dev-libs/blas when the blas reorg is over, package-masked for now
Diffstat (limited to 'app-sci')
-rw-r--r-- | app-sci/blas-atlas/ChangeLog | 12 | ||||
-rw-r--r-- | app-sci/blas-atlas/Manifest | 2 | ||||
-rw-r--r-- | app-sci/blas-atlas/blas-atlas-3.4.2.ebuild | 119 | ||||
-rw-r--r-- | app-sci/blas-atlas/files/atlas-gentoo.patch.bz2 | bin | 0 -> 3905 bytes | |||
-rw-r--r-- | app-sci/blas-atlas/files/c-ATLAS | 14 | ||||
-rw-r--r-- | app-sci/blas-atlas/files/c-threaded-ATLAS | 15 | ||||
-rw-r--r-- | app-sci/blas-atlas/files/digest-blas-atlas-3.4.2 | 1 | ||||
-rw-r--r-- | app-sci/blas-atlas/files/f77-ATLAS | 14 | ||||
-rw-r--r-- | app-sci/blas-atlas/files/f77-threaded-ATLAS | 14 | ||||
-rw-r--r-- | app-sci/blas-atlas/files/war | 25 | ||||
-rw-r--r-- | app-sci/blas-atlas/metadata.xml | 5 |
11 files changed, 221 insertions, 0 deletions
diff --git a/app-sci/blas-atlas/ChangeLog b/app-sci/blas-atlas/ChangeLog new file mode 100644 index 000000000000..82bac39b8a99 --- /dev/null +++ b/app-sci/blas-atlas/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-sci/blas-atlas +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/app-sci/blas-atlas/ChangeLog,v 1.1 2004/02/02 19:09:43 george Exp $ + +*blas-atlas-3.4.2.ebuild (02 Feb 2004) + + 02 Feb 2004; George Shapovalov <george@gentoo.org> blas-atlas-3.4.2.ebuild, Manifest, files/{atlas-gentoo.patch.bz2,c-ATLAS,c-threaded-ATLAS,digest-blas-atlas-3.4.2,f77-ATLAS,f77-threaded-ATLAS,war} : + initial release (#30453) + Automatically Tuned Linear Algebra Software BLAS implementation + ebuild submitted by Derek Dolney <dolney@astro.upenn.edu> + This version installs shared and static libs and provides virtual/blas + and will replace atlas now in dev-libs as a part of large blas reorganization (see bug) diff --git a/app-sci/blas-atlas/Manifest b/app-sci/blas-atlas/Manifest new file mode 100644 index 000000000000..556ea846d62e --- /dev/null +++ b/app-sci/blas-atlas/Manifest @@ -0,0 +1,2 @@ +MD5 dd2bbb314cd7587eb5bb2b3b395158bd blas-atlas-3.4.2.ebuild 2731 +MD5 e4430c91578bb055dad2d25c1d880cfa files/digest-blas-atlas-3.4.2 64 diff --git a/app-sci/blas-atlas/blas-atlas-3.4.2.ebuild b/app-sci/blas-atlas/blas-atlas-3.4.2.ebuild new file mode 100644 index 000000000000..d0f2e4e650d6 --- /dev/null +++ b/app-sci/blas-atlas/blas-atlas-3.4.2.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-sci/blas-atlas/blas-atlas-3.4.2.ebuild,v 1.1 2004/02/02 19:09:43 george Exp $ + +inherit eutils + +DESCRIPTION="Automatically Tuned Linear Algebra Software BLAS implementation" +HOMEPAGE="http://math-atlas.sourceforge.net/" +MY_PN=${PN/blas-/} +SRC_URI="mirror://sourceforge/math-atlas/${MY_PN}${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc" + +DEPEND="app-sci/blas-config + sys-devel/libtool" + +RDEPEND="" + +PROVIDE="virtual/blas" + +S=${WORKDIR}/ATLAS + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/atlas-gentoo.patch.bz2 + cp ${FILESDIR}/war ${S} + chmod a+x ${S}/war +} + +atlas_fail() { + eerror + eerror "ATLAS auto-config failed." + eerror "Please run 'interactive=1 emerge atlas-blas' to configure manually." + eerror + die "ATLAS auto-config failed." +} + +src_compile() { + # Libraries will be installed in ${RPATH}/atlas and ${RPATH}/threaded-atlas: + RPATH="${DESTTREE}/lib/blas" + + GCC="gcc" + + if [ -n "${interactive}" ] + then + echo "${interactive}" + make config CC="${GCC} -DUSE_LIBTOOL -DINTERACTIVE" || die + else + # Use ATLAS defaults for all questions: + (echo | make config CC="${GCC} -DUSE_LIBTOOL") || atlas_fail + fi + + TMPSTR=$(ls Make.Linux*) + ATLAS_ARCH=${TMPSTR#'Make.'} + + make install arch=${ATLAS_ARCH} || die + + make shared-strip arch=${ATLAS_ARCH} RPATH=${RPATH}/atlas || die + + # Build shared versions of the threaded libs. + # ATLAS only compiles threaded libs on multiprocessor machines. + if [ -d gentoo/libptf77blas.a ] + then + make ptshared-strip \ + arch=${ATLAS_ARCH} RPATH=${RPATH}/threaded-atlas || die + fi +} + +src_install () { + dodir ${RPATH}/atlas + cd ${S}/gentoo/libs + cp -P libatlas* ${D}/${DESTTREE}/lib + cp -P *blas* ${D}/${RPATH}/atlas #the rest really + + insinto ${RPATH} + doins ${FILESDIR}/c-ATLAS ${FILESDIR}/f77-ATLAS + + if [ -d ${S}/gentoo/threaded-libs ] + then + dodir ${RPATH}/threaded-atlas + cd ${S}/gentoo/threaded-libs + cp -P * ${D}/${RPATH}/threaded-atlas + doins ${FILESDIR}/c-threaded-ATLAS ${FILESDIR}/f77-threaded-ATLAS + fi + + insinto ${DESTTREE}/include/atlas + doins ${S}/include/cblas.h + + # These headers contain the architecture-specific optimizations determined + # by ATLAS. The atlas-lapack build is much shorter if they are available, + # so save them: + doins ${S}/include/${ATLAS_ARCH}/*.h + + #some docs + cd ${S} + dodoc README doc/{AtlasCredits.txt,ChangeLog} + use doc && dodoc doc/*.ps +} + +pkg_postinst() { + if [ -d ${RPATH}/threaded-atlas ] + then + ${DESTTREE}/bin/blas-config threaded-ATLAS + else + ${DESTTREE}/bin/blas-config ATLAS + fi + + einfo + einfo "Fortran users link using -lblas" + einfo + einfo "C users compile against the header /usr/include/atlas/cblas.h and" + einfo "link using -lcblas" + einfo +} diff --git a/app-sci/blas-atlas/files/atlas-gentoo.patch.bz2 b/app-sci/blas-atlas/files/atlas-gentoo.patch.bz2 Binary files differnew file mode 100644 index 000000000000..6b7582be32cc --- /dev/null +++ b/app-sci/blas-atlas/files/atlas-gentoo.patch.bz2 diff --git a/app-sci/blas-atlas/files/c-ATLAS b/app-sci/blas-atlas/files/c-ATLAS new file mode 100644 index 000000000000..06b980d00458 --- /dev/null +++ b/app-sci/blas-atlas/files/c-ATLAS @@ -0,0 +1,14 @@ +CFLAGS="-I/usr/include/atlas" +CLIBS="-L/usr/lib/blas/atlas -lcblas" + +setup() { + +einfo "/usr/lib/libcblas.so -> blas/atlas/libcblas.so" +ln -sf blas/atlas/libcblas.so /usr/lib/libcblas.so + +einfo "/usr/lib/libcblas.so.0 -> blas/atlas/libcblas.so.0" +ln -sf blas/atlas/libcblas.so.0 /usr/lib/libcblas.so.0 + +einfo "/usr/lib/libcblas.a -> blas/atlas/libcblas.a" +ln -sf blas/atlas/libcblas.a /usr/lib/libcblas.a +} diff --git a/app-sci/blas-atlas/files/c-threaded-ATLAS b/app-sci/blas-atlas/files/c-threaded-ATLAS new file mode 100644 index 000000000000..6973831fe81e --- /dev/null +++ b/app-sci/blas-atlas/files/c-threaded-ATLAS @@ -0,0 +1,15 @@ +CFLAGS="-I/usr/include/atlas" +CLIBS="-L/usr/lib/blas/threaded-atlas -lcblas" + +setup() { + +einfo "/usr/lib/libcblas.so -> blas/threaded-atlas/libcblas.so" +ln -sf blas/threaded-atlas/libcblas.so /usr/lib/libcblas.so + +einfo "/usr/lib/libcblas.so.0 -> blas/threaded-atlas/libcblas.so.0" +ln -sf blas/threaded-atlas/libcblas.so.0 /usr/lib/libcblas.so.0 + +einfo "/usr/lib/libcblas.a -> blas/threaded-atlas/libcblas.a" +ln -sf blas/threaded-atlas/libcblas.so.0 /usr/lib/libcblas.a + +} diff --git a/app-sci/blas-atlas/files/digest-blas-atlas-3.4.2 b/app-sci/blas-atlas/files/digest-blas-atlas-3.4.2 new file mode 100644 index 000000000000..73a4f857712c --- /dev/null +++ b/app-sci/blas-atlas/files/digest-blas-atlas-3.4.2 @@ -0,0 +1 @@ +MD5 db586b509821e0441cfd3b142b11c8ce atlas3.4.2.tar.bz2 1588614 diff --git a/app-sci/blas-atlas/files/f77-ATLAS b/app-sci/blas-atlas/files/f77-ATLAS new file mode 100644 index 000000000000..65603f1facd7 --- /dev/null +++ b/app-sci/blas-atlas/files/f77-ATLAS @@ -0,0 +1,14 @@ +F77LIBS="-L/usr/lib/blas/atlas -lblas" + +setup() { + +einfo "/usr/lib/libblas.so -> blas/atlas/libblas.so" +ln -sf blas/atlas/libblas.so /usr/lib/libblas.so + +einfo "/usr/lib/libblas.so.0 -> blas/atlas/libblas.so.0" +ln -sf blas/atlas/libblas.so.0 /usr/lib/libblas.so.0 + +einfo "/usr/lib/libblas.a -> blas/atlas/libblas.a" +ln -sf blas/atlas/libblas.a /usr/lib/libblas.a + +} diff --git a/app-sci/blas-atlas/files/f77-threaded-ATLAS b/app-sci/blas-atlas/files/f77-threaded-ATLAS new file mode 100644 index 000000000000..af9c73fb039a --- /dev/null +++ b/app-sci/blas-atlas/files/f77-threaded-ATLAS @@ -0,0 +1,14 @@ +F77LIBS="-L/usr/lib/blas/threaded-atlas -lblas" + +setup() { + +einfo "/usr/lib/libblas.so -> blas/threaded-atlas/libblas.so" +ln -sf blas/threaded-atlas/libblas.so /usr/lib/libblas.so + +einfo "/usr/lib/libblas.so.0 -> blas/threaded-atlas/libblas.so.0" +ln -sf blas/threaded-atlas/libblas.so.0 /usr/lib/libblas.so.0 + +einfo "/usr/lib/libblas.a -> blas/threaded-atlas/libblas.a" +ln -sf blas/threaded-atlas/libblas.a /usr/lib/libblas.a + +} diff --git a/app-sci/blas-atlas/files/war b/app-sci/blas-atlas/files/war new file mode 100644 index 000000000000..1780efca24e7 --- /dev/null +++ b/app-sci/blas-atlas/files/war @@ -0,0 +1,25 @@ +#! /bin/bash +# +# war -- wrapper for the archiver +# +# Executed by ATLAS build as: +# full_path/war ARCHIVER ARFLAGS LIBNAME.a OBJS.lo + +TOPDIR=$(echo $0 | sed 's/\(.*\)\/.*/\1/') +PWD=$(pwd) + +ARCHIVER=$1 +LIBRARY=$(echo $3 | sed 's/.*\/\(.*\)/\1/') +OBJ_DIR=${TOPDIR}/gentoo/$LIBRARY + +if [ ! -x $OBJ_DIR ]; then mkdir -p $OBJ_DIR; fi + +$ARCHIVER $@ + +shift 3 +for obj in $@ ; do + lobj=$(echo $obj | sed 's/\.o/\.lo/') + ln -sf ${PWD}/$obj ${OBJ_DIR}/$obj + ln -sf ${PWD}/$lobj ${OBJ_DIR}/$lobj +done + diff --git a/app-sci/blas-atlas/metadata.xml b/app-sci/blas-atlas/metadata.xml new file mode 100644 index 000000000000..b229aec85b8f --- /dev/null +++ b/app-sci/blas-atlas/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +</pkgmetadata> |