summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2004-10-21 21:43:53 +0000
committerGeorge Shapovalov <george@gentoo.org>2004-10-21 21:43:53 +0000
commit35ac8ee76f4918ff111bd01c7fcf4a96f42176d0 (patch)
tree8ccff21a3dfb5d077d255d52502839aca02a8594 /app-sci/blas-reference
parentAdded a patch to configure to honor the "arts" USE flag. (Manifest recommit) (diff)
downloadgentoo-2-35ac8ee76f4918ff111bd01c7fcf4a96f42176d0.tar.gz
gentoo-2-35ac8ee76f4918ff111bd01c7fcf4a96f42176d0.tar.bz2
gentoo-2-35ac8ee76f4918ff111bd01c7fcf4a96f42176d0.zip
eclassified to use fortran and 64-bit
Diffstat (limited to 'app-sci/blas-reference')
-rw-r--r--app-sci/blas-reference/ChangeLog5
-rw-r--r--app-sci/blas-reference/blas-reference-19940131-r1.ebuild110
-rw-r--r--app-sci/blas-reference/files/digest-blas-reference-19940131-r11
3 files changed, 115 insertions, 1 deletions
diff --git a/app-sci/blas-reference/ChangeLog b/app-sci/blas-reference/ChangeLog
index 9d25008da887..b85b20d0e024 100644
--- a/app-sci/blas-reference/ChangeLog
+++ b/app-sci/blas-reference/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-sci/blas-reference
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/blas-reference/ChangeLog,v 1.9 2004/09/06 00:01:02 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/blas-reference/ChangeLog,v 1.10 2004/10/21 21:43:53 george Exp $
+
+ 21 Oct 2004; George Shapovalov <george@gentoo.org> blas-reference-19940131.ebuild-r1 :
+ moved to use fortran.eclass (and 64-bit.eclass), keymasked -* until fortran.eclass settles
06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org>
blas-reference-19940131.ebuild:
diff --git a/app-sci/blas-reference/blas-reference-19940131-r1.ebuild b/app-sci/blas-reference/blas-reference-19940131-r1.ebuild
new file mode 100644
index 000000000000..62c1bdfe8c88
--- /dev/null
+++ b/app-sci/blas-reference/blas-reference-19940131-r1.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/blas-reference/blas-reference-19940131-r1.ebuild,v 1.1 2004/10/21 21:43:53 george Exp $
+
+inherit eutils 64-bit fortran
+
+Name="blas"
+DESCRIPTION="FORTRAN reference implementation of the BLAS (linear algebra lib)"
+HOMEPAGE="http://www.netlib.org/blas/"
+SRC_URI="http://www.netlib.org/blas/${Name}.tgz"
+
+LICENSE="public-domain"
+SLOT="0"
+#KEYWORDS="~x86 ~amd64"
+KEYWORDS="-*"
+IUSE="ifc"
+
+DEPEND="app-sci/blas-config
+ >=sys-devel/libtool-1.5
+ ifc? ( dev-lang/ifc )"
+
+RDEPEND="ifc? ( dev-lang/ifc )" # Need ifc runtime libraries
+
+PROVIDE="virtual/blas"
+
+S=${WORKDIR}
+
+64-bit && FORTRAN="f77 ifc" || FORTRAN="f77 f2c ifc" # No f2c on 64-bit systems yet :-/
+
+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
+ epause 5
+ fi
+}
+
+pkg_setup() {
+ use ifc || if [ -z `which g77` ]; then
+ #if ifc is defined then the dep was already checked
+ eerror "No fortran compiler found on the system!"
+ eerror "Please add g77 to your USE flags and reemerge gcc!"
+ die
+ 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}"
+ ifc -shared ${IFCFLAGS} \
+ -Wl,-soname,libblas.so.0 -o libblas.so.0.0.0 *.lo
+ 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
+ strip --strip-debug libblas.a
+
+ exeinto ${RPATH}
+ doexe libblas.so.0.0.0
+ dosym libblas.so.0.0.0 ${RPATH}/libblas.so.0
+ dosym libblas.so.0.0.0 ${RPATH}/libblas.so
+
+ insinto ${RPATH}
+ doins libblas.a
+ else
+ dodir ${RPATH}
+ libtool install -s libblas.la ${D}/${RPATH}
+ fi
+
+ insinto ${TOP_PATH}
+ doins ${FILESDIR}/f77-reference
+}
+
+pkg_postinst() {
+ blas-config f77-reference
+}
diff --git a/app-sci/blas-reference/files/digest-blas-reference-19940131-r1 b/app-sci/blas-reference/files/digest-blas-reference-19940131-r1
new file mode 100644
index 000000000000..41ce05f23e36
--- /dev/null
+++ b/app-sci/blas-reference/files/digest-blas-reference-19940131-r1
@@ -0,0 +1 @@
+MD5 5811e4b3dffa7a10956abf923cec1bd4 blas.tgz 94981