summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2004-12-28 16:09:15 +0000
committerOlivier Fisette <ribosome@gentoo.org>2004-12-28 16:09:15 +0000
commitadc9cfd9408673941216fbbdefbdf47d5a895832 (patch)
tree90050b55dbdcdd133e1e93084f9d360f05a7ecb2 /sci-libs
parentMarked ppc stable. (Manifest recommit) (diff)
downloadgentoo-2-adc9cfd9408673941216fbbdefbdf47d5a895832.tar.gz
gentoo-2-adc9cfd9408673941216fbbdefbdf47d5a895832.tar.bz2
gentoo-2-adc9cfd9408673941216fbbdefbdf47d5a895832.zip
Moved from app-sci/acml to sci-libs/acml.
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/acml/ChangeLog21
-rw-r--r--sci-libs/acml/Manifest7
-rw-r--r--sci-libs/acml/acml-2.1.0.ebuild73
-rw-r--r--sci-libs/acml/files/c-ACML.blas14
-rw-r--r--sci-libs/acml/files/digest-acml-2.1.02
-rw-r--r--sci-libs/acml/files/f77-ACML.blas14
-rw-r--r--sci-libs/acml/files/f77-ACML.lapack13
-rw-r--r--sci-libs/acml/metadata.xml12
8 files changed, 156 insertions, 0 deletions
diff --git a/sci-libs/acml/ChangeLog b/sci-libs/acml/ChangeLog
new file mode 100644
index 000000000000..d4892c3b731b
--- /dev/null
+++ b/sci-libs/acml/ChangeLog
@@ -0,0 +1,21 @@
+# ChangeLog for app-sci/acml
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/ChangeLog,v 1.1 2004/12/28 16:09:15 ribosome Exp $
+
+*acml-2.1.0 (28 Dec 2004)
+
+ 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+ +files/c-ACML.blas, +files/f77-ACML.blas, +files/f77-ACML.lapack,
+ +acml-2.1.0.ebuild:
+ Moved from app-sci/acml to sci-libs/acml.
+
+ 15 Dec 2004; Danny van Dyk <kugelfang@gentoo.org> :
+ Fixed missing digest entry for acml-32bit-2-1-0.tgz. (BUG #72945)
+
+*acml-2.1.0 (22 Sep 2004)
+
+ 22 Sep 2004; Danny van Dyk <kugelfang@gentoo.org> +metadata.xml,
+ +files/c-ACML.blas, +files/f77-ACML.blas, +files/f77-ACML.lapack,
+ +acml-2.1.0.ebuild:
+ Initial Import.
+
diff --git a/sci-libs/acml/Manifest b/sci-libs/acml/Manifest
new file mode 100644
index 000000000000..73968f333934
--- /dev/null
+++ b/sci-libs/acml/Manifest
@@ -0,0 +1,7 @@
+MD5 b3c42ded627bceb59d64b1c893962d39 acml-2.1.0.ebuild 1718
+MD5 c9bfe708975ddd233f47166b8f1053f6 metadata.xml 390
+MD5 fe0ef0a46eea6ce3612251c274c96d7e ChangeLog 526
+MD5 3b43533f073305dc2ed60f13091025a0 files/digest-acml-2.1.0 134
+MD5 e92e9b2507e25e7826de1be1cce7c7ae files/c-ACML.blas 465
+MD5 ed54e2d6cb585bafe8a23f0a5d07c02b files/f77-ACML.blas 430
+MD5 035015e5be8999d26202cfb042029acc files/f77-ACML.lapack 441
diff --git a/sci-libs/acml/acml-2.1.0.ebuild b/sci-libs/acml/acml-2.1.0.ebuild
new file mode 100644
index 000000000000..03b9d8e64b99
--- /dev/null
+++ b/sci-libs/acml/acml-2.1.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/acml-2.1.0.ebuild,v 1.1 2004/12/28 16:09:15 ribosome Exp $
+
+inherit eutils
+
+DESCRIPTION="AMD Core Math Library (ACML) for x86 and amd64 CPUs"
+HOMEPAGE="http://www.developwithamd.com/appPartnerProg/acml/forms/index.cfm?action=home"
+
+MY_PV=${PV//\./\-}
+S=${WORKDIR}
+
+SRC_URI="amd64? ( acml-64bit-${MY_PV}.tgz )
+ x86? ( acml-32bit-${MY_PV}.tgz )"
+RESTRICT="fetch nostrip"
+IUSE=""
+LICENSE="ACML"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+RDEPEND="virtual/libc
+ app-sci/blas-config
+ app-sci/lapack-config"
+PROVIDE="virtual/blas
+ virtual/lapack"
+
+src_unpack() {
+ unpack ${A}
+ if [ "${ARCH}" == "amd64" ]; then
+ export SUFFIX="64"
+ else
+ export SUFFIX="32"
+ fi
+ (DISTDIR="${S}" unpack contents${SUFFIX}.tgz)
+
+ # Remove non-gnu libraries...
+ # TODO: probably a useflag for non-gnu libraries to be used ?
+ rm -Rf ${S}/pgi* install*.sh README*
+ mv Doc doc
+
+}
+
+src_compile() {
+ return
+}
+
+src_install() {
+ # Documentation
+ cd ${S}/doc
+ dodoc acml.*
+
+ # Headers
+ mkdir -p ${D}/usr/include/acml/
+ cp ${S}/gnu${SUFFIX}/include/* ${D}/usr/include/acml/
+
+ # Libraries
+ mkdir -p ${D}/usr/$(get_libdir)/
+ cp ${S}/gnu${SUFFIX}/lib/* ${D}/usr/$(get_libdir)/
+ unset SUFFIX
+
+ # Configfiles
+ mkdir -p ${D}/usr/$(get_libdir)/{blas,lapack}
+ for x in ${FILESDIR}/*.{blas,lapack}; do
+ y="$(basename $x)"
+ cp $x ${D}/usr/$(get_libdir)/${y/*\.}/${y/\.*}
+ done
+}
+
+pkg_postinst() {
+ einfo "To use ACML's BLAS features, you have to issue (as root):"
+ einfo "\n\t/usr/bin/blas-config ACML"
+ einfo "To use ACML's LAPACK features, you have to issue (as root):"
+ einfo "\n\t/usr/bin/lapack-config ACML"
+}
diff --git a/sci-libs/acml/files/c-ACML.blas b/sci-libs/acml/files/c-ACML.blas
new file mode 100644
index 000000000000..5a67234a2823
--- /dev/null
+++ b/sci-libs/acml/files/c-ACML.blas
@@ -0,0 +1,14 @@
+CFLAGS="-I/usr/include/acml"
+CLIBS="-L/usr/$(get_libdir)/ -lcblas"
+
+setup() {
+MY_LIBDIR="$(get_libdir)"
+einfo "/usr/${MY_LIBDIR}/libcblas.so -> libacml.so"
+ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/libcblas.so
+
+einfo "/usr/${MY_LIBDIR}/libcblas.so.0 -> libacml.so"
+ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/libcblas.so.0
+
+einfo "/usr/${MY_LIBDIR}/libcblas.a -> libacml.a"
+ln -sf /usr/${MY_LIBDIR}/libacml.a /usr/${MY_LIBDIR}/libcblas.a
+}
diff --git a/sci-libs/acml/files/digest-acml-2.1.0 b/sci-libs/acml/files/digest-acml-2.1.0
new file mode 100644
index 000000000000..646c58d9e66c
--- /dev/null
+++ b/sci-libs/acml/files/digest-acml-2.1.0
@@ -0,0 +1,2 @@
+MD5 dd459804fb8fbf50005614bfc73e8016 acml-64bit-2-1-0.tgz 25311085
+MD5 39391a716a449651d90988bab1931f85 acml-32bit-2-1-0.tgz 51496942
diff --git a/sci-libs/acml/files/f77-ACML.blas b/sci-libs/acml/files/f77-ACML.blas
new file mode 100644
index 000000000000..c200afc3d6a2
--- /dev/null
+++ b/sci-libs/acml/files/f77-ACML.blas
@@ -0,0 +1,14 @@
+F77LIBS="-L/usr/$(get_libdir)/ -lblas"
+
+setup() {
+MY_LIBDIR="$(get_libdir)"
+einfo "/usr/${MY_LIBDIR}/libblas.so -> libacml.so"
+ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/libblas.so
+
+einfo "/usr/${MY_LIBDIR}/libblas.so.0 -> libacml.so"
+ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/libblas.so.0
+
+einfo "/usr/${MY_LIBDIR}/libblas.a -> libacml.a"
+ln -sf /usr/${MY_LIBDIR}/libacml.a /usr/${MY_LIBDIR}/libblas.a
+
+}
diff --git a/sci-libs/acml/files/f77-ACML.lapack b/sci-libs/acml/files/f77-ACML.lapack
new file mode 100644
index 000000000000..90122de523b3
--- /dev/null
+++ b/sci-libs/acml/files/f77-ACML.lapack
@@ -0,0 +1,13 @@
+F77LIBS="-L/usr/$(get_libdir)/ -lacml"
+
+setup() {
+MY_LIBDIR="$(get_libdir)"
+einfo "/usr/${MY_LIBDIR}/liblapack.so -> libacml.so"
+ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/liblapack.so
+
+einfo "/usr/${MY_LIBDIR}/liblapack.so.0 -> libacml.so"
+ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/liblapack.so.0
+
+einfo "/usr/${MY_LIBDIR}/liblapack.a -> libacml.a"
+ln -sf /usr/${MY_LIBDIR}/libacml.a /usr/${MY_LIBDIR}/liblapack.a
+}
diff --git a/sci-libs/acml/metadata.xml b/sci-libs/acml/metadata.xml
new file mode 100644
index 000000000000..3389958d3abc
--- /dev/null
+++ b/sci-libs/acml/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<maintainer>
+ <email>kugelfang@gentoo.org</email>
+</maintainer>
+<longdescription>
+AMD Core Math Library provides an implementation of the BLAS,
+LAPACK and FFT libraries highly optimized for AMD x86 and amd64 CPUs.
+</longdescription>
+</pkgmetadata>