+++ /dev/null
-# ChangeLog for app-sci/lapack-reference
-# Copyright 2004-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/lapack-reference/ChangeLog,v 1.5 2004/09/29 23:44:32 swegener Exp $
-
- 06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org>
- lapack-reference-3.0.ebuild:
- Switch to use epause and ebeep, bug #62950
-
- 18 Jun 2004; Aron Griffis <agriffis@gentoo.org> lapack-reference-3.0.ebuild:
- Fix use invocation
-
- 14 Jun 2004; George Shapovalov <george@gentoo.org> lapack-reference-3.0.ebuild, files/{digest-lapack-reference-3.0,f77-reference} :
- initial release (#30463)
- Full LAPACK implementation using the netlib reference implementation
- ebuild submitted by Derek Dolney <dolney@astro.upenn.edu>
+++ /dev/null
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 27baf54043862e3bb9ea950e83b06e46 ChangeLog 745
-MD5 d91fb277c7449736a218e1f22922f1b1 lapack-reference-3.0.ebuild 3167
-MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
-MD5 94944935d82f5f98cc414ddd175839c7 files/digest-lapack-reference-3.0 196
-MD5 0c26dd04f98f6c5cb6fdddfaa2c50905 files/f77-reference 436
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFBW0joI1lqEGTUzyQRAsJsAJkBoMYykMlZvLZeztTEPuUFl+h5IgCgpwpH
-/izCV5C6v7JlytZUv++KzDU=
-=F4uH
------END PGP SIGNATURE-----
+++ /dev/null
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/lapack-reference/lapack-reference-3.0.ebuild,v 1.5 2004/09/06 00:02:22 ciaranm Exp $
-
-inherit eutils
-
-MyPN=${PN/-reference/}
-
-DESCRIPTION="FORTRAN reference implementation of LAPACK Linear Algebra PACKage"
-HOMEPAGE="http://www.netlib.org/lapack/index.html"
-SRC_URI="http://www.netlib.org/lapack/${MyPN}.tgz
- mirror://gentoo/${MyPN}-20020531-20021004.patch.bz2
- mirror://gentoo/${MyPN}-gentoo.patch"
-
-LICENSE="lapack"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE="ifc"
-
-DEPEND="sys-devel/libtool
- app-sci/lapack-config
- ifc? ( dev-lang/ifc )"
-
-RDEPEND="virtual/blas
- ifc? ( dev-lang/ifc )" # Need ifc runtime libraries
-
-PROVIDE="virtual/lapack"
-
-S=${WORKDIR}/LAPACK
-
-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() {
- # This version of lapack *can* be build completely with ifc
- use ifc || \
- if [ -z `which g77` ]; then
- eerror "g77 not found on the system!"
- eerror "Please add f77 to your USE flags and reemerge gcc!"
- die
- fi
-}
-
-src_unpack() {
- unpack ${A}
- epatch ${DISTDIR}/lapack-20020531-20021004.patch.bz2
- epatch ${DISTDIR}/lapack-gentoo.patch
-}
-
-src_compile() {
- TOP_PATH=${DESTTREE}/lib/lapack
- # Library will be installed in RPATH:
- RPATH=${TOP_PATH}/reference
-
- if use ifc
- then
- FC="ifc"
- FFLAGS="${IFCFLAGS}"
- NOOPT="-O0" # Do NOT change this. It is applied to two files with
- # routines to determine machine constants.
- ifc_info
- else
- FC="g77"
- FFLAGS="${CFLAGS}"
- NOOPT=""
- # libg2c is required to link with liblapack.so using ifc:
- DEP_LIBS="-lg2c"
- fi
-
- DEP_LIBS="${DEP_LIBS} -lblas"
-
- cd ${S}/SRC
- make all \
- FORTRAN="libtool --mode=compile --tag=F77 ${FC}"\
- OPTS="${FFLAGS}"\
- NOOPT="${NOOPT}" \
- || die
-
- if use ifc
- then
- ${FC} -shared ${FFLAGS} *.lo ${DEP_LIBS} \
- -Wl,-soname -Wl,liblapack.so.0 -o liblapack.so.0.0.0 \
- -Vaxlib # Intel portability library that provides the etime function
- ar cru liblapack.a *.o
- ranlib liblapack.a
- else
- libtool --mode=link --tag=CC ${FC} ${FFLAGS} -o liblapack.la *.lo \
- -rpath ${RPATH} ${DEP_LIBS}
- fi
-}
-
-src_install() {
- dodir ${RPATH}
-
- cd ${S}/SRC
-
- if use ifc
- then
- strip --strip-unneeded liblapack.so.0.0.0
- strip --strip-debug liblapack.a
-
- exeinto ${RPATH}
- doexe liblapack.so.0.0.0
- dosym liblapack.so.0.0.0 ${RPATH}/liblapack.so.0
- dosym liblapack.so.0.0.0 ${RPATH}/liblapack.so
-
- insinto ${RPATH}
- doins liblapack.a
- else
- libtool --mode=install install -s liblapack.la ${D}/${RPATH}
- fi
-
- insinto ${TOP_PATH}
- doins ${FILESDIR}/f77-reference
-
- dodoc ${S}/README
-}
-
-pkg_postinst() {
- ${DESTTREE}/bin/lapack-config reference
-}