aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <sebfabbro@gmail.com>2011-08-22 19:47:58 +0100
committerSébastien Fabbro <sebfabbro@gmail.com>2011-08-22 19:47:58 +0100
commit3da8e714d52ff08f1a983834992718d4efeb8913 (patch)
tree8c0816e504b44c99dee73dced322bab00f993c1a
parentadded gotoblas2 (diff)
downloadsci-3da8e714d52ff08f1a983834992718d4efeb8913.tar.gz
sci-3da8e714d52ff08f1a983834992718d4efeb8913.tar.bz2
sci-3da8e714d52ff08f1a983834992718d4efeb8913.zip
added acml
-rw-r--r--sci-libs/acml/ChangeLog224
-rw-r--r--sci-libs/acml/Manifest17
-rw-r--r--sci-libs/acml/acml-4.4.0-r1.ebuild121
-rw-r--r--sci-libs/acml/metadata.xml25
4 files changed, 387 insertions, 0 deletions
diff --git a/sci-libs/acml/ChangeLog b/sci-libs/acml/ChangeLog
new file mode 100644
index 000000000..2fce0e2dc
--- /dev/null
+++ b/sci-libs/acml/ChangeLog
@@ -0,0 +1,224 @@
+# ChangeLog for sci-libs/acml
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/ChangeLog,v 1.40 2009/07/07 23:27:59 flameeyes Exp $
+
+ 22 Aug 2011; Sébastien Fabbro <bicatali@gentoo.org> +acml-4.4.0-r1.ebuild,
+ +metadata.xml:
+ Imported from bicatali overlay
+
+*acml-4.4.0-r1 (18 Jun 2011)
+
+ 18 Jun 2011; Sébastien Fabbro <bicatali@gentoo.org> -acml-4.4.0.ebuild,
+ +acml-4.4.0-r1.ebuild:
+ More complete treatment of multilib. Rename profiles to be more consistent
+ with other libraries. Some simplifications.
+
+ 23 Feb 2011; Sébastien Fabbro <bicatali@gentoo.org> acml-4.4.0.ebuild:
+ Switched to alternatives-2 framework
+
+ 14 Nov 2010; Sébastien Fabbro <bicatali@gentoo.org> acml-4.4.0.ebuild:
+ Added automated linking to a default fortran profile, gfortran if chosen
+
+ 10 Nov 2010; Sébastien Fabbro <bicatali@gentoo.org> acml-4.4.0.ebuild:
+ Added multilib support. Added eselect files.
+
+*acml-4.4.0 (05 Nov 2010)
+
+ 05 Nov 2010; Sébastien Fabbro <bicatali@gentoo.org> +acml-4.4.0.ebuild,
+ +metadata.xml:
+ Version bump. Completely new structure. Not functional with the eselect
+ yet.
+
+ 07 Jul 2009; Diego E. Pettenò <flameeyes@gentoo.org> ChangeLog:
+ Use elog for fetch error.
+
+ 17 Oct 2008; Markus Meier <maekke@gentoo.org> metadata.xml:
+ openmp USE-flag is global now
+
+ 07 Aug 2008; Ulrich Mueller <ulm@gentoo.org> metadata.xml:
+ Add USE flag description to metadata wrt GLEP 56.
+
+ 23 Jun 2008; Sébastien Fabbro <bicatali@gentoo.org> acml-4.1.0-r1.ebuild:
+ Added gfortran fetch for x86, now available on amd website
+
+ 27 May 2008; Sébastien Fabbro <bicatali@gentoo.org> -acml-4.1.0.ebuild,
+ acml-4.1.0-r1.ebuild:
+ Fixed a bad link in the eselect profiles
+
+*acml-4.1.0-r1 (06 May 2008)
+
+ 06 May 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ +acml-4.1.0-r1.ebuild:
+ Various fixes for x86 (bug #220321), re-added a default environment file
+ according to use flags, pkgconfig recreated with proper libraries instead
+ of always acml_mv
+
+*acml-4.1.0 (30 Apr 2008)
+
+ 30 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org> +acml-4.1.0.ebuild:
+ Version bump. Added gfortran flag to make downloading explicit,
+ robustified dependencies and much cleaning.
+
+ 22 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org> acml-3.6.0-r1.ebuild,
+ acml-3.6.1-r1.ebuild, acml-4.0.1.ebuild:
+ Re-organized dependencies for pkg-config (bug #217278).
+
+ 31 Mar 2008; Sébastien Fabbro <bicatali@gentoo.org> files/blas.pc.in,
+ files/lapack.pc.in, acml-3.6.0-r1.ebuild, acml-3.6.1-r1.ebuild,
+ acml-4.0.1.ebuild:
+ Forced -Wl,--no-as-needed in the pkg-config files. Now blas and lapack
+ pkg-config point to the static acml directory instead of the dynamic
+ libblas and liblapack
+
+ 08 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org> files/blas.pc.in,
+ files/lapack.pc.in, acml-3.6.0-r1.ebuild, acml-3.6.1-r1.ebuild,
+ -acml-4.0.0.ebuild, acml-4.0.1.ebuild:
+ Re-arrange pkgconfig files, removed old version.
+
+ 25 Dec 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
+ Removing kugelfang from metadata.xml as per #46972.
+
+ 19 Dec 2007; Sébastien Fabbro <bicatali@gentoo.org> acml-3.6.0-r1.ebuild,
+ acml-3.6.1-r1.ebuild:
+ Fix also older versions for g2c/gfortran libs
+
+ 19 Dec 2007; Sébastien Fabbro <bicatali@gentoo.org> acml-4.0.1.ebuild:
+ Fixed directory for acml and forced dynamic linking with gfortran when
+ selected, since it will fail without
+
+*acml-4.0.1 (19 Dec 2007)
+
+ 19 Dec 2007; Sébastien Fabbro <bicatali@gentoo.org> files/blas.pc.in,
+ files/lapack.pc.in, +acml-4.0.1.ebuild:
+ Version bump + fixed pkg-config files
+
+ 21 Nov 2007; Sébastien Fabbro <bicatali@gentoo.org> acml-3.6.0-r1.ebuild,
+ acml-3.6.1-r1.ebuild, acml-4.0.0.ebuild:
+ Removed PROVIDE, now lapack is new style virtual
+
+ 18 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org> acml-3.6.0-r1.ebuild,
+ acml-3.6.1-r1.ebuild, acml-4.0.0.ebuild:
+ Re-added temporarily PROVIDE=virtual/lapack
+
+ 11 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org> acml-3.6.0-r1.ebuild,
+ acml-3.6.1-r1.ebuild, acml-4.0.0.ebuild:
+ fixed lib->get_libdir for eselect bug workaround
+
+ 09 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org> -files/c-ACML.blas,
+ -files/eselect.blas, -files/eselect.blas-mp, -files/eselect.cblas,
+ -files/eselect.cblas-mp, -files/eselect.lapack, -files/eselect.lapack-mp,
+ -files/f77-ACML.blas, -files/f77-ACML.lapack, -acml-3.0.0.ebuild,
+ -acml-3.1.0-r1.ebuild, -acml-3.6.0.ebuild, acml-3.6.0-r1.ebuild,
+ -acml-3.6.1.ebuild, acml-3.6.1-r1.ebuild, acml-4.0.0.ebuild:
+ Removed old versions. Work around eselect bug #189942.
+
+*acml-4.0.0 (08 Oct 2007)
+*acml-3.6.1-r1 (08 Oct 2007)
+*acml-3.6.0-r1 (08 Oct 2007)
+
+ 08 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org> +files/blas.pc.in,
+ +files/lapack.pc.in, +acml-3.6.0-r1.ebuild, +acml-3.6.1-r1.ebuild,
+ +acml-4.0.0.ebuild:
+ Version bump. Fixed openmp profiles for acml-3.6.0-r1 and acml-3.6.1-r1.
+ Added a bunch of tests, now supports new virtual style. Remove any cblas
+ reference since API is not compatible.
+
+ 02 Jul 2007; Piotr Jaroszyński <peper@gentoo.org> acml-3.0.0.ebuild,
+ acml-3.1.0-r1.ebuild, acml-3.6.0.ebuild, acml-3.6.1.ebuild:
+ (QA) RESTRICT clean up.
+
+*acml-3.6.1 (01 Jun 2007)
+*acml-3.6.0 (01 Jun 2007)
+
+ 01 Jun 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/eselect.blas-mp, +files/eselect.cblas-mp, +files/eselect.lapack-mp,
+ +acml-3.6.0.ebuild, +acml-3.6.1.ebuild:
+ Version bump. Reorganized the ebuild to take into account new systems.
+ acml-3.6.0 is for g77 and ifc compilers, acml-3.6.1 for the gfortran
+ compiler. Added a multi-processor profile, only used with the ifc case, but
+ soon with gfortran-4.2. Fix bug #141127, thanks to Adam
+ <ediap@et.put.poznan.pl>, Sun Bing <subi.the.dream.walker@gmail.com> and
+ others in the bug.
+
+ 22 Feb 2007; Jeff Gardner <je_fro@gentoo.org> ChangeLog:
+ Really changing the manifest this time...
+
+ 22 Feb 2007; Jeff Gardner <je_fro@gentoo.org> files/digest-acml-3.0.0,
+ Manifest:
+ Updating acml-3.0.0 digest.
+
+ 08 Jan 2007; Danny van Dyk <kugelfang@gentoo.org> -acml-2.5.0.ebuild,
+ -acml-2.7.0.ebuild, -acml-3.1.0.ebuild:
+ Removed obsolete versions.
+
+ 01 Nov 2006; Donnie Berkholz <dberkholz@gentoo.org>; ChangeLog:
+ Update for my nick change spyderous -> dberkholz.
+
+ 27 Aug 2006; Donnie Berkholz <dberkholz@gentoo.org>; files/eselect.cblas:
+ (#141127) acml.h isn't compatible with cblas.h, so don't symlink it as if it
+ were.
+
+ 25 Aug 2006; Donnie Berkholz <dberkholz@gentoo.org>; +files/eselect.blas,
+ +files/eselect.cblas, +files/eselect.lapack:
+ Add eselect symlink maps, reported by Markus Dittrich.
+
+ 17 Aug 2006; Donnie Berkholz <dberkholz@gentoo.org>; acml-3.1.0-r1.ebuild:
+ Change einfo uses that should get read to elog.
+
+ 15 Aug 2006; Danny van Dyk <kugelfang@gentoo.org> acml-3.0.0.ebuild:
+ Marking stable on amd64 and x86.
+
+*acml-3.1.0-r1 (03 Jul 2006)
+
+ 03 Jul 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ +acml-3.1.0-r1.ebuild:
+ Bumps to switch to new eselect modules.
+
+ 15 May 2006; Donnie Berkholz <dberkholz@gentoo.org>; acml-2.5.0.ebuild:
+ Update homepage to match the others. Some programs cache the first one they
+ find, so they get the oldest homepage.
+
+ 10 May 2006; Danny van Dyk <kugelfang@gentoo.org> acml-2.5.0.ebuild,
+ acml-2.7.0.ebuild, acml-3.0.0.ebuild, acml-3.1.0.ebuild:
+ Fixed bug #128084: Symlinking acml.h to /usr/include/
+
+*acml-3.1.0 (10 May 2006)
+
+ 10 May 2006; Danny van Dyk <kugelfang@gentoo.org> acml-3.0.0.ebuild,
+ +acml-3.1.0.ebuild:
+ Marked acml-3.0.0 stable on amd64. Added version 3.1.0.
+
+*acml-3.0.0 (16 Nov 2005)
+
+ 16 Nov 2005; Danny van Dyk <kugelfang@gentoo.org> acml-2.7.0.ebuild,
+ +acml-3.0.0.ebuild:
+ Bumped to version 3.0.0. Changed dependencies for testing versions to at
+ least current app-admin/eselect.
+
+*acml-2.7.0 (31 Aug 2005)
+
+ 31 Aug 2005; Danny van Dyk <kugelfang@gentoo.org> -acml-2.1.0.ebuild,
+ acml-2.5.0.ebuild, +acml-2.7.0.ebuild:
+ Removed version 2.1.0. Marked stable version 2.5.0. Bumped to version 2.7.0.
+
+*acml-2.5.0 (03 Apr 2005)
+
+ 03 Apr 2005; Danny van Dyk <kugelfang@gentoo.org> +acml-2.5.0.ebuild:
+ Version bump to acml-2.5.0.
+
+*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 000000000..1ccc9e9ad
--- /dev/null
+++ b/sci-libs/acml/Manifest
@@ -0,0 +1,17 @@
+DIST acml-4-4-0-gfortran-32bit.tgz 20457025 RMD160 f3b0b67cea3d6343de4012c9339b606c513968e9 SHA1 b794e9da0d9ad3bf56b00b3a195956eb13862c78 SHA256 86f74cc28ecc988aee4244989549534e72e6703a5846d5c021723ff78d7e6690
+DIST acml-4-4-0-gfortran-64bit-int64.tgz 26792011 RMD160 a6533be7beada7c384e3b51d6d0bcd9d24f34d83 SHA1 88fa5e5e172f66a4736ab7f1ffda109a774c66a0 SHA256 bb2e478f47afac6acfbf68975f7562599168801bcc313b82208ec423c49fc1cf
+DIST acml-4-4-0-gfortran-64bit.tgz 27564183 RMD160 69a5addd8cfb47b59e404ff760c06c5754505954 SHA1 79d11e8a0883b991595b4ea65eac8f98b0b0c88d SHA256 a68547018c471e1a91b3e04663418e852455c42af4bd8248ca4f79bbfdd3d9ea
+DIST acml-4-4-0-ifort-32bit.tgz 26513669 RMD160 2216d42b4b18a751c0deb5d5970321064532c0df SHA1 c2ad1bfc1de5311228b62eca3cd71fb99b91a98e SHA256 2c274d580f749cf4ca7b5b0c250341a648d6305f8677a9306ddbbadfedbbcad1
+DIST acml-4-4-0-ifort-64bit-int64.tgz 36063135 RMD160 65466a110ef502235484c3cb7f830ea052b436eb SHA1 670abe749778ffee814cfe3fa0c8d11fd93787c5 SHA256 5a09bc347c92d726608b611674930167cce76d2d8238a339bef0f318b8bc0a21
+DIST acml-4-4-0-ifort-64bit.tgz 36707660 RMD160 96f426956a2233b96cdb3d7346bf979dd35154e3 SHA1 79a80ca51edfb248dd1fc742f47c78a08cbe44d9 SHA256 28657e7d54f95f411dd7fb3b1c75a86bd73c6bc8930a470541b8b7af53d0c840
+DIST acml-4-4-0-nag-32bit.tgz 13662569 RMD160 add84bccbba5e9a5abd8188b19834246dd3888dc SHA1 4a5fcc7f667d4351cb0362643ee45f16fd7a2e45 SHA256 9d30a129cda47f95c04fc964218a02b3b14e952ab9b7569fdb3809d130b39ef2
+DIST acml-4-4-0-nag-64bit-int64.tgz 18978245 RMD160 ee1d5b2d7784b339f1a6650a5cfb7650e8650fe5 SHA1 3b51b933f0e5a75c860a74b5b92854644b212b35 SHA256 3871e4e5fea35e8b7d55d9a96f31b764bed00e654e8ca82497061853e4485f3a
+DIST acml-4-4-0-nag-64bit.tgz 19062935 RMD160 3998794f8628b964c1f9fd80b91eb41cb9824bde SHA1 192d5199136b72377d92cbe0722e86245c8b2c5d SHA256 aa53a29ae88123dd82f16ba0f27588a667545e22e6a0e41ac01d1bfbb7128150
+DIST acml-4-4-0-open64-64bit-int64.tgz 42270987 RMD160 6b5accc19c7ae69b97f287cfe2ae3c0ef13192d5 SHA1 501434a2ded74c4103c445d4e0fc7b2c514f7f38 SHA256 2acd89b6cda5f4a5395906afb5dbbacb3f4074818f9d482ff3e42bd2ed5d0097
+DIST acml-4-4-0-open64-64bit.tgz 42812747 RMD160 aa29a615cf2b3294294162ccb89e9ade78735aa9 SHA1 64cc4d97a323427a959147476b828cca7199ca53 SHA256 42bee6d56deedd2817ac95c8cf99f84a0adaef5ebbb36059e600b58ec36d5188
+DIST acml-4-4-0-pgi-32bit.tgz 24562671 RMD160 78677d7f178e725ebe086d9690c8ee72026929ba SHA1 cc0ceff8e8f5cb4a15175e2256c8708a8a7d2fb6 SHA256 f956b3fdd3e825c4b993a16179a8df2f772eda851aa4dd7f4a16fffb20c10580
+DIST acml-4-4-0-pgi-64bit-int64.tgz 78664596 RMD160 2a0e9af1eef74009dce2a256d4da8382baf39133 SHA1 6648385c614d367bd18e29eb60be3f99df07ae1e SHA256 f1290edb9c5a91b667139ae4e8eec2486e7ccd3f2aa19f7f65667eef0d85eca0
+DIST acml-4-4-0-pgi-64bit.tgz 77842523 RMD160 e4c6770837f9eb511999872d280715e6827b5f65 SHA1 2087b20359d72b2e7886b12356d4da0d2d563503 SHA256 9c07dc0b90e9e491a0ddcf7849690338f21011aa4aa197ff3408f32a0b3fd6cf
+EBUILD acml-4.4.0-r1.ebuild 3646 RMD160 d65690d7b794603676fc1c22f6654bc1c732160b SHA1 edba606988b336aa4a788d81d883fe5271547f93 SHA256 41573d60d41485c39988d3b3fbab68612ad7917436c2acc35db32f91e715b706
+MISC ChangeLog 8614 RMD160 709ed6a62bb652c14fd8fc96de3649bc24d9d973 SHA1 403bc7772bd5b7a469de7fff883f2b06271e2397 SHA256 a3e7541d8b8bc2fb743769272649792f32f7df016ca04c425f6ef21799c38184
+MISC metadata.xml 1346 RMD160 df635430c989552278e7e2d262fbb32ffd11f99e SHA1 e1432a7d071c4f1ae567c7d0fe6708e46ceac4df SHA256 5e41050f4380164e761f836c29c818176cf23d239dc1e5aa29e4702cbbe85042
diff --git a/sci-libs/acml/acml-4.4.0-r1.ebuild b/sci-libs/acml/acml-4.4.0-r1.ebuild
new file mode 100644
index 000000000..65fcc3dab
--- /dev/null
+++ b/sci-libs/acml/acml-4.4.0-r1.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit eutils multilib toolchain-funcs versionator alternatives-2
+
+ACML_INST_DIR=opt/${PN}${PV}
+QA_PREBUILT="${ACML_INST_DIR}/*/lib/*"
+
+MYP=${PN}-$(replace_all_version_separators -)
+
+DESCRIPTION="AMD Core Math Library for x86 and amd64 CPUs"
+HOMEPAGE="http://developer.amd.com/cpu/libraries/acml/Pages/default.aspx"
+
+# here we go for the url mess
+FCOMP32="" FCOMP64=""
+URI="http://download2-developer.amd.com/amd/ACML"
+for fcomp in gfortran ifort nag pgi; do
+ FCOMP32="${FCOMP32} ${fcomp}? ( ${URI}/${MYP}-${fcomp}-32bit.tgz )"
+done
+for fcomp in gfortran ifort nag open64 pgi; do
+ FCOMP64="${FCOMP64} ${fcomp}? ( ${URI}/${MYP}-${fcomp}-64bit.tgz
+ int64? ( ${URI}/${MYP}-${fcomp}-64bit-int64.tgz ) )"
+done
+SRC_URI="
+ x86? ( ${FCOMP32} !gfortran? ( !ifort? ( !nag? ( !pgi? (
+ ${URI}/${MYP}-gfortran-32bit.tgz ) ) ) ) )
+ amd64? ( ${FCOMP64} multilib? ( ${FCOMP32} )
+ !gfortran? ( !ifort? ( !nag? ( !open64? ( !pgi? (
+ ${URI}/${MYP}-gfortran-64bit.tgz
+ multilib? ( ${URI}/${MYP}-gfortran-32bit.tgz )
+ int64? ( ${URI}/${MYP}-gfortran-64bit-int64.tgz ) ) ) ) ) ) )"
+
+LICENSE="ACML"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="doc examples int64 multilib openmp static-libs test gfortran ifort nag open64 pgi"
+RESTRICT="strip mirror"
+
+DEPEND="test? ( virtual/fortran )"
+RDEPEND="virtual/fortran"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+ unpack ./contents-acml-*.tgz
+ use openmp || rm -rf *_mp
+}
+
+src_test() {
+ local fdir d
+ for fdir in */examples; do
+ einfo "Testing acml in ${fdir}"
+ for d in . acml_mv; do
+ pushd ${fdir}/${d} > /dev/null
+ emake ACMLDIR="${S}/${fdir%/examples}"
+ emake clean
+ popd > /dev/null
+ done
+ done
+}
+
+src_install() {
+ # install libraries, pkgconfig file and eselect files for each profile
+ # fdef will be the default (gfortran if available) to be in path
+ local prof libs fdir libdir x fdef
+ for fdir in */lib; do
+ fdir=$(dirname ${fdir})
+ prof=acml$(echo ${fdir} | sed \
+ -e 's:mp:openmp:' \
+ -e 's:_:-:g' \
+ -e 's:\([a-z]*\)\(32\|64\)\(-openmp\|\)\(-int64\|\):\2\4-\1\3:')
+ use examples || rm -rf ${fdir}/examples
+ use static-libs || rm -f ${fdir}/lib/*.a
+ dodir /${ACML_INST_DIR}
+ cp -pPR ${fdir} "${ED}"/${ACML_INST_DIR}
+ libs="$(find ${fdir} -name \*.so -printf '%f ' | sed -e 's:lib:-l:g' -e 's:\.so::g')"
+ cat <<-EOF > ${prof}.pc
+ prefix=${EPREFIX}/${ACML_INST_DIR}/${fdir}
+ libdir=\${prefix}/lib
+ includedir=\${prefix}/include
+ Name: ${prof}
+ Description: ${DESCRIPTION}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} ${libs}
+ Cflags: -I\${includedir}
+ EOF
+ libdir=$(get_libdir)
+ has_multilib_profile && [[ ${fdir} == *32* ]] && libdir=lib32
+ insinto /usr/${libdir}/pkgconfig
+ doins ${prof}.pc
+ for x in blas lapack; do
+ alternatives_for ${x} ${prof} 0 \
+ /usr/${libdir}/pkgconfig/${x}.pc ${prof}.pc \
+ /${ACML_INST_DIR}/${libdir} ${fdir}/lib
+ done
+ [[ ${fdef} = gfortran${libdir#lib} ]] || fdef=${fdir}
+ done
+
+ # install env file
+ use openmp && [[ ${fdef} != *_mp ]] && fdef=${fdef}_mp
+ echo -n > 35acml "LDPATH=${EPREFIX}/${ACML_INST_DIR}/$(get_libdir)"
+ dosym ${fdef}/lib /${ACML_INST_DIR}/$(get_libdir)
+ if has_multilib_profile; then
+ dosym ${fdef/64/32}/lib /${ACML_INST_DIR}/lib32
+ echo -n >> 35acml ":${EPREFIX}/${ACML_INST_DIR}/lib32"
+ fi
+ echo >> 35acml
+ doenvd 35acml
+
+ insinto /${ACML_INST_DIR}
+ # info files go to standard /usr/share/info to avoid more env variables
+ doinfo Doc/*info*
+ rm Doc/*EULA* Doc/*info*
+ use doc || rm -rf Doc/*.pdf Doc/acml.html Doc/html
+ doins -r Doc ReleaseNotes*
+}
diff --git a/sci-libs/acml/metadata.xml b/sci-libs/acml/metadata.xml
new file mode 100644
index 000000000..b74951d01
--- /dev/null
+++ b/sci-libs/acml/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ The AMD(R) Core Math Library provides an implementation of the "Basic
+ Linear Algebra Subprograms" (BLAS) and the "Linear Algebra PACKage"
+ (LAPACK) as well as a set of "Fast Fourier Transformation" (FFT)
+ routines, all highly optimized for AMD(R) x86 and amd64 CPUs.
+</longdescription>
+<longdescription lang="de">
+ Die AMD(R) Core Math Library ist ein Ersatz für die "Basic Linear
+ Algebra Subprograms" (BLAS) und das "Linear Algebra PACKage" (LAPACK).
+ Außerdem enthält sie Routinen zur "Fast Fourier Tranformation" (FFT).
+ Alle Routinen sind hoch optimiert für AMD(R) x86 und amd64 CPUs.
+</longdescription>
+<use>
+ <flag name='gfortran'>Fetch and install acml compiled with GNU FORTRAN compiler</flag>
+ <flag name='ifort'>Fetch and install acml compiled with the Intel FORTRAN compiler</flag>
+ <flag name='nag'>Fetch and install acml compiled with the NAG FORTRAN compiler</flag>
+ <flag name='pgi'>Fetch and install acml compiled with the Portland Group FORTRAN compiler</flag>
+ <flag name='open64'>Fetch and install acml compiled with the Open64 FORTRAN Compiler</flag>
+ <flag name='int64'>Install the 64 bits integer library</flag>
+</use>
+</pkgmetadata>