From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RpoGM-0001Pd-EW for garchives@archives.gentoo.org; Tue, 24 Jan 2012 21:50:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A14B2E079A; Tue, 24 Jan 2012 21:50:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5A1C4E079A for ; Tue, 24 Jan 2012 21:50:38 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8DBCE1B402A for ; Tue, 24 Jan 2012 21:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id EE7768004C for ; Tue, 24 Jan 2012 21:50:36 +0000 (UTC) From: "Sebastien Fabbro" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastien Fabbro" Message-ID: <740fa4c6174831fc13538421030bdc7144c47ddd.bicatali@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-5.1.0.ebuild X-VCS-Directories: sci-libs/acml/ X-VCS-Committer: bicatali X-VCS-Committer-Name: Sebastien Fabbro X-VCS-Revision: 740fa4c6174831fc13538421030bdc7144c47ddd Date: Tue, 24 Jan 2012 21:50:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 94460ec1-f8e7-457b-b1b6-bfd99fe35153 X-Archives-Hash: 0f5f36ffd39f7f8f62f781461e39afa6 commit: 740fa4c6174831fc13538421030bdc7144c47ddd Author: S=C3=A9bastien Fabbro gmail com> AuthorDate: Tue Jan 24 21:50:18 2012 +0000 Commit: Sebastien Fabbro gentoo org> CommitDate: Tue Jan 24 21:50:18 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D740fa4c6 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/0= 7/07 23:27:59 flameeyes Exp $ =20 +*acml-5.1.0 (24 Jan 2012) + + 24 Jan 2012; S=C3=A9bastien Fabbro +acml-5.1.0.e= build: + Version bump + 22 Aug 2011; S=C3=A9bastien Fabbro +acml-4.4.0-r= 1.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.e= build 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=3D4 + +inherit eutils toolchain-funcs versionator alternatives-2 + +ACML_INST_DIR=3Dopt/${PN}${PV} +QA_PREBUILT=3D"${ACML_INST_DIR}/*/lib/*" + +MYP=3D${PN}-$(replace_all_version_separators -) + +DESCRIPTION=3D"AMD Core Math Library for x86 and amd64 CPUs" +HOMEPAGE=3D"http://developer.amd.com/cpu/libraries/acml/Pages/default.as= px" + +# here we go for the url mess +FCOMP64=3D"" +URI=3D"http://download2-developer.amd.com/amd/ACML" +for fcomp in gfortran ifort open64 pgi; do + FCOMP64=3D"${FCOMP64} ${fcomp}? ( ${URI}/${MYP}-${fcomp}-64bit.tgz + int64? ( ${URI}/${MYP}-${fcomp}-64bit-int64.tgz ) )" +done +SRC_URI=3D" + amd64? ( ${FCOMP64} + !gfortran? ( !ifort? ( !open64? ( !pgi? ( + ${URI}/${MYP}-gfortran-64bit.tgz + int64? ( ${URI}/${MYP}-gfortran-64bit-int64.tgz ) ) ) ) ) )" + +LICENSE=3D"ACML" +SLOT=3D"0" +KEYWORDS=3D"-* ~amd64" +IUSE=3D"doc examples gfortran ifort int64 open64 openmp pgi static-libs = test" +RESTRICT=3D"strip mirror" + +DEPEND=3D"test? ( virtual/fortran )" +RDEPEND=3D"virtual/fortran" + +S=3D"${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=3D"${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=3D$(dirname ${fdir}) + prof=3Dacml$(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=3D"$(find ${fdir} -name \*.so -printf '%f ' | sed -e 's:lib:-l:g'= -e 's:\.so::g')" + cat <<-EOF > ${prof}.pc + prefix=3D${EPREFIX}/${ACML_INST_DIR}/${fdir} + libdir=3D\${prefix}/lib + includedir=3D\${prefix}/include + Name: ${prof} + Description: ${DESCRIPTION} + Version: ${PV} + URL: ${HOMEPAGE} + Libs: -L\${libdir} ${libs} + Cflags: -I\${includedir} + EOF + libdir=3D$(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} =3D gfortran${libdir#lib} ]] || fdef=3D${fdir} + done + + # install env file + use openmp && [[ ${fdef} !=3D *_mp ]] && fdef=3D${fdef}_mp + echo -n > 35acml "LDPATH=3D${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* +}