aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-libs/cblas-reference/ChangeLog187
-rw-r--r--sci-libs/cblas-reference/Manifest4
-rw-r--r--sci-libs/cblas-reference/cblas-reference-20110218.ebuild105
-rw-r--r--sci-libs/cblas-reference/metadata.xml15
4 files changed, 311 insertions, 0 deletions
diff --git a/sci-libs/cblas-reference/ChangeLog b/sci-libs/cblas-reference/ChangeLog
new file mode 100644
index 000000000..411a0c1c6
--- /dev/null
+++ b/sci-libs/cblas-reference/ChangeLog
@@ -0,0 +1,187 @@
+# ChangeLog for sci-libs/cblas-reference
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/cblas-reference/ChangeLog,v 1.33 2010/03/07 19:14:51 jlec Exp $
+
+*cblas-reference-20110218 (22 Aug 2011)
+
+ 22 Aug 2011; Sébastien Fabbro <bicatali@gentoo.org>
+ +cblas-reference-20110218.ebuild, +metadata.xml:
+ Imported from bicatali overlay
+
+ 24 Mar 2011; Sébastien Fabbro <bicatali@gentoo.org>
+ -files/cblas-reference-20030223-autotools.patch,
+ cblas-reference-20110218.ebuild:
+ added missing include file. switch to eapi4
+
+ 23 Feb 2011; Sébastien Fabbro <bicatali@gentoo.org>
+ cblas-reference-20110218.ebuild:
+ Switched to alternatives-2 framework
+
+ 24 Nov 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ cblas-reference-20030223-r6.ebuild,
+ files/cblas-reference-20030223-autotools.patch:
+ Changed library name to refcblas
+
+*cblas-reference-20030223-r6 (09 Nov 2010)
+
+ 09 Nov 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ +cblas-reference-20030223-r6.ebuild,
+ +files/cblas-reference-20030223-autotools.patch, +metadata.xml:
+ Install files in libdir. pkg-config files fixes. autotools patch upgrade.
+ eselect linking only links pkg-config file and cblas.h
+
+*cblas-reference-20030223-r5 (07 Mar 2010)
+
+ 07 Mar 2010; Justin Lecher (jlec) <jlec@gentoo.org>
+ +cblas-reference-20030223-r5.ebuild:
+ Moved to EAPI=3 for PREFIX support, imported prefix patches from overlay,
+ keyworded {amd64,x86}-linux
+
+ 21 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ cblas-reference-20030223-r4.ebuild:
+ Removed pkg-config in RDEPEND (see bug #217278)
+
+ 19 Dec 2007; Justin Bronder <jsbronder@gentoo.org>
+ cblas-reference-20030223-r4.ebuild:
+ Move ESELECT_PROF so binary packages work.
+
+ 12 Nov 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ files/cblas-reference-20030223-autotool.patch,
+ cblas-reference-20030223-r4.ebuild:
+ Changed autotools version to 2.59 on patch, and added acx_blas.m4. Use
+ pkg-config system for blas dependencies.
+
+ 22 Oct 2007; Jeroen Roovers <jer@gentoo.org>
+ cblas-reference-20030223-r4.ebuild:
+ Stable for HPPA (USE=lapack).
+
+ 11 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ cblas-reference-20030223-r4.ebuild:
+ fixed lib->get_libdir for eselect bug workaround
+
+ 10 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org> -files/c-reference,
+ -files/cblas-gentoo.patch, -files/eselect-reference,
+ -cblas-reference-20030223-r1.ebuild, -cblas-reference-20030223-r3.ebuild,
+ cblas-reference-20030223-r4.ebuild:
+ Removed old versions, workaround for eselect bug #189942.
+
+ 08 Oct 2007; Markus Rothe <corsair@gentoo.org>
+ cblas-reference-20030223-r4.ebuild:
+ Stable on ppc64; bug #189732
+
+ 28 Sep 2007; nixnut <nixnut@gentoo.org>
+ cblas-reference-20030223-r4.ebuild:
+ Stable on ppc wrt bug 189732
+
+ 26 Sep 2007; Raúl Porcel <armin76@gentoo.org>
+ cblas-reference-20030223-r4.ebuild:
+ alpha stable wrt #189732
+
+ 13 Sep 2007; Christian Faulhammer <opfer@gentoo.org>
+ cblas-reference-20030223-r4.ebuild:
+ stable x86, bug 189732
+
+ 01 Sep 2007; Christoph Mende <angelos@gentoo.org>
+ cblas-reference-20030223-r4.ebuild:
+ Stable on amd64 wrt bug #189732
+
+ 21 Aug 2007; Ferris McCormick <fmccor@gentoo.org>
+ cblas-reference-20030223-r4.ebuild:
+ Sparc stable --- Bug #189732 --- runs tests as advertised.
+
+ 21 Aug 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ cblas-reference-20030223-r1.ebuild, cblas-reference-20030223-r3.ebuild:
+ Fixed patch location for older versions
+
+*cblas-reference-20030223-r4 (21 Aug 2007)
+
+ 21 Aug 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ files/cblas-reference-20030223-autotool.patch,
+ +files/eselect.cblas.reference, metadata.xml,
+ +cblas-reference-20030223-r4.ebuild:
+ Added a new autotool patch which add a working src_test, a
+ pkg-config file cblas.pc. Now installs two examples, eselect file to
+ link the include file and the pkg-config file. General clean-up. Also
+ added longdescription in metadata.xml.
+
+ 25 Jun 2007; Raúl Porcel <armin76@gentoo.org>
+ cblas-reference-20030223-r3.ebuild:
+ Add ~alpha wrt #159002
+
+ 07 Jun 2007; Joe Peterson <lavajoe@gentoo.org>
+ cblas-reference-20030223-r3.ebuild:
+ Add ~x86-fbsd keyword
+
+ 08 Jan 2007; Danny van Dyk <kugelfang@gentoo.org>
+ -cblas-reference-20030223.ebuild, -cblas-reference-20030223-r2.ebuild:
+ QA: Removed unused versions.
+
+ 01 Nov 2006; Donnie Berkholz <dberkholz@gentoo.org>; ChangeLog:
+ Update for my nick change spyderous -> dberkholz.
+
+ 26 Oct 2006; Joshua Jackson <tsunam@gentoo.org>
+ cblas-reference-20030223-r1.ebuild:
+ Stable x86; bug #137033
+
+*cblas-reference-20030223-r3 (11 Oct 2006)
+
+ 11 Oct 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ files/cblas-reference-20030223-autotool.patch,
+ +cblas-reference-20030223-r3.ebuild:
+ (#150763) Fix patch and install cblas.h (Sebastien Fabbro).
+
+ 06 Oct 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ files/cblas-reference-20030223-autotool.patch:
+ Revert accidental commit; cblas.h doesn't yet install properly.
+
+ 11 Sep 2006; Ferris McCormick <fmccor@gentoo.org>
+ cblas-reference-20030223-r2.ebuild:
+ Add ~sparc keyword. Seems fine, and needed for testing Bug #147159.
+
+ 25 Aug 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ +files/eselect-reference:
+ Add eselect symlink maps, reported by Markus Dittrich.
+
+ 17 Aug 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ cblas-reference-20030223-r2.ebuild:
+ Note that configuration now uses eselect rather than blas-config.
+
+*cblas-reference-20030223-r2 (03 Jul 2006)
+
+ 03 Jul 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ +cblas-reference-20030223-r2.ebuild:
+ Bumps to switch to new eselect modules.
+
+ 19 Jun 2006; Markus Rothe <corsair@gentoo.org>
+ cblas-reference-20030223-r1.ebuild:
+ Added ~ppc64; bug #137033
+
+*cblas-reference-20030223-r1 (29 May 2006)
+
+ 29 May 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ +files/cblas-reference-20030223-autotool.patch,
+ +cblas-reference-20030223-r1.ebuild:
+ Bump to autotool the package, which makes the build work much better in
+ parallel and with gcc4.
+
+ 17 May 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ cblas-reference-20030223.ebuild:
+ Keyword ~ppc.
+
+ 10 May 2006; Danny van Dyk <kugelfang@gentoo.org>
+ cblas-reference-20030223.ebuild:
+ Marked ~amd64.
+
+ 27 Mar 2006; Markus Dittrich <markusle@gentoo.org> files/c-reference,
+ cblas-reference-20030223.ebuild:
+ Moved install directory for the libraries from blas/cblas-reference
+ to blas/reference.
+
+*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 Piątyszek
+ <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 000000000..45401cb6a
--- /dev/null
+++ b/sci-libs/cblas-reference/Manifest
@@ -0,0 +1,4 @@
+DIST cblas-reference-20110218.tgz 197468 RMD160 ab908605311ad5dfe280c5fb0e6a1e94156b7a04 SHA1 d6970cf52592ef67674a61c78bbd055a4e9d4680 SHA256 0f6354fd67fabd909baf57ced2ef84e962db58fae126e4f41b21dd4fec60a2a3
+EBUILD cblas-reference-20110218.ebuild 2414 RMD160 e15b7dc428ba9de067282726b713599d06c33ffc SHA1 100d95fbc5aedde73b8b03e69b0b05feb8cf2d4b SHA256 19f4e1f2ac29c9cf6d4a77c9f2afad5308c13b0d94847fc72188adf46c8a6a27
+MISC ChangeLog 6624 RMD160 0d7fa08716f83149dc18005871dd6b1b094b273d SHA1 7da65bcee3e62e2f838eef8fdb52bf48a1d15233 SHA256 31b834eb10ab4312392b935f9d39b8a9ecbe378792ae8d37fc22332234e1b460
+MISC metadata.xml 747 RMD160 93e7287d9fb76504fcffa359adca454d42518e33 SHA1 b4fb783c4233b29cf30a9576905d9943f6d6ed0c SHA256 d184bbc83e471aa894863f9350d4c13a096d22c513e2a4de53d9075c5e4d9fa8
diff --git a/sci-libs/cblas-reference/cblas-reference-20110218.ebuild b/sci-libs/cblas-reference/cblas-reference-20110218.ebuild
new file mode 100644
index 000000000..9bdb362b7
--- /dev/null
+++ b/sci-libs/cblas-reference/cblas-reference-20110218.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit eutils alternatives-2 flag-o-matic toolchain-funcs
+
+MYPN="${PN/-reference/}"
+
+DESCRIPTION="C wrapper interface to the F77 reference BLAS implementation"
+LICENSE="public-domain"
+HOMEPAGE="http://www.netlib.org/blas/"
+SRC_URI="http://www.netlib.org/blas/blast-forum/${MYPN}.tgz -> ${P}.tgz"
+
+SLOT="0"
+IUSE="static-libs"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+
+RDEPEND="virtual/blas
+ virtual/fortran"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/CBLAS"
+
+LIBNAME=refcblas
+LIBVER=3
+
+make_shared_lib() {
+ local libstatic=${1}
+ local soname=$(basename "${1%.a}").so.${LIBVER}
+ shift
+ einfo "Making ${soname}"
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} \
+ -shared -Wl,-soname="${soname}" \
+ -Wl,--whole-archive "${libstatic}" -Wl,--no-whole-archive \
+ "$@" -o $(dirname "${libstatic}")/"${soname}" || die "${soname} failed"
+ ln -s "${soname}" $(dirname "${libstatic}")/"${soname%.*}"
+}
+
+src_prepare() {
+ find . -name Makefile -exec sed -i \
+ -e 's:make:$(MAKE):g' '{}' \;
+ append-cflags -DADD_
+ cat > Makefile.in <<-EOF
+ BLLIB=$(pkg-config --libs blas)
+ FC=$(tc-getFC)
+ CC=$(tc-getCC)
+ CBLIB=../lib/lib${LIBNAME}.a
+ LOADER=\$(FC)
+ ARCH=$(tc-getAR)
+ ARCHFLAGS=cr
+ RANLIB=$(tc-getRANLIB)
+ EOF
+}
+
+src_compile() {
+ emake \
+ FFLAGS="${FFLAGS} -fPIC" \
+ CFLAGS="${CFLAGS} -fPIC" \
+ CBLIB=../lib/lib${LIBNAME}.a \
+ alllib
+ cd lib
+ make_shared_lib lib${LIBNAME}.a $(pkg-config --libs blas)
+ cd "${S}"
+ if use static-libs; then
+ emake clean
+ emake alllib
+ fi
+}
+
+src_test() {
+ cd testing
+ emake
+ emake run
+}
+
+src_install() {
+ dolib.so lib/lib${LIBNAME}.so*
+ use static-libs && dolib.a lib/lib${LIBNAME}.a
+ insinto /usr/include/cblas
+ doins include/cblas.h
+ cat <<-EOF > ${LIBNAME}.pc
+ prefix=${EPREFIX}/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${LIBNAME}
+ Description: ${DESCRIPTION}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${LIBNAME}
+ Private: -lm
+ Cflags: -I\${includedir}/cblas
+ Requires: blas
+ EOF
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${LIBNAME}.pc
+ dodoc README
+ insinto /usr/share/doc/${PF}
+ doins examples/*.c
+ alternatives_for cblas reference 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc ${LIBNAME}.pc \
+ /usr/include/cblas.h cblas/cblas.h
+}
diff --git a/sci-libs/cblas-reference/metadata.xml b/sci-libs/cblas-reference/metadata.xml
new file mode 100644
index 000000000..7d4380e58
--- /dev/null
+++ b/sci-libs/cblas-reference/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>
+<longdescription lang="en">
+ The BLAS (Basic Linear Algebra Subprograms) are high quality "building
+ block" routines for performing basic vector and matrix operations. Level 1
+ BLAS do vector-vector operations, Level 2 BLAS do matrix-vector operations,
+ and Level 3 BLAS do matrix-matrix operations. Because the BLAS are
+ efficient, portable, and widely available, they're commonly used in the
+ development of high quality linear algebra software, LAPACK for
+ example. This packages implements the reference C library as a wrapper
+ to the FORTRAN 77 BLAS library.
+</longdescription>
+</pkgmetadata>