# ChangeLog for sci-libs/blas-goto
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-goto/ChangeLog,v 1.3 2007/01/08 02:29:53 kugelfang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-goto/ChangeLog,v 1.4 2007/02/19 16:21:09 bicatali Exp $
+
+*blas-goto-1.11 (19 Feb 2007)
+
+ 19 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml,
+ +blas-goto-1.11.ebuild:
+ Version bump. Also fixed for LDFLAGS such as as-needed, and tested on
+ amd64. Added a longdescription on metadata.xml.
08 Jan 2007; Danny van Dyk <kugelfang@gentoo.org> -blas-goto-1.08.ebuild:
QA: Removed unused versions.
RMD160 795f24085adeccd8f736ce205bed1ae1937f7329 files/eselect-goto 140
SHA256 0ce922ff68673c3a3c18b5299d57455404bbd044481997d57b4819160c43f70c files/eselect-goto 140
DIST GotoBLAS-1.09.tar.gz 1552150 RMD160 4c5326aaabf8af495d51a1159b2f4eb0edc145e4 SHA1 4e5d115ae5de0a011ea2f3744780737ee843d1a2 SHA256 075876000fd1a94f9036edf5e49f6aac2e543798107a73a78e59a41a5c6eae1b
+DIST GotoBLAS-1.11.tar.gz 1632357 RMD160 292f119f53d5b88a4b95998f294fd55cc1f6b3f9 SHA1 c6febb164efecb43f4d3ba847ada6120ef89398c SHA256 05697c943f9679fcda4513fe7cd32f475407d1204cc71b6608dfbd522547fafc
EBUILD blas-goto-1.09.ebuild 3396 RMD160 4b0c75a377b9fe39232adb3fbb7ffc9094a792e6 SHA1 15da0c056322aa28ed2c4ff11cdd994d89aae70b SHA256 87afa4293edd5a6921b13f726b263822fef842e955f80759e7e6d0dc0f99148a
MD5 617213c20e3cb03874f0852635c014d1 blas-goto-1.09.ebuild 3396
RMD160 4b0c75a377b9fe39232adb3fbb7ffc9094a792e6 blas-goto-1.09.ebuild 3396
SHA256 87afa4293edd5a6921b13f726b263822fef842e955f80759e7e6d0dc0f99148a blas-goto-1.09.ebuild 3396
-MISC ChangeLog 751 RMD160 673f21c261f03d2c77fafbc4c1171adad6253d85 SHA1 9fe61abef027fa278c508012200aeccd4248583c SHA256 ad63324a3dc987296307a063b73bd0208e3b96250bd21ed81b59f3df74aaeb89
-MD5 5dd278783672d5cf3de2bb99d20a1a79 ChangeLog 751
-RMD160 673f21c261f03d2c77fafbc4c1171adad6253d85 ChangeLog 751
-SHA256 ad63324a3dc987296307a063b73bd0208e3b96250bd21ed81b59f3df74aaeb89 ChangeLog 751
-MISC metadata.xml 156 RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 SHA1 da2b240a255820145b7c83a5c48e45b96b7e9ee6 SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900
-MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
-RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 metadata.xml 156
-SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900 metadata.xml 156
+EBUILD blas-goto-1.11.ebuild 3736 RMD160 ed78c2025363e7f9e5e66ede9ee734bfda5a79f1 SHA1 a311e7fc9ae9ddce0eed848a192dbd78a229ebfe SHA256 a7366001fa8d5b3fc6235bad2d467ae676279afa543b1b71060fda72cd8765cf
+MD5 4a3644a055f1a7100f25dd77a11e74e1 blas-goto-1.11.ebuild 3736
+RMD160 ed78c2025363e7f9e5e66ede9ee734bfda5a79f1 blas-goto-1.11.ebuild 3736
+SHA256 a7366001fa8d5b3fc6235bad2d467ae676279afa543b1b71060fda72cd8765cf blas-goto-1.11.ebuild 3736
+MISC ChangeLog 1000 RMD160 d63a50b439d646d6ab74ad597d6b1c3a18089021 SHA1 f74944b809879bf1a02e1cface391749f468ffa4 SHA256 a476fe127ad290a53d7686765d8f32113da996098eb7c88ad2db8d84ccb9ac48
+MD5 35e0923edf653345551443874df19893 ChangeLog 1000
+RMD160 d63a50b439d646d6ab74ad597d6b1c3a18089021 ChangeLog 1000
+SHA256 a476fe127ad290a53d7686765d8f32113da996098eb7c88ad2db8d84ccb9ac48 ChangeLog 1000
+MISC metadata.xml 612 RMD160 9156a8f5eaa44e61506518e6c8c8cc1209003e71 SHA1 a45262b8866a17d8b4ceda3041a81f0b63d3ca79 SHA256 8dbf3f6bd947424f3c3893e31bfb420409da6e7714f13ba2a981fe52b8532ed2
+MD5 b6915eda6b9a9696449cb92ce26df22e metadata.xml 612
+RMD160 9156a8f5eaa44e61506518e6c8c8cc1209003e71 metadata.xml 612
+SHA256 8dbf3f6bd947424f3c3893e31bfb420409da6e7714f13ba2a981fe52b8532ed2 metadata.xml 612
MD5 ec8a7a80624d404a1bf0ca5dbbdd0f8c files/digest-blas-goto-1.09 244
RMD160 8ec5a807b53d3ff55335fd775c1984d55001fa22 files/digest-blas-goto-1.09 244
SHA256 fab8dc75952993b41b1f7307b19d74ef12ce8f8562c1133bd88f3a68d4aca7e2 files/digest-blas-goto-1.09 244
+MD5 aa569f4b18a1f785095f8932df78baec files/digest-blas-goto-1.11 244
+RMD160 5630657435642953fe0c0e5ae74bd2d2d965d49c files/digest-blas-goto-1.11 244
+SHA256 dead4b0b212cb26b7824bf3b9bc22efbc4d1434d0706eff9369fab30d17c0443 files/digest-blas-goto-1.11 244
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.4 (GNU/Linux)
+Version: GnuPG v1.4.6 (GNU/Linux)
-iD8DBQFFoayv5mJXAu5GbtIRAmkOAJ91Y/+YJFVoQqDhcoH110/piRJcdQCcDcjA
-TYLyVvCXekBE+6XncH7HbS8=
-=I4X9
+iD8DBQFF2c6CWc/Ciu+QQGkRAulzAKCaUNxKGXwYoDHzu5fF1+7JFurVRACfRV0x
+y8BuyG9TVwHZQ3kjB2JNnP4=
+=zxOs
-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-goto/blas-goto-1.11.ebuild,v 1.1 2007/02/19 16:21:09 bicatali Exp $
+
+inherit eutils fortran flag-o-matic toolchain-funcs
+
+MY_PN="GotoBLAS"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="The fastest implementations of the Basic Linear Algebra Subroutines"
+HOMEPAGE="http://www.tacc.utexas.edu/resources/software/software.php"
+SRC_URI="http://www.tacc.utexas.edu/resources/software/login/gotoblas/${MY_P}.tar.gz"
+LICENSE="tacc"
+SLOT="0"
+# See http://www.tacc.utexas.edu/resources/software/gotoblasfaq.php
+# for supported architectures
+KEYWORDS="~x86 ~amd64"
+IUSE="threads"
+RESTRICT="mirror"
+RDEPEND="app-admin/eselect-blas"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_PN}"
+FORTRAN="g77 gfortran" # ifc g95 pgf77 pathf90 f90 f77
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Set up C compiler
+ if [[ $(tc-getCC) = *gcc ]]; then
+ C_COMPILER="GNU"
+ elif [[ $(tc-getCC) = icc ]]; then
+ C_COMPILER="INTEL"
+ else
+ die "tc-getCC() returned an invalid C compiler; valid are gcc or icc."
+ fi
+
+ # Set up Fortran compiler
+ if [[ ${FORTRANC} = g77 ]]; then
+ F_COMPILER="G77"
+ elif [[ ${FORTRANC} = gfortran ]]; then
+ F_COMPILER="GFORTRAN"
+ # Otherwise, we get undefined reference to _gfortran_runtime_error
+ FORTRAN_LIB="-lgfortran"
+# elif [[ ${FORTRANC} = ifc ]]; then
+# F_COMPILER="INTEL"
+# elif [[ ${FORTRANC} = g95 ]]; then
+# F_COMPILER="G95"
+# elif [[ ${FORTRANC} = pgf77 ]]; then
+# F_COMPILER="PGI"
+# elif [[ ${FORTRANC} = pathf90 ]]; then
+# F_COMPILER="PATHSCALE"
+# elif [[ ${FORTRANC} = f90 ]] || [[ ${FORTRANC} = f77 ]]; then
+# F_COMPILER="SUN"
+# elif [[ ${FORTRANC} = xlf ]]; then
+# F_COMPILER="IBM"
+ else
+ die "fortran.eclass returned an invalid Fortran compiler \'${FORTRANC}\'; valid are ${FORTRAN}."
+ fi
+
+ # Fix shared lib build
+ sed -i \
+ -e "s:\(&& echo OK\):${FORTRAN_LIB} \1:g" \
+ "${S}"/exports/Makefile
+
+ # Set up compilers
+ sed -i \
+ -e "s:^\(C_COMPILER =\) GNU:\1 ${C_COMPILER}:g" \
+ -e "s:^# \(F_COMPILER =\) G77:\1 ${F_COMPILER}:g" \
+ -e "s:^# \(SMP = 1\):\1:g" \
+ -e "s:\$(COMPILER_PREFIX)ar:$(tc-getAR):" \
+ -e "s:\$(COMPILER_PREFIX)as:$(tc-getAS):" \
+ -e "s:\$(COMPILER_PREFIX)ld:$(tc-getLD):" \
+ -e "s:\$(COMPILER_PREFIX)ranlib:$(tc-getRANLIB):" \
+ "${S}"/Makefile.rule
+
+ # Threaded?
+ if use threads; then
+ sed -i \
+ -e "s:^# \(SMP = 1\):\1:g" \
+ "${S}"/Makefile.rule
+ fi
+
+ # If you need a 64-bit binary
+ # If you need a 64-bit integer interface, also do this for "INTERFACE64 = 1"
+ if use amd64; then
+ sed -i \
+ -e "s:^# \(BINARY64 = 1\):\1:g" \
+ "${S}"/Makefile.rule
+ fi
+
+ # Respect CFLAGS/FFLAGS
+ sed -i \
+ -e "/^COMMON_OPT += -O2$/d" \
+ "${S}"/Makefile.rule
+ sed -i \
+ -e "s:^\(CCOMMON_OPT +=\)$:\1 ${CFLAGS}:g" \
+ -e "s:^\(FCOMMON_OPT +=\)$:\1 ${FFLAGS:- -O2}:g" \
+ "${S}"/Makefile.rule
+}
+
+src_compile() {
+
+ # Make static library
+ emake LDFLAGS=$(raw_ldflags) || die "emake failed"
+
+ # Make shared library
+ cd exports
+ emake so -j1 || die "emake failed"
+}
+
+src_test() {
+ cd test
+ emake || die "emake test failed"
+}
+
+src_install() {
+ local MAIN_DIR="/usr/$(get_libdir)/blas"
+ local DIR="${MAIN_DIR}/goto"
+
+ # dolib.so doesn't support our alternate locations
+ exeinto ${DIR}
+ doexe libgoto_*.so
+ dosym libgoto_*.so ${DIR}/libgoto.so
+ dosym libgoto_*.so ${DIR}/libgoto.so.0
+ dosym libgoto_*.so ${DIR}/libgoto.so.0.0.0
+
+ # dolib.a doesn't support our alternate locations
+ insinto ${DIR}
+ doins libgoto_*.a
+ dosym libgoto_*.a ${DIR}/libgoto.a
+
+ dodoc 01 Readme.txt 03History.txt 04FAQ.txt
+
+ eselect blas add $(get_libdir) "${FILESDIR}"/eselect-goto goto
+}
+
+pkg_postinst() {
+ if [[ -z $(eselect blas show) ]]; then
+ eselect blas set goto
+ fi
+}
--- /dev/null
+MD5 0790d4de9f6680ffe429801299bad00d GotoBLAS-1.11.tar.gz 1632357
+RMD160 292f119f53d5b88a4b95998f294fd55cc1f6b3f9 GotoBLAS-1.11.tar.gz 1632357
+SHA256 05697c943f9679fcda4513fe7cd32f475407d1204cc71b6608dfbd522547fafc GotoBLAS-1.11.tar.gz 1632357
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
+<longdescription lang="en">
+The GotoBLAS codes are one of the fastest implementations
+of the Basic Linear Algebra Subroutines(BLAS).
+To achieve performance it starts by observing that for current
+generation architectures, much of the overhead comes from Translation
+Look-aside Buffer (TLB) table misses. While the importance of caches
+is also taken into consideration, it is the minimization of such TLB
+misses that drives the approach.
+</longdescription>
</pkgmetadata>