public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sebastien Fabbro" <bicatali@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/acml/
Date: Tue, 24 Jan 2012 21:50:36 +0000 (UTC)	[thread overview]
Message-ID: <740fa4c6174831fc13538421030bdc7144c47ddd.bicatali@gentoo> (raw)

commit:     740fa4c6174831fc13538421030bdc7144c47ddd
Author:     Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Tue Jan 24 21:50:18 2012 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 21:50:18 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=740fa4c6

sci-libs/acml: Version bump

(Portage version: 2.1.10.41/git/Linux x86_64, unsigned Manifest commit)

---
 sci-libs/acml/ChangeLog         |    7 ++-
 sci-libs/acml/acml-5.1.0.ebuild |  109 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 115 insertions(+), 1 deletions(-)

diff --git a/sci-libs/acml/ChangeLog b/sci-libs/acml/ChangeLog
index 2fce0e2..c2e0917 100644
--- a/sci-libs/acml/ChangeLog
+++ b/sci-libs/acml/ChangeLog
@@ -1,7 +1,12 @@
 # ChangeLog for sci-libs/acml
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2012 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 $
 
+*acml-5.1.0 (24 Jan 2012)
+
+  24 Jan 2012; Sébastien Fabbro <bicatali@gentoo.org> +acml-5.1.0.ebuild:
+  Version bump
+
   22 Aug 2011; Sébastien Fabbro <bicatali@gentoo.org> +acml-4.4.0-r1.ebuild,
   +metadata.xml:
   Imported from bicatali overlay

diff --git a/sci-libs/acml/acml-5.1.0.ebuild b/sci-libs/acml/acml-5.1.0.ebuild
new file mode 100644
index 0000000..a4919fd
--- /dev/null
+++ b/sci-libs/acml/acml-5.1.0.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit eutils 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
+FCOMP64=""
+URI="http://download2-developer.amd.com/amd/ACML"
+for fcomp in gfortran ifort open64 pgi; do
+	FCOMP64="${FCOMP64} ${fcomp}? ( ${URI}/${MYP}-${fcomp}-64bit.tgz
+			int64? ( ${URI}/${MYP}-${fcomp}-64bit-int64.tgz ) )"
+done
+SRC_URI="
+	amd64? ( ${FCOMP64}
+		!gfortran? ( !ifort? ( !open64? ( !pgi? (
+				${URI}/${MYP}-gfortran-64bit.tgz
+				int64? ( ${URI}/${MYP}-gfortran-64bit-int64.tgz ) ) ) ) ) )"
+
+LICENSE="ACML"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+IUSE="doc examples gfortran ifort int64 open64 openmp pgi static-libs test"
+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)
+		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)
+	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*
+}



             reply	other threads:[~2012-01-24 21:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-24 21:50 Sebastien Fabbro [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-09-02 11:39 [gentoo-commits] proj/sci:master commit in: sci-libs/acml/ David Seifert
2017-06-10 18:48 Andrew Savchenko
2017-04-21 20:21 Christoph Junghans
2016-08-31  7:02 Marius Brehler
2015-03-23  8:10 Justin Lecher
2015-02-02 12:06 Justin Lecher
2015-02-02 12:06 Justin Lecher
2015-02-02 12:06 Justin Lecher
2015-01-22  0:09 Christoph Junghans
2013-07-18 22:30 Sebastien Fabbro
2013-03-03 18:39 Sebastien Fabbro
2013-01-24 19:47 Sebastien Fabbro
2012-12-13  0:10 Sebastien Fabbro
2012-09-29 23:23 Sebastien Fabbro
2011-08-22 19:26 Sebastien Fabbro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=740fa4c6174831fc13538421030bdc7144c47ddd.bicatali@gentoo \
    --to=bicatali@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox