summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2007-08-21 15:45:30 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2007-08-21 15:45:30 +0000
commit1b8b79baa441b4703cdd86962a1fcbcb23b85699 (patch)
tree90797e35653e66d89bdbcc4d7ea2b25232e45a17 /sci-libs/cblas-reference
parentmajor cleanup with new sources and new style pkg-config / virtuals (diff)
downloadgentoo-2-1b8b79baa441b4703cdd86962a1fcbcb23b85699.tar.gz
gentoo-2-1b8b79baa441b4703cdd86962a1fcbcb23b85699.tar.bz2
gentoo-2-1b8b79baa441b4703cdd86962a1fcbcb23b85699.zip
major cleanup and new style pkg-config / virtuals
(Portage version: 2.1.2.11)
Diffstat (limited to 'sci-libs/cblas-reference')
-rw-r--r--sci-libs/cblas-reference/ChangeLog13
-rw-r--r--sci-libs/cblas-reference/cblas-reference-20030223-r4.ebuild52
-rw-r--r--sci-libs/cblas-reference/files/cblas-reference-20030223-autotool.patch190
-rw-r--r--sci-libs/cblas-reference/files/digest-cblas-reference-20030223-r43
-rw-r--r--sci-libs/cblas-reference/files/eselect.cblas.reference5
-rw-r--r--sci-libs/cblas-reference/metadata.xml10
6 files changed, 163 insertions, 110 deletions
diff --git a/sci-libs/cblas-reference/ChangeLog b/sci-libs/cblas-reference/ChangeLog
index d7b4259486df..346793ec3332 100644
--- a/sci-libs/cblas-reference/ChangeLog
+++ b/sci-libs/cblas-reference/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for sci-libs/cblas-reference
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/cblas-reference/ChangeLog,v 1.17 2007/06/25 17:52:05 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/cblas-reference/ChangeLog,v 1.18 2007/08/21 15:45:30 bicatali Exp $
+
+*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:
diff --git a/sci-libs/cblas-reference/cblas-reference-20030223-r4.ebuild b/sci-libs/cblas-reference/cblas-reference-20030223-r4.ebuild
new file mode 100644
index 000000000000..ee33ed3b128d
--- /dev/null
+++ b/sci-libs/cblas-reference/cblas-reference-20030223-r4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2007 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-r4.ebuild,v 1.1 2007/08/21 15:45:30 bicatali Exp $
+
+inherit autotools eutils fortran multilib
+
+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"
+
+SLOT="0"
+IUSE=""
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+
+DEPEND="virtual/blas
+ dev-util/pkgconfig
+ app-admin/eselect-cblas"
+
+FORTRAN="gfortran g77 ifc"
+
+S="${WORKDIR}/CBLAS"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-autotool.patch
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ --libdir=/usr/$(get_libdir)/blas/reference \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README || die "failed to install docs"
+ insinto /usr/share/doc/${PF}
+ doins cblas_example*c
+ eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.reference reference
+}
+
+pkg_postinst() {
+ [[ -z "$(eselect cblas show)" ]] && eselect cblas set reference
+ elog "To use CBLAS reference implementation, you have to issue (as root):"
+ elog "\t eselect cblas set reference"
+}
diff --git a/sci-libs/cblas-reference/files/cblas-reference-20030223-autotool.patch b/sci-libs/cblas-reference/files/cblas-reference-20030223-autotool.patch
index 0e441e5ce2d1..268194aa420c 100644
--- a/sci-libs/cblas-reference/files/cblas-reference-20030223-autotool.patch
+++ b/sci-libs/cblas-reference/files/cblas-reference-20030223-autotool.patch
@@ -1,114 +1,84 @@
-diff -Nur CBLAS.orig/configure.ac CBLAS/configure.ac
---- CBLAS.orig/configure.ac 1970-01-01 01:00:00.000000000 +0100
-+++ CBLAS/configure.ac 2006-10-10 17:20:23.000000000 +0100
-@@ -0,0 +1,65 @@
-+# -*- Autoconf -*-
-+# Process this file with autoconf to produce a configure script.
-+
-+AC_PREREQ(2.59)
+--- configure.ac 1970-01-01 01:00:00.000000000 +0100
++++ configure.ac 2007-08-16 11:32:24.000000000 +0100
+@@ -0,0 +1,30 @@
++AC_PREREQ(2.61)
+AC_INIT(cblas, 20030223, lapack@cs.utk.edu)
+AC_CONFIG_SRCDIR([cblas_example2.c])
+AC_CONFIG_HEADER([config.h])
+AM_INIT_AUTOMAKE([foreign])
+
-+# Checks for programs.
++AC_LANG(C)
+AC_PROG_CC
+AC_PROG_F77
-+AC_PROG_LIBTOOL
-+AC_PROG_MAKE_SET
-+
-+# Needed when mixing Fortran and C in the same program/library
+AC_F77_LIBRARY_LDFLAGS
++dnl ACX_F77_CMAIN_FFLAGS
++dnl FFLAGS=$FFLAGS $F77_CMAIN_FFLAGS
++AC_PROG_LIBTOOL
+
-+AC_ARG_ENABLE(single-real, AS_HELP_STRING([--disable-single-real],
-+ [Enable single real precision (default: enabled)]),
-+ [S=$enableval], [S=yes SINGLE=yes])
-+
-+AC_ARG_ENABLE(double-real, AS_HELP_STRING([--disable-double-real],
-+ [Enable double real precision (default: enabled)]),
-+ [D=$enableval], [D=yes])
-+
-+AC_ARG_ENABLE(single-complex, AS_HELP_STRING([--disable-single-complex],
-+ [Enable single complex precision (default: enabled)]),
-+ [C=$enableval], [C=yes SINGLE=yes])
-+
-+AC_ARG_ENABLE(double-complex, AS_HELP_STRING([--disable-double-complex],
-+ [Enable double complex precision (default: enabled)]),
-+ [Z=$enableval], [Z=yes])
-+
-+AC_ARG_ENABLE(examples, AS_HELP_STRING([--enable-examples],
-+ [Build example programs (default: disabled)]),
-+ [EXAMPLES=$enableval], [EXAMPLES=no])
-+
-+AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests],
-+ [Build test programs (default: disabled)]),
-+ [DO_TEST=$enableval], [DO_TEST=no])
++AC_F77_FUNC(sgemm)
+
-+if test "x$S" = "xno" \
-+ && test "x$D" = "xno" \
-+ && test "x$C" = "xno" \
-+ && test "x$Z" = "xno"; then
-+ AC_MSG_ERROR([You must enable at least one precision!])
++PKG_PROG_PKG_CONFIG
++if test -n "$PKG_CONFIG"; then
++ PKG_CHECK_MODULES([BLAS], [blas])
++else
++ AC_CHECK_LIB(blas, $sgemm)
++ BLAS_LIBS=-lblas
++ AC_SUBST(BLAS_LIBS)
+fi
+
-+if test "x$DO_TEST" = "xyes"; then
-+ TESTING=testing
-+fi
-+
-+AM_CONDITIONAL([SINGLE], [test "x$SINGLE" = "xyes"])
-+AM_CONDITIONAL([S], [test "x$S" = "xyes"])
-+AM_CONDITIONAL([D], [test "x$D" = "xyes"])
-+AM_CONDITIONAL([C], [test "x$C" = "xyes"])
-+AM_CONDITIONAL([Z], [test "x$Z" = "xyes"])
-+AM_CONDITIONAL([EXAMPLES], [test "x$EXAMPLES" = "xyes"])
-+AC_SUBST(TESTING)
-+
+AC_CONFIG_FILES([Makefile
+ src/Makefile
-+ testing/Makefile])
++ testing/Makefile
++ cblas.pc])
+AC_OUTPUT
-diff -Nur CBLAS.orig/Makefile.am CBLAS/Makefile.am
---- CBLAS.orig/Makefile.am 1970-01-01 01:00:00.000000000 +0100
-+++ CBLAS/Makefile.am 2006-10-10 17:24:37.000000000 +0100
-@@ -0,0 +1,15 @@
-+SUBDIRS = src $(TESTING)
-+
-+if EXAMPLES
-+noinst_PROGRAMS = \
-+ example1 \
-+ example2
-+endif
-+
-+LDADD = -lblas src/libcblas.la
-+AM_CFLAGS = -I$(top_srcdir)/src -DADD_
-+
-+example1_SOURCES = cblas_example1.c
-+example2_SOURCES = cblas_example2.c
-+
-+EXTRA_DIST = README
-diff -Nur CBLAS.orig/src/Makefile.am CBLAS/src/Makefile.am
---- CBLAS.orig/src/Makefile.am 1970-01-01 01:00:00.000000000 +0100
-+++ CBLAS/src/Makefile.am 2006-10-10 17:49:31.000000000 +0100
-@@ -0,0 +1,239 @@
+--- Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ Makefile.am 2007-08-14 11:39:12.000000000 +0100
+@@ -0,0 +1,8 @@
++SUBDIRS = src testing
++
++pkgconfigdir = $(libdir)
++pkgconfig_DATA = cblas.pc
++
++EXTRA = cblas.pc
++
++
+--- cblas.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ cblas.pc.in 2007-08-17 11:38:46.000000000 +0100
+@@ -0,0 +1,13 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: @PACKAGE_NAME@
++Description: Basic Linear Algebra Subprograms C reference wrapper
++Version: @PACKAGE_VERSION@
++Requires: blas
++URL: http://www.netlib.org/blas/
++Libs: -lcblas
++Libs.private: @FLIBS@
++Cflags: -I${includedir}
+--- src/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ src/Makefile.am 2007-08-16 12:21:02.000000000 +0100
+@@ -0,0 +1,232 @@
+lib_LTLIBRARIES = libcblas.la
++
++pkgincludedir = $(includedir)/cblas
+pkginclude_HEADERS = cblas.h
+
-+AM_CFLAGS = -DADD_
++AM_CPPFLAGS = -DADD_
+
+ERRHAND_SOURCES = \
+ cblas_globals.c \
+ cblas_xerbla.c \
+ xerbla.c
+
-+if SINGLE
+SINGLE_SOURCES = \
+ cblas_scasum.c \
+ cblas_scnrm2.c \
+ scasumsub.f \
+ scnrm2sub.f
-+endif
+
-+if S
+SLEV_SOURCES = \
+ isamaxsub.f \
+ sdotsub.f \
@@ -156,9 +126,7 @@ diff -Nur CBLAS.orig/src/Makefile.am CBLAS/src/Makefile.am
+ cblas_ssyr2k.c \
+ cblas_strmm.c \
+ cblas_strsm.c
-+endif
+
-+if D
+DLEV_SOURCES = \
+ ddotsub.f \
+ dsdotsub.f \
@@ -206,9 +174,7 @@ diff -Nur CBLAS.orig/src/Makefile.am CBLAS/src/Makefile.am
+ cblas_dsyr2k.c \
+ cblas_dtrmm.c \
+ cblas_dtrsm.c
-+endif
+
-+if C
+CLEV_SOURCES = \
+ cdotcsub.f \
+ cdotusub.f \
@@ -253,9 +219,7 @@ diff -Nur CBLAS.orig/src/Makefile.am CBLAS/src/Makefile.am
+ cblas_ctrsm.c \
+ cblas_csyrk.c \
+ cblas_csyr2k.c
-+endif
+
-+if Z
+ZLEV_SOURCES = \
+ zdotcsub.f \
+ zdotusub.f \
@@ -304,7 +268,6 @@ diff -Nur CBLAS.orig/src/Makefile.am CBLAS/src/Makefile.am
+ cblas_ztrsm.c \
+ cblas_zsyrk.c \
+ cblas_zsyr2k.c
-+endif
+
+libcblas_la_SOURCES = \
+ cblas_f77.h \
@@ -328,27 +291,25 @@ diff -Nur CBLAS.orig/src/Makefile.am CBLAS/src/Makefile.am
+ $(CLEV3_SOURCES) \
+ $(ZLEV3_SOURCES)
+
-+libcblas_la_LIBADD = $(FLIBS)
-diff -Nur CBLAS.orig/testing/Makefile.am CBLAS/testing/Makefile.am
---- CBLAS.orig/testing/Makefile.am 1970-01-01 01:00:00.000000000 +0100
-+++ CBLAS/testing/Makefile.am 2006-10-10 17:35:55.000000000 +0100
-@@ -0,0 +1,73 @@
-+noinst_PROGRAMS = \
-+ xscblat1 \
-+ xscblat2 \
-+ xscblat3 \
-+ xdcblat1 \
-+ xdcblat2 \
-+ xdcblat3 \
-+ xccblat1 \
-+ xccblat2 \
-+ xccblat3 \
-+ xzcblat1 \
-+ xzcblat2 \
-+ xzcblat3
-+
-+LDADD = -lblas $(top_builddir)/src/libcblas.la $(FLIBS)
-+AM_CFLAGS = -I$(top_srcdir)/src -DADD_
++libcblas_la_LIBADD = @BLAS_LIBS@
++
+--- testing/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ testing/Makefile.am 2007-08-16 12:16:57.000000000 +0100
+@@ -0,0 +1,71 @@
++TESTS = cblas_tests
++
++cblas_tests:
++ @install -m0755 cblas_tests.sh cblas_tests
++
++check_PROGRAMS = \
++ xscblat1 xdcblat1 xccblat1 xzcblat1 \
++ xscblat2 xdcblat2 xccblat2 xzcblat2 \
++ xscblat3 xdcblat3 xccblat3 xzcblat3
++
++LDADD = $(top_builddir)/src/libcblas.la @BLAS_LIBS@
++
++AM_CPPFLAGS = -I$(top_srcdir)/src -DADD_
++AM_FFLAGS = @BLAS_CFLAGS@
+
+AUX_SOURCES = \
+ auxiliary.c \
@@ -406,3 +367,14 @@ diff -Nur CBLAS.orig/testing/Makefile.am CBLAS/testing/Makefile.am
+ c_z3chke.c \
+ c_zblat3.f \
+ $(AUX_SOURCES)
+--- testing/cblas_tests.sh 1970-01-01 01:00:00.000000000 +0100
++++ testing/cblas_tests.sh 2007-07-16 01:50:16.000000000 +0100
+@@ -0,0 +1,8 @@
++#!/bin/sh
++
++for t in x*blat1; do
++ ./${t}
++done
++for t in x*blat{2,3}; do
++ ./${t} < ${t:1:1}in${t:7:1}
++done
diff --git a/sci-libs/cblas-reference/files/digest-cblas-reference-20030223-r4 b/sci-libs/cblas-reference/files/digest-cblas-reference-20030223-r4
new file mode 100644
index 000000000000..823a069b1666
--- /dev/null
+++ b/sci-libs/cblas-reference/files/digest-cblas-reference-20030223-r4
@@ -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/files/eselect.cblas.reference b/sci-libs/cblas-reference/files/eselect.cblas.reference
new file mode 100644
index 000000000000..62b581860fc7
--- /dev/null
+++ b/sci-libs/cblas-reference/files/eselect.cblas.reference
@@ -0,0 +1,5 @@
+blas/reference/libcblas.so /usr/@LIBDIR@/libcblas.so
+blas/reference/libcblas.so.0 /usr/@LIBDIR@/libcblas.so.0
+blas/reference/libcblas.a /usr/@LIBDIR@/libcblas.a
+../blas/reference/cblas.pc /usr/@LIBDIR@/pkgconfig/cblas.pc
+cblas/cblas.h /usr/include/cblas.h
diff --git a/sci-libs/cblas-reference/metadata.xml b/sci-libs/cblas-reference/metadata.xml
index b229aec85b8f..b3739e268a1f 100644
--- a/sci-libs/cblas-reference/metadata.xml
+++ b/sci-libs/cblas-reference/metadata.xml
@@ -2,4 +2,14 @@
<!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>