From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6D694138A1A for ; Mon, 2 Feb 2015 12:06:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 06200E0922; Mon, 2 Feb 2015 12:06:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8402DE0922 for ; Mon, 2 Feb 2015 12:06:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 93B5E3406F8 for ; Mon, 2 Feb 2015 12:06:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1D4F510E55 for ; Mon, 2 Feb 2015 12:06:26 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1422867103.f66fc758203a922959b415a3a4e0814aeba74b9f.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/acml/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/acml/ChangeLog sci-libs/acml/acml-6.1.0.31.ebuild X-VCS-Directories: sci-libs/acml/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: f66fc758203a922959b415a3a4e0814aeba74b9f X-VCS-Branch: master Date: Mon, 2 Feb 2015 12:06:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3ffbea76-0a44-4662-8350-0671324ffb13 X-Archives-Hash: 4fd7d9f16476d0e2dd7f2eda9ef30df2 commit: f66fc758203a922959b415a3a4e0814aeba74b9f Author: Marius Brehler linux sungazer de> AuthorDate: Mon Feb 2 08:51:43 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Mon Feb 2 08:51:43 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f66fc758 sci-libs/acml/acml-6.1.0.3: Version bump --- sci-libs/acml/ChangeLog | 6 +++ sci-libs/acml/acml-6.1.0.31.ebuild | 100 +++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) diff --git a/sci-libs/acml/ChangeLog b/sci-libs/acml/ChangeLog index 4c6ae9a..97bf101 100644 --- a/sci-libs/acml/ChangeLog +++ b/sci-libs/acml/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*acml-6.1.0.31 (02 Feb 2015) + + 02 Feb 2015; Marius Brehler + +acml-6.1.0.21.ebuild: + Version bump + 02 Feb 2015; Marius Brehler acml-5.3.0.ebuild: Convert fma to cpu_flags_x86_fma4 diff --git a/sci-libs/acml/acml-6.1.0.31.ebuild b/sci-libs/acml/acml-6.1.0.31.ebuild new file mode 100644 index 0000000..02dd4fa --- /dev/null +++ b/sci-libs/acml/acml-6.1.0.31.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils multilib toolchain-funcs versionator alternatives-2 fortran-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 amd64 CPUs" +HOMEPAGE="http://developer.amd.com/tools-and-sdks/cpu-development/amd-core-math-library-acml/" +CURI="http://developer.amd.com/tools-and-sdks/cpu-development/amd-core-math-library-acml/acml-downloads-resources/#download" +SRC_URI="gfortran? ( ${P}-gfortran64.tgz )" + +LICENSE="ACML-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~amd64-linux" +IUSE="doc examples cpu_flags_x86_fma4 +gfortran openmp test" +RESTRICT="strip mirror" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}" + +pkg_nofetch() { + einfo "Please download" + einfo "$SRC_URI" + einfo " ${CURI} and place it in ${DISTDIR}" +} + +src_unpack() { + unpack ${A} + use openmp || rm -rf *_mp* +} + +src_test() { + local fdir d + for fdir in */examples; do + einfo "Testing acml in ${fdir}" + pushd ${fdir} > /dev/null + emake ACMLDIR="${S}/${fdir%/examples}" + emake clean + popd > /dev/null + done +} + +src_install() { + # install libraries, pkgconfig file and eselect files for each profile + local prof libs fdir libdir=$(get_libdir) x + for fdir in */lib; do + fdir=$(dirname ${fdir}) + prof=acml-$(echo ${fdir} | sed \ + -e 's:mp:openmp:' \ + -e 's:_:-:g') + use examples || rm -r ${fdir}/examples + dodir /${ACML_INST_DIR} + cp -pPR ${fdir} "${ED}"/${ACML_INST_DIR} || die + libs="$(find ${fdir} -name \*.so -printf '%f ' | sed -e 's:lib:-l:g' -e 's:\.so::g')" + cat <<-EOF > ${prof}.pc + prefix=${EROOT}/${ACML_INST_DIR}/${fdir} + libdir=\${prefix}/lib + includedir=\${prefix}/include + Name: ${prof} + Description: ${DESCRIPTION} + Version: ${PV} + URL: ${HOMEPAGE} + Libs: -L\${libdir} ${libs} + Libs.private: -lm -lrt ${threads} + Cflags: -I\${includedir} + EOF + 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 + done + + echo > 35acml "LDPATH=${EROOT}/${ACML_INST_DIR}/${libdir}" + doenvd 35acml + + # default profile: first one matching use flags + local opts=gfortran64 + use cpu_flags_x86_fma4 && opts+="_fma4" + use openmp && opts+="_mp" + dosym $(ls -1d */lib | grep ${opts}) /${ACML_INST_DIR}/${libdir} + + 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* || die + use doc || rm -r Doc/*.pdf Doc/acml.html Doc/html + doins -r Doc ReleaseNotes* +}