aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2007-08-16 16:00:47 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2007-08-16 16:00:47 +0000
commitc399feead1b8d9ea84e3940a60a02f6b056d5df5 (patch)
tree9c6487ff15eb20e050bd3959e766f0daa43f010f /sci-libs/gsl
parentadded new virtual blas, cblas and lapack (diff)
downloadsci-c399feead1b8d9ea84e3940a60a02f6b056d5df5.tar.gz
sci-c399feead1b8d9ea84e3940a60a02f6b056d5df5.tar.bz2
sci-c399feead1b8d9ea84e3940a60a02f6b056d5df5.zip
added many updates to blas/lapack packages
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@691 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-libs/gsl')
-rw-r--r--sci-libs/gsl/Manifest24
-rw-r--r--sci-libs/gsl/files/cblas.pc.in12
-rw-r--r--sci-libs/gsl/files/digest-gsl-1.9-r13
-rw-r--r--sci-libs/gsl/files/eselect.cblas.gsl5
-rw-r--r--sci-libs/gsl/files/gsl-1.6-deps.diff13
-rw-r--r--sci-libs/gsl/gsl-1.9-r1.ebuild62
-rw-r--r--sci-libs/gsl/metadata.xml12
7 files changed, 131 insertions, 0 deletions
diff --git a/sci-libs/gsl/Manifest b/sci-libs/gsl/Manifest
new file mode 100644
index 000000000..c814c0f93
--- /dev/null
+++ b/sci-libs/gsl/Manifest
@@ -0,0 +1,24 @@
+AUX cblas.pc.in 290 RMD160 4fc855a67383ac17b68c29d8f10307178919e217 SHA1 ec23b2092a5498beb602c9b558af8abcf5dd6358 SHA256 f47133de2f49a5ff53c8e295d03fbe8923c79cd0978cedb903cfdf7e57a873a1
+MD5 a3aa0d987b3770c85cb8b79f215583c1 files/cblas.pc.in 290
+RMD160 4fc855a67383ac17b68c29d8f10307178919e217 files/cblas.pc.in 290
+SHA256 f47133de2f49a5ff53c8e295d03fbe8923c79cd0978cedb903cfdf7e57a873a1 files/cblas.pc.in 290
+AUX eselect.cblas.gsl 211 RMD160 612f187899186667d39f4285983a6d2e33e8d8e5 SHA1 18f13508efdcb0b408ac5a1c3bf2ef21c5adcd85 SHA256 9946e2e6082c58b2d0415d27f572897da76a96d259652e305783875643fb6554
+MD5 446feaa977fae60dd7f62d7dbe27dfd1 files/eselect.cblas.gsl 211
+RMD160 612f187899186667d39f4285983a6d2e33e8d8e5 files/eselect.cblas.gsl 211
+SHA256 9946e2e6082c58b2d0415d27f572897da76a96d259652e305783875643fb6554 files/eselect.cblas.gsl 211
+AUX gsl-1.6-deps.diff 418 RMD160 1c6aef845c115fce98c38857948b38a1b5e425b1 SHA1 b03629fad9b09c918ccea6bc328c9b8eb256d351 SHA256 0ca9e6e5431d608c282ce890971b23c2fdba5701f0cac0d70938f14df46e701f
+MD5 5ca2842635739ffb675ba3eff4d460d9 files/gsl-1.6-deps.diff 418
+RMD160 1c6aef845c115fce98c38857948b38a1b5e425b1 files/gsl-1.6-deps.diff 418
+SHA256 0ca9e6e5431d608c282ce890971b23c2fdba5701f0cac0d70938f14df46e701f files/gsl-1.6-deps.diff 418
+DIST gsl-1.9.tar.gz 2574939 RMD160 faca66d02876135c31c2f3585baa1931488e1593 SHA1 7541504ed9864b1a278f9392830ecac9e0146258 SHA256 fcd1c6784997c2312d922d107fcb30462f5be4335ebdfa8e1e0e07568c962250
+EBUILD gsl-1.9-r1.ebuild 1594 RMD160 5d550c8655498e798939b9fa40bfa18cac45c145 SHA1 fd18f7b54f43eac74fe28eb4db16a011bbaaeb59 SHA256 f36c4b3f35dd5e75379ff600b62e1b7cccb0c71d83b5345fee3fe4ca30664ed1
+MD5 7ed2f188fe06879573e95977814c0cbd gsl-1.9-r1.ebuild 1594
+RMD160 5d550c8655498e798939b9fa40bfa18cac45c145 gsl-1.9-r1.ebuild 1594
+SHA256 f36c4b3f35dd5e75379ff600b62e1b7cccb0c71d83b5345fee3fe4ca30664ed1 gsl-1.9-r1.ebuild 1594
+MISC metadata.xml 517 RMD160 0888c8c9502c1859d002938769c72cc25e34720a SHA1 a686442fb5085ba24f1a89259438418b2d6bd28d SHA256 2c4f98ec581f4292aad994f07f5c692207e611513864bb4b7da0b6a7ce1709cd
+MD5 52dd827735e089a37cb2bfba3c11e903 metadata.xml 517
+RMD160 0888c8c9502c1859d002938769c72cc25e34720a metadata.xml 517
+SHA256 2c4f98ec581f4292aad994f07f5c692207e611513864bb4b7da0b6a7ce1709cd metadata.xml 517
+MD5 3d4c2af07681f88ed37e23e04518648c files/digest-gsl-1.9-r1 226
+RMD160 8ccab5953dbccc8d3cf5fd5dc7eec254f04b434a files/digest-gsl-1.9-r1 226
+SHA256 a9b9438404a6877f83254607c14e41809f06a9143105b00d2fa2f1c92698f279 files/digest-gsl-1.9-r1 226
diff --git a/sci-libs/gsl/files/cblas.pc.in b/sci-libs/gsl/files/cblas.pc.in
new file mode 100644
index 000000000..a2580f85e
--- /dev/null
+++ b/sci-libs/gsl/files/cblas.pc.in
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/@LIBDIR@
+includedir=${prefix}/include
+
+Name: cblas
+Description: GSL C Implementation of the Basic Linear Algebra Subprograms
+Version: @PV@
+URL: http://www.gnu.org/software/gsl
+Libs: -L${libdir} -lcblas
+Libs.private: -lm
+Cflags: -I${includedir}
diff --git a/sci-libs/gsl/files/digest-gsl-1.9-r1 b/sci-libs/gsl/files/digest-gsl-1.9-r1
new file mode 100644
index 000000000..7c9903354
--- /dev/null
+++ b/sci-libs/gsl/files/digest-gsl-1.9-r1
@@ -0,0 +1,3 @@
+MD5 81dca4362ae8d2aa1547b7d010881e43 gsl-1.9.tar.gz 2574939
+RMD160 faca66d02876135c31c2f3585baa1931488e1593 gsl-1.9.tar.gz 2574939
+SHA256 fcd1c6784997c2312d922d107fcb30462f5be4335ebdfa8e1e0e07568c962250 gsl-1.9.tar.gz 2574939
diff --git a/sci-libs/gsl/files/eselect.cblas.gsl b/sci-libs/gsl/files/eselect.cblas.gsl
new file mode 100644
index 000000000..5524ef29d
--- /dev/null
+++ b/sci-libs/gsl/files/eselect.cblas.gsl
@@ -0,0 +1,5 @@
+libgslcblas.so /usr/@LIBDIR@/libcblas.so
+libgslcblas.so.0 /usr/@LIBDIR@/libcblas.so.0
+libgslcblas.a /usr/@LIBDIR@/libcblas.a
+../blas/gsl/cblas.pc /usr/@LIBDIR@/pkgconfig/cblas.pc
+gslcblas.h /usr/include/cblas.h
diff --git a/sci-libs/gsl/files/gsl-1.6-deps.diff b/sci-libs/gsl/files/gsl-1.6-deps.diff
new file mode 100644
index 000000000..f6460e0b5
--- /dev/null
+++ b/sci-libs/gsl/files/gsl-1.6-deps.diff
@@ -0,0 +1,13 @@
+--- Makefile.am
++++ Makefile.am 2005/04/25 13:12:35
+@@ -17,8 +17,8 @@
+
+ lib_LTLIBRARIES = libgsl.la
+ libgsl_la_SOURCES = version.c
+-libgsl_la_LIBADD = $(SUBLIBS)
+-libgsl_la_LDFLAGS = -version-info $(GSL_LT_VERSION)
++libgsl_la_LIBADD = $(SUBLIBS) cblas/libgslcblas.la
++libgsl_la_LDFLAGS = -no-undefined -version-info $(GSL_LT_VERSION)
+ noinst_HEADERS = templates_on.h templates_off.h
+
+ m4datadir = $(datadir)/aclocal
diff --git a/sci-libs/gsl/gsl-1.9-r1.ebuild b/sci-libs/gsl/gsl-1.9-r1.ebuild
new file mode 100644
index 000000000..8febbfb49
--- /dev/null
+++ b/sci-libs/gsl/gsl-1.9-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils flag-o-matic toolchain-funcs autotools
+
+DESCRIPTION="The GNU Scientific Library"
+HOMEPAGE="http://www.gnu.org/software/gsl/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="app-admin/eselect-cblas"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ # icc-10.0.025 did not pass some tests
+ if [[ $(tc-getCC) == icc ]]; then
+ eerror "icc known to fail tests. Revert to safer gcc and re-emerge."
+ die "gsl does not work when compiled with icc"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # fix for as-needed
+ epatch "${FILESDIR}"/gsl-1.6-deps.diff
+ eautoreconf
+}
+
+src_compile() {
+ replace-cpu-flags k6 k6-2 k6-3 i586
+ filter-flags -ffast-math
+
+ econf || die "econf failed"
+ emake || die 'emake failed.'
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "emake install failed."
+ dodoc AUTHORS BUGS ChangeLog NEWS README SUPPORT THANKS TODO
+
+ # take care of pkgconfig file for cblas implementation.
+ cp "${FILESDIR}"/cblas.pc.in cblas.pc
+ sed -i \
+ -e "s/@LIBDIR@/$(get_libdir)/" \
+ -e "s/@PV@/${PV}/" \
+ cblas.pc || die "sed cblas.pc failed"
+ insinto /usr/$(get_libdir)/blas/gsl
+ doins cblas.pc
+ eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.gsl gsl
+}
+
+pkg_postinst() {
+ [[ -z "$(eselect cblas show)" ]] && eselect cblas set gsl
+ elog "To use CBLAS gsl implementation, you have to issue (as root):"
+ elog "\t eselect cblas set gsl"
+}
diff --git a/sci-libs/gsl/metadata.xml b/sci-libs/gsl/metadata.xml
new file mode 100644
index 000000000..af4c157fd
--- /dev/null
+++ b/sci-libs/gsl/metadata.xml
@@ -0,0 +1,12 @@
+<?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 GNU Scientific Library (GSL) is a collection of routines for numerical
+computing. The routines are written from scratch by the GSL team in ANSI C,
+and are meant to present a modern Applications Programming Interface (API)
+for C programmers, while allowing wrappers to be written for very high level
+languages.
+</longdescription>
+</pkgmetadata>