public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sebastien Fabbro" <bicatali@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/cblas-reference/
Date: Mon, 22 Aug 2011 19:26:25 +0000 (UTC)	[thread overview]
Message-ID: <386ffc59fdfa2c360140d6ba6bfde937fead9d8e.bicatali@gentoo> (raw)

commit:     386ffc59fdfa2c360140d6ba6bfde937fead9d8e
Author:     Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Mon Aug 22 18:55:38 2011 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Mon Aug 22 18:55:38 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=386ffc59

added cblas-reference

---
 sci-libs/cblas-reference/ChangeLog                 |  187 ++++++++++++++++++++
 .../cblas-reference-20110218.ebuild                |  105 +++++++++++
 sci-libs/cblas-reference/metadata.xml              |   15 ++
 3 files changed, 307 insertions(+), 0 deletions(-)

diff --git a/sci-libs/cblas-reference/ChangeLog b/sci-libs/cblas-reference/ChangeLog
new file mode 100644
index 0000000..411a0c1
--- /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/cblas-reference-20110218.ebuild b/sci-libs/cblas-reference/cblas-reference-20110218.ebuild
new file mode 100644
index 0000000..9bdb362
--- /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 0000000..7d4380e
--- /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>



             reply	other threads:[~2011-08-22 19:26 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-22 19:26 Sebastien Fabbro [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-02-23  9:18 [gentoo-commits] proj/sci:master commit in: sci-libs/cblas-reference/ Justin Lecher
2012-02-24  0:58 Francois Bissey
2012-07-12 20:43 Sebastien Fabbro
2012-12-13  0:10 Sebastien Fabbro
2013-12-25 11:52 Justin Lecher
2013-12-28  8:43 Justin Lecher
2014-01-18  7:38 Justin Lecher
2014-07-01  0:28 Francois Bissey
2014-07-02 22:11 Francois Bissey
2015-11-30 18:33 Justin Lecher
2015-12-01  9:37 Justin Lecher
2015-12-03  9:54 Justin Lecher
2015-12-03  9:55 Justin Lecher
2015-12-08 14:52 Marius Brehler
2016-10-12  6:30 Marius Brehler
2017-02-03 10:25 Marius Brehler
2017-02-19 14:45 Justin Lecher
2018-11-01 17:59 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=386ffc59fdfa2c360140d6ba6bfde937fead9d8e.bicatali@gentoo \
    --to=bicatali@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox