diff options
-rw-r--r-- | sci-libs/blas-reference/ChangeLog | 54 | ||||
-rw-r--r-- | sci-libs/blas-reference/Manifest | 8 | ||||
-rw-r--r-- | sci-libs/blas-reference/blas-reference-19940131-r1.ebuild | 110 | ||||
-rw-r--r-- | sci-libs/blas-reference/blas-reference-19940131.ebuild | 107 | ||||
-rw-r--r-- | sci-libs/blas-reference/files/Makefile.gz | bin | 0 -> 986 bytes | |||
-rw-r--r-- | sci-libs/blas-reference/files/digest-blas-reference-19940131 | 1 | ||||
-rw-r--r-- | sci-libs/blas-reference/files/digest-blas-reference-19940131-r1 | 1 | ||||
-rw-r--r-- | sci-libs/blas-reference/files/f77-reference | 14 | ||||
-rw-r--r-- | sci-libs/blas-reference/metadata.xml | 5 |
9 files changed, 300 insertions, 0 deletions
diff --git a/sci-libs/blas-reference/ChangeLog b/sci-libs/blas-reference/ChangeLog new file mode 100644 index 000000000000..f66dcde08eab --- /dev/null +++ b/sci-libs/blas-reference/ChangeLog @@ -0,0 +1,54 @@ +# ChangeLog for app-sci/blas-reference +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-reference/ChangeLog,v 1.1 2004/12/29 18:21:54 ribosome Exp $ + +*blas-reference-19940131 (29 Dec 2004) + + 29 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +files/Makefile.gz, +files/f77-reference, + +blas-reference-19940131-r1.ebuild, +blas-reference-19940131.ebuild: + Moved from app-sci/blas-reference to sci-libs/blas-reference. + + 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: + Switch to use epause and ebeep, bug #62950 + + 09 Jun 2004; George Shapovalov <george@gentoo.org> blas-reference-19940131.ebuild : + added ~amd64 keyword (ifc masked in use.mask for amd64 profiles until we get 64bit ifc) + + 02 Jun 2004; Aron Griffis <agriffis@gentoo.org> + blas-reference-19940131.ebuild: + Fix use invocation + + 11 May 2004; George Shapovalov <george@gentoo.org> blas-reference-19940131.ebuild : + fix for the g77 issue (with >=gcc-3.3.3-r2) + + 23 Apr 2004; George Shapovalov <george@gentoo.org> blas-reference-19940131.ebuild, files/Makefile.gz : + updated the Makefile to work with new libtool (added --tag=F77 in a few places), + also recompressed it with gzip (works better for small files) + + 01 Feb 2004; George Shapovalov <george@gentoo.org> blas-reference-19940131.ebuild, files/* : + as per discussion in #30453 renaming (plain) blas to blas-reference. + Will stay package-masked until the whole move is complete, at which point pre-move/pre-virtual versions + will be removed. Preserving the history in this ChangeLog + +*blas-reference-19940131 (27 Oct 2003) + + 27 Oct 2003; George Shapovalov <george@gentoo.org> blas-19940131.ebuild, files/{Makefile.bz2,f77-reference} : + a "real" version (#30462), + according to code this is when last modifications were made. + This version provides both static and shared library. + This is a part of a large ehnahcement of blas support in portage (#30453) + package-masked for now + thanks to Derek Dolney <dolney@astro.physics.upenn.edu> for the "fix" + + 02 Nov 2002; Hannes Mehnert <hannes@gentoo.org> blas-19980702.ebuild: + marked stable for x86 + +*blas-reference-19980702 (31 Oct 2002) + + 31 Oct 2002; Hannes Mehnert <hannes@gentoo.org> blas-19980702.ebuild, + ChangeLog: Initial ebuild. diff --git a/sci-libs/blas-reference/Manifest b/sci-libs/blas-reference/Manifest new file mode 100644 index 000000000000..c314189a9f61 --- /dev/null +++ b/sci-libs/blas-reference/Manifest @@ -0,0 +1,8 @@ +MD5 b5895c745b2c4eb7c5360f1fece2bb57 blas-reference-19940131.ebuild 2483 +MD5 6bc43a62006f98ca6924de3d4053576b blas-reference-19940131-r1.ebuild 2604 +MD5 ae24cdbe0d095a7671e0ae766c3f0ab1 ChangeLog 2248 +MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 +MD5 ba7949ab229d3b52516732fc47caebeb files/digest-blas-reference-19940131-r1 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-r1.ebuild b/sci-libs/blas-reference/blas-reference-19940131-r1.ebuild new file mode 100644 index 000000000000..77a01762a9ce --- /dev/null +++ b/sci-libs/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/sci-libs/blas-reference/blas-reference-19940131-r1.ebuild,v 1.1 2004/12/29 18:21:54 ribosome 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/sci-libs/blas-reference/blas-reference-19940131.ebuild b/sci-libs/blas-reference/blas-reference-19940131.ebuild new file mode 100644 index 000000000000..2936cee4511c --- /dev/null +++ b/sci-libs/blas-reference/blas-reference-19940131.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2004 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.ebuild,v 1.1 2004/12/29 18:21:54 ribosome Exp $ + +inherit eutils + +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" +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} + +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/sci-libs/blas-reference/files/Makefile.gz b/sci-libs/blas-reference/files/Makefile.gz Binary files differnew file mode 100644 index 000000000000..24da9f337be1 --- /dev/null +++ b/sci-libs/blas-reference/files/Makefile.gz diff --git a/sci-libs/blas-reference/files/digest-blas-reference-19940131 b/sci-libs/blas-reference/files/digest-blas-reference-19940131 new file mode 100644 index 000000000000..41ce05f23e36 --- /dev/null +++ b/sci-libs/blas-reference/files/digest-blas-reference-19940131 @@ -0,0 +1 @@ +MD5 5811e4b3dffa7a10956abf923cec1bd4 blas.tgz 94981 diff --git a/sci-libs/blas-reference/files/digest-blas-reference-19940131-r1 b/sci-libs/blas-reference/files/digest-blas-reference-19940131-r1 new file mode 100644 index 000000000000..41ce05f23e36 --- /dev/null +++ b/sci-libs/blas-reference/files/digest-blas-reference-19940131-r1 @@ -0,0 +1 @@ +MD5 5811e4b3dffa7a10956abf923cec1bd4 blas.tgz 94981 diff --git a/sci-libs/blas-reference/files/f77-reference b/sci-libs/blas-reference/files/f77-reference new file mode 100644 index 000000000000..912d84403cd5 --- /dev/null +++ b/sci-libs/blas-reference/files/f77-reference @@ -0,0 +1,14 @@ +F77LIBS="-L/usr/lib/blas/reference -lblas" + +setup() { + +einfo "/usr/lib/libblas.so -> blas/reference/libblas.so" +ln -sf blas/reference/libblas.so /usr/lib/libblas.so + +einfo "/usr/lib/libblas.so.0 -> blas/reference/libblas.so.0" +ln -sf blas/reference/libblas.so.0 /usr/lib/libblas.so.0 + +einfo "/usr/lib/libblas.a -> blas/reference/libblas.a" +ln -sf blas/reference/libblas.a /usr/lib/libblas.a + +} diff --git a/sci-libs/blas-reference/metadata.xml b/sci-libs/blas-reference/metadata.xml new file mode 100644 index 000000000000..b229aec85b8f --- /dev/null +++ b/sci-libs/blas-reference/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +</pkgmetadata> |