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 1RqTKG-0002qY-4s for garchives@archives.gentoo.org; Thu, 26 Jan 2012 17:41:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20A5CE09F2; Thu, 26 Jan 2012 17:41:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D87F8E09F2 for ; Thu, 26 Jan 2012 17:41:14 +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 4DB4E1B4036 for ; Thu, 26 Jan 2012 17:41:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id C17AB8004C for ; Thu, 26 Jan 2012 17:41:13 +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: <0876eccc8c2625eda199f98d4b79d4a0d3fa77eb.bicatali@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/lapack-reference/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/lapack-reference/ChangeLog sci-libs/lapack-reference/lapack-reference-3.4.0.ebuild X-VCS-Directories: sci-libs/lapack-reference/ X-VCS-Committer: bicatali X-VCS-Committer-Name: Sebastien Fabbro X-VCS-Revision: 0876eccc8c2625eda199f98d4b79d4a0d3fa77eb Date: Thu, 26 Jan 2012 17:41:13 +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: 950dfa8d-174e-46ab-97a9-b838a0a10d63 X-Archives-Hash: 4fbadbbb2750c6268fabe4e9d80e2b76 commit: 0876eccc8c2625eda199f98d4b79d4a0d3fa77eb Author: S=C3=A9bastien Fabbro gmail com> AuthorDate: Thu Jan 26 17:41:02 2012 +0000 Commit: Sebastien Fabbro gentoo org> CommitDate: Thu Jan 26 17:41:02 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D0876eccc sci-libs/lapack-reference: Version bump (Portage version: 2.1.10.41/git/Linux x86_64, unsigned Manifest commit) --- sci-libs/lapack-reference/ChangeLog | 8 ++- .../lapack-reference/lapack-reference-3.4.0.ebuild | 79 ++++++++++++++= ++++++ 2 files changed, 86 insertions(+), 1 deletions(-) diff --git a/sci-libs/lapack-reference/ChangeLog b/sci-libs/lapack-refere= nce/ChangeLog index e39d124..2006cee 100644 --- a/sci-libs/lapack-reference/ChangeLog +++ b/sci-libs/lapack-reference/ChangeLog @@ -1,7 +1,13 @@ # ChangeLog for sci-libs/lapack-reference -# 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/lapack-reference/ChangeLog,v= 1.51 2010/10/02 20:49:51 grobian Exp $ =20 +*lapack-reference-3.4.0 (26 Jan 2012) + + 26 Jan 2012; S=C3=A9bastien Fabbro + +lapack-reference-3.4.0.ebuild: + Version bump + *lapack-reference-3.3.1 (19 Aug 2011) =20 19 Aug 2011; Andrea Arteaga +lapack-reference-9= 999.ebuild diff --git a/sci-libs/lapack-reference/lapack-reference-3.4.0.ebuild b/sc= i-libs/lapack-reference/lapack-reference-3.4.0.ebuild new file mode 100644 index 0000000..d7187cb --- /dev/null +++ b/sci-libs/lapack-reference/lapack-reference-3.4.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D4 +inherit eutils toolchain-funcs cmake-utils alternatives-2 + +MYP=3Dlapack-${PV} + +DESCRIPTION=3D"Reference implementation of LAPACK" +HOMEPAGE=3D"http://www.netlib.org/lapack/" +SRC_URI=3D"http://www.netlib.org/lapack/${MYP}.tgz" + +LICENSE=3D"BSD" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"static-libs test xblas" + +RDEPEND=3D"virtual/blas + virtual/fortran + xblas? ( sci-libs/xblas )" +DEPEND=3D"${RDEPEND} + dev-util/pkgconfig" + +S=3D"${WORKDIR}/${MYP}" + +src_prepare() { + # avoid collision with other lapack + sed -i \ + -e 's:BINARY_DIR}/lapack.pc:BINARY_DIR}/reflapack.pc:' \ + -e '/export/s:lapack:reflapack:g' \ + CMakeLists.txt || die + sed -i \ + -e 's:(lapack:(reflapack:g' \ + SRC/CMakeLists.txt || die + sed -i \ + -e 's:lapack:reflapack:g' \ + TESTING/*/CMakeLists.txt || die + sed -i \ + -e 's:-llapack:-lreflapack:g' \ + lapack.pc.in || die + export FC=3D$(tc-getFC) F77=3D$(tc-getF77) + use static-libs && mkdir "${WORKDIR}/${PN}_static" +} + +lapack_configure() { + mycmakeargs+=3D( + -DUSE_OPTIMIZED_BLAS=3DON + -DBLAS_LIBRARIES=3D"$(pkg-config --libs blas)" + $(cmake-utils_use_build test TESTING) + $(cmake-utils_use xblas XBLAS) + ) + cmake-utils_src_configure +} + +src_configure() { + mycmakeargs=3D( -DBUILD_SHARED_LIBS=3DON ) + lapack_configure + if use static-libs; then + mycmakeargs=3D( -DBUILD_SHARED_LIBS=3DOFF ) + CMAKE_BUILD_DIR=3D"${WORKDIR}/${PN}_static" lapack_configure + fi +} + +src_compile() { + cmake-utils_src_compile + if use static-libs; then + CMAKE_BUILD_DIR=3D"${WORKDIR}/${PN}_static" cmake-utils_src_compile + fi +} + +src_install() { + cmake-utils_src_install + if use static-libs; then + CMAKE_BUILD_DIR=3D"${WORKDIR}/${PN}_static" cmake-utils_src_install + fi + alternatives_for lapack reference 0 \ + "/usr/$(get_libdir)/pkgconfig/lapack.pc" "reflapack.pc" +}