summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2005-11-13 05:44:04 +0000
committerOlivier Fisette <ribosome@gentoo.org>2005-11-13 05:44:04 +0000
commit05e83ae946853cbfcb0b0fa422dc5ca6870b13d7 (patch)
tree650ca4aa2ab19eb8613a0fbc48b69b6d87c32a6e /sci-libs/blas-reference
parentfix dependencies for a nice easy lzo 1->2 transition - bug #105637 sort of re... (diff)
downloadhistorical-05e83ae946853cbfcb0b0fa422dc5ca6870b13d7.tar.gz
historical-05e83ae946853cbfcb0b0fa422dc5ca6870b13d7.tar.bz2
historical-05e83ae946853cbfcb0b0fa422dc5ca6870b13d7.zip
Migrated to fortran.eclass (bug #65950)
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'sci-libs/blas-reference')
-rw-r--r--sci-libs/blas-reference/ChangeLog8
-rw-r--r--sci-libs/blas-reference/Manifest10
-rw-r--r--sci-libs/blas-reference/blas-reference-19940131-r2.ebuild95
-rw-r--r--sci-libs/blas-reference/files/digest-blas-reference-19940131-r21
4 files changed, 109 insertions, 5 deletions
diff --git a/sci-libs/blas-reference/ChangeLog b/sci-libs/blas-reference/ChangeLog
index 2633f51510ed..f77da190cfa2 100644
--- a/sci-libs/blas-reference/ChangeLog
+++ b/sci-libs/blas-reference/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-libs/blas-reference
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-reference/ChangeLog,v 1.4 2005/04/22 13:49:16 kugelfang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-reference/ChangeLog,v 1.5 2005/11/13 05:42:14 ribosome Exp $
+
+*blas-reference-19940131-r2 (13 Nov 2005)
+
+ 13 Nov 2005; Olivier Fisette <ribosome@gentoo.org>
+ +blas-reference-19940131-r2.ebuild:
+ Migrated to fortran.eclass (bug #65950).
22 Apr 2005; Danny van Dyk <kugelfang@gentoo.org>
blas-reference-19940131.ebuild:
diff --git a/sci-libs/blas-reference/Manifest b/sci-libs/blas-reference/Manifest
index 4c417e24ce38..e78444a77670 100644
--- a/sci-libs/blas-reference/Manifest
+++ b/sci-libs/blas-reference/Manifest
@@ -1,8 +1,10 @@
-MD5 0ddab4429bfb1be242a56bc3c323a244 ChangeLog 2806
-MD5 10d1c63d1776f387b71c28f9122f201a blas-reference-19940131-r1.ebuild 2640
+MD5 f2e0def1a8b5f0978068b8aec79d1c84 blas-reference-19940131-r2.ebuild 2451
MD5 afd02b82604ab7a048d780a768bd0085 blas-reference-19940131.ebuild 2486
+MD5 10d1c63d1776f387b71c28f9122f201a blas-reference-19940131-r1.ebuild 2640
+MD5 0ddab4429bfb1be242a56bc3c323a244 ChangeLog 2806
MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
-MD5 d5cd617fba85f0c278240f7446ca52c8 files/Makefile.gz 986
-MD5 ba7949ab229d3b52516732fc47caebeb files/digest-blas-reference-19940131 52
MD5 ba7949ab229d3b52516732fc47caebeb files/digest-blas-reference-19940131-r1 52
+MD5 ba7949ab229d3b52516732fc47caebeb files/digest-blas-reference-19940131-r2 52
+MD5 d5cd617fba85f0c278240f7446ca52c8 files/Makefile.gz 986
MD5 2d7bae33a1553ed8eccbdb971a459ff2 files/f77-reference 396
+MD5 ba7949ab229d3b52516732fc47caebeb files/digest-blas-reference-19940131 52
diff --git a/sci-libs/blas-reference/blas-reference-19940131-r2.ebuild b/sci-libs/blas-reference/blas-reference-19940131-r2.ebuild
new file mode 100644
index 000000000000..55395c292d47
--- /dev/null
+++ b/sci-libs/blas-reference/blas-reference-19940131-r2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-reference/blas-reference-19940131-r2.ebuild,v 1.1 2005/11/13 05:42:14 ribosome Exp $
+
+inherit eutils fortran
+
+Name="blas"
+DESCRIPTION="FORTRAN reference implementation of the BLAS (linear algebra lib)"
+LICENSE="public-domain"
+HOMEPAGE="http://www.netlib.org/blas/"
+SRC_URI="http://www.netlib.org/blas/${Name}.tgz"
+
+SLOT="0"
+IUSE="ifc"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="sci-libs/blas-config
+ >=sys-devel/libtool-1.5
+ ifc? ( dev-lang/ifc )"
+
+RDEPEND="ifc? ( dev-lang/ifc )" # Need ifc runtime libraries
+
+PROVIDE="virtual/blas"
+
+#TODO: detect 64bit size from compiler, not eclass
+FORTRAN="g77 ifc" || FORTRAN="g77 f2c ifc" # No f2c on 64-bit systems yet :-/
+
+S="${WORKDIR}"
+
+ifc_info() {
+ if [ -z "${IFCFLAGS}" ]
+ then
+ einfo
+ einfo "You may want to set some ifc optimization flags by running this"
+ einfo "ebuild as, for example, \`IFCFLAGS=\"-O3 -tpp7 -xW\" emerge blas\`"
+ einfo "(Pentium 4 exclusive optimizations)."
+ einfo
+ einfo "ifc defaults to -O2, with code tuned for Pentium 4, but that"
+ einfo "will run on any processor."
+ einfo
+ einfo "Beware that ifc's -O3 is very aggressive, sometimes resulting in"
+ einfo "significantly worse performance."
+ einfo
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ cp "${FILESDIR}"/Makefile.gz .
+ gunzip Makefile.gz
+}
+
+src_compile() {
+ # Profile information will be installed in TOP_PATH:
+ TOP_PATH="${DESTTREE}"/lib/blas
+ # Libraries will be installed in RPATH:
+ RPATH="${TOP_PATH}"/reference
+
+ if use ifc; then
+ ifc_info
+ make static FC="ifc" FFLAGS="${IFCFLAGS}" || die
+ ifc -shared ${IFCFLAGS} -Wl,-soname,libblas.so.0 \
+ -o libblas.so.0.0.0 *.lo || die
+ else
+ # libg2c is required to link to libblas.so using ifc:
+ make libs FC="g77" FFLAGS="${CFLAGS}" \
+ LIBTOOL_FLAGS="-rpath ${RPATH} -lg2c" || die
+ fi
+}
+
+src_install() {
+ if use ifc; then
+ strip --strip-unneeded libblas.so.0.0.0 || die
+ strip --strip-debug libblas.a || die
+
+ exeinto ${RPATH}
+ doexe libblas.so.0.0.0 || die
+ dosym libblas.so.0.0.0 ${RPATH}/libblas.so.0 || die
+ dosym libblas.so.0.0.0 ${RPATH}/libblas.so || die
+
+ insinto ${RPATH}
+ doins libblas.a || die
+ else
+ dodir ${RPATH} || die
+ libtool install -s libblas.la ${D}/${RPATH} || die
+ fi
+
+ insinto ${TOP_PATH}
+ doins ${FILESDIR}/f77-reference || die
+}
+
+pkg_postinst() {
+ blas-config f77-reference
+}
diff --git a/sci-libs/blas-reference/files/digest-blas-reference-19940131-r2 b/sci-libs/blas-reference/files/digest-blas-reference-19940131-r2
new file mode 100644
index 000000000000..41ce05f23e36
--- /dev/null
+++ b/sci-libs/blas-reference/files/digest-blas-reference-19940131-r2
@@ -0,0 +1 @@
+MD5 5811e4b3dffa7a10956abf923cec1bd4 blas.tgz 94981