summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-libs/cblas-reference/ChangeLog12
-rw-r--r--sci-libs/cblas-reference/Manifest18
-rw-r--r--sci-libs/cblas-reference/cblas-reference-20030223.ebuild67
-rw-r--r--sci-libs/cblas-reference/files/c-reference14
-rw-r--r--sci-libs/cblas-reference/files/cblas-gentoo.patch31
-rw-r--r--sci-libs/cblas-reference/files/digest-cblas-reference-200302233
-rw-r--r--sci-libs/cblas-reference/metadata.xml5
7 files changed, 150 insertions, 0 deletions
diff --git a/sci-libs/cblas-reference/ChangeLog b/sci-libs/cblas-reference/ChangeLog
new file mode 100644
index 000000000000..8090064b1c3d
--- /dev/null
+++ b/sci-libs/cblas-reference/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for sci-libs/cblas-reference
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/cblas-reference/ChangeLog,v 1.1 2006/03/25 13:07:35 markusle Exp $
+
+*cblas-reference-20030223 (25 Mar 2006)
+
+ 25 Mar 2006; Markus Dittrich <markusle@gentoo.org>
+ +files/c-reference, +files/cblas-gentoo.patch, +metadata.xml,
+ +cblas-reference-20030223.ebuild:
+ Initial import (fixes bug #122958). Many thanks to Adam Piatyszek
+ <ediap@et.put.poznan.pl> for his ebuild and patches.
+
diff --git a/sci-libs/cblas-reference/Manifest b/sci-libs/cblas-reference/Manifest
new file mode 100644
index 000000000000..f4ab6ecd15dc
--- /dev/null
+++ b/sci-libs/cblas-reference/Manifest
@@ -0,0 +1,18 @@
+MD5 92989a558c0ac40d9a565dfb5e75ae0b ChangeLog 444
+RMD160 bc14a0c6d7caf212098d08d6fb3028942c8e0bde ChangeLog 444
+SHA256 69f0c0ed062504c47c12b32ca6dceafc9abb4f46528992ed39fa58a1f6f15e32 ChangeLog 444
+MD5 3e9406b53f997c445e7e79598ad7501f cblas-reference-20030223.ebuild 1652
+RMD160 7bc57e84da5984389af7090cb0719edb8045e4e9 cblas-reference-20030223.ebuild 1652
+SHA256 a3106c8da420c0895b56af3aed3e61e3fe02108547416415a510c4c2e4054671 cblas-reference-20030223.ebuild 1652
+MD5 5c804544801ed65c3a5e8a783e1ab345 files/c-reference 562
+RMD160 3451da544dca11ecce0901e4b2928b28a14bf33b files/c-reference 562
+SHA256 bedb2aadccbc3d27c453395fdb3b6d6dd780b37793205dd7520c4c57dd9998af files/c-reference 562
+MD5 f8daaa79dae0bb8839299cda34628ff1 files/cblas-gentoo.patch 687
+RMD160 14e3ca4538042c63546d541d7298bc0e79bf7cb7 files/cblas-gentoo.patch 687
+SHA256 86fa7726411a32a231bf17ce3dd3d47410b013c4b63a46e255c77dafd211aa5d files/cblas-gentoo.patch 687
+MD5 961baa7d756d594d303cb43c47e0aee2 files/digest-cblas-reference-20030223 208
+RMD160 5e8239ac5c04544a04f8ec6b1a15e2d5f2d630e6 files/digest-cblas-reference-20030223 208
+SHA256 f0caa7a78f2290eb3c627ec8fa5ea9c6cb5eb5b0b5db9e982ff1dfcb66f0a204 files/digest-cblas-reference-20030223 208
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 metadata.xml 156
+SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900 metadata.xml 156
diff --git a/sci-libs/cblas-reference/cblas-reference-20030223.ebuild b/sci-libs/cblas-reference/cblas-reference-20030223.ebuild
new file mode 100644
index 000000000000..86030138720e
--- /dev/null
+++ b/sci-libs/cblas-reference/cblas-reference-20030223.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/cblas-reference/cblas-reference-20030223.ebuild,v 1.1 2006/03/25 13:07:35 markusle Exp $
+
+inherit eutils fortran multilib
+
+MyPN="${PN/-reference/}"
+
+DESCRIPTION="C interface to the BLAS"
+LICENSE="public-domain"
+HOMEPAGE="http://www.netlib.org/blas/"
+SRC_URI="http://www.netlib.org/blas/blast-forum/${MyPN}.tgz"
+
+SLOT="0"
+IUSE=""
+KEYWORDS="~x86"
+
+DEPEND="sys-devel/libtool
+ virtual/blas
+ sci-libs/blas-config"
+
+FORTRAN="gfortran g77 ifc"
+
+S="${WORKDIR}/CBLAS"
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/cblas-gentoo.patch
+}
+
+src_compile() {
+ TOP_PATH="${DESTTREE}/$(get_libdir)/blas"
+ RPATH="${TOP_PATH}/cblas-reference"
+ cd "${S}"/src
+
+ make all FC="libtool --mode=compile --tag=F77 ${FORTRANC}" \
+ FFLAGS="${FFLAGS}" CC="libtool --mode=compile --tag=CC gcc" \
+ CFLAGS="${CFLAGS} -DADD_" || die "make failed"
+
+ libtool --mode=link --tag=F77 ${FORTRANC} -o libcblas.la *.lo \
+ -rpath "${RPATH}" || die "failed to link static libraries"
+ libtool --mode=link --tag=F77 ${FORTRANC} -shared *.lo \
+ -Wl,-soname -Wl,libcblas.so.0 -o libcblas.so.0.0.0 || \
+ die "failed to link shared libraries"
+}
+
+src_install() {
+ dodir "${RPATH}" || die "failed to create lib directory"
+
+ cd "${S}"/src
+
+ libtool --mode=install install -s libcblas.la "${D}/${RPATH}"\
+ || die "failed to install static library"
+
+ insinto "${DESTTREE}"/include/${PN}
+ doins cblas_f77.h cblas.h || die "failed to install header files"
+
+ dodoc "${S}"/README || die "failed to install docs"
+
+ insinto "${TOP_PATH}"
+ doins "${FILESDIR}"/c-reference || \
+ die "failed to install blas-config file"
+}
+
+pkg_postinst() {
+ blas-config c-reference
+}
diff --git a/sci-libs/cblas-reference/files/c-reference b/sci-libs/cblas-reference/files/c-reference
new file mode 100644
index 000000000000..8657b8304390
--- /dev/null
+++ b/sci-libs/cblas-reference/files/c-reference
@@ -0,0 +1,14 @@
+CFLAGS="-I/usr/include/cblas-reference"
+CLIBS="-L/usr/$(get_libdir)/blas/cblas-reference -lcblas"
+
+setup() {
+MY_LIBDIR="$(get_libdir)"
+einfo "/usr/${MY_LIBDIR}/libcblas.so -> cblas-reference/libcblas.so"
+ln -sf blas/cblas-reference/libcblas.so /usr/${MY_LIBDIR}/libcblas.so
+
+einfo "/usr/${MY_LIBDIR}/libcblas.so.0 -> cblas-reference/libcblas.so.0"
+ln -sf blas/cblas-reference/libcblas.so.0 /usr/${MY_LIBDIR}/libcblas.so.0
+
+einfo "/usr/${MY_LIBDIR}/libcblas.a -> cblas-reference/libcblas.a"
+ln -sf blas/cblas-reference/libcblas.a /usr/${MY_LIBDIR}/libcblas.a
+}
diff --git a/sci-libs/cblas-reference/files/cblas-gentoo.patch b/sci-libs/cblas-reference/files/cblas-gentoo.patch
new file mode 100644
index 000000000000..19cda25a7be3
--- /dev/null
+++ b/sci-libs/cblas-reference/files/cblas-gentoo.patch
@@ -0,0 +1,31 @@
+--- CBLAS/src/Makefile 2006-02-15 15:35:36.000000000 +0100
++++ CBLAS-gentoo/src/Makefile 2006-02-15 15:36:39.000000000 +0100
+@@ -1,8 +1,8 @@
+ # This Makefile compiles the CBLAS routines
+ #
+-dlvl = ../.
+-include $(dlvl)/Makefile.in
+-INC = -I$(CBDIR)/src
++#dlvl = ../.
++#include $(dlvl)/Makefile.in
++#INC = -I$(CBDIR)/src
+
+ #
+ # Erase all object and archive files
+@@ -232,13 +232,13 @@
+
+ # All levels and precisions
+ all: $(alev)
+- $(ARCH) $(ARCHFLAGS) $(CBLIB) $(alev)
+- $(RANLIB) $(CBLIB)
++# $(ARCH) $(ARCHFLAGS) $(CBLIB) $(alev)
++# $(RANLIB) $(CBLIB)
+
+
+ .SUFFIXES: .o .c .f
+
+ .c.o:
+- $(CC) $(CFLAGS) $(INC) -c $*.c
++ $(CC) $(CFLAGS) -c $*.c
+ .f.o:
+ $(FC) $(FFLAGS) -c $*.f
diff --git a/sci-libs/cblas-reference/files/digest-cblas-reference-20030223 b/sci-libs/cblas-reference/files/digest-cblas-reference-20030223
new file mode 100644
index 000000000000..823a069b1666
--- /dev/null
+++ b/sci-libs/cblas-reference/files/digest-cblas-reference-20030223
@@ -0,0 +1,3 @@
+MD5 716329646ac933592a7cbdbeae9d3d06 cblas.tgz 197694
+RMD160 77bd5111659f55540c72f9fcd9277d97bd1ea33b cblas.tgz 197694
+SHA256 9b49d7177fda62b6141bf2ca29e475e86f0b12d8f72e0b944058d02b439dd52a cblas.tgz 197694
diff --git a/sci-libs/cblas-reference/metadata.xml b/sci-libs/cblas-reference/metadata.xml
new file mode 100644
index 000000000000..b229aec85b8f
--- /dev/null
+++ b/sci-libs/cblas-reference/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>