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 1QuQfA-0007Jr-GW for garchives@archives.gentoo.org; Fri, 19 Aug 2011 15:07:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1390021C357 for ; Fri, 19 Aug 2011 15:07:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B60D021C07F for ; Fri, 19 Aug 2011 14:20:53 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 79B031B406A for ; Fri, 19 Aug 2011 14:20:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D211980040 for ; Fri, 19 Aug 2011 14:20:51 +0000 (UTC) From: "Andrea Arteaga" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrea Arteaga" Message-ID: Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/blas-reference/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/blas-reference/ChangeLog sci-libs/blas-reference/blas-reference-3.3.1-r1.ebuild sci-libs/blas-reference/metadata.xml X-VCS-Directories: sci-libs/blas-reference/ X-VCS-Committer: spiros X-VCS-Committer-Name: Andrea Arteaga X-VCS-Revision: fb7a0d09f0545b6b85c3aa2dba8f0bd40414b601 Date: Fri, 19 Aug 2011 14:20:51 +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: X-Archives-Hash: 4db540b5557a22bdf1242ca1fe3004d4 commit: fb7a0d09f0545b6b85c3aa2dba8f0bd40414b601 Author: Andrea Arteaga gmail com> AuthorDate: Fri Aug 19 14:20:00 2011 +0000 Commit: Andrea Arteaga gmail com> CommitDate: Fri Aug 19 14:20:00 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3Dfb7a0d09 Added blas-reference form bicatali overlay. --- sci-libs/blas-reference/ChangeLog | 32 ++++++++ .../blas-reference/blas-reference-3.3.1-r1.ebuild | 80 ++++++++++++++= ++++++ sci-libs/blas-reference/metadata.xml | 14 ++++ 3 files changed, 126 insertions(+), 0 deletions(-) diff --git a/sci-libs/blas-reference/ChangeLog b/sci-libs/blas-reference/= ChangeLog new file mode 100644 index 0000000..ad41a64 --- /dev/null +++ b/sci-libs/blas-reference/ChangeLog @@ -0,0 +1,32 @@ +# ChangeLog for sci-libs/blas-reference +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 19 Aug 2011 Andrea Arteaga +blas-reference-3.3.= 1-r1.ebuild + +Manifest +metadata.xml + Imported from bicatali overlay. + +*blas-reference-3.3.1-r1 (30 May 2011) + + 30 May 2011; S=C3=A9bastien Fabbro + -blas-reference-3.3.1.ebuild, +blas-reference-3.3.1-r1.ebuild: + Moved soname to librefblas.so. Avoid colliion in configure time + +*blas-reference-3.3.1 (20 Apr 2011) + + 20 Apr 2011; S=C3=A9bastien Fabbro + -files/3.3.0-cmake-install.patch, -blas-reference-3.3.0.ebuild, + +blas-reference-3.3.1.ebuild: + Version bump + + 23 Feb 2011; S=C3=A9bastien Fabbro + blas-reference-3.3.0.ebuild: + Switched to alternatives-2 framework + +*blas-reference-3.3.0 (13 Dec 2010) + + 13 Dec 2010; S=C3=A9bastien Fabbro + +files/3.3.0-cmake-install.patch, +blas-reference-3.3.0.ebuild, + +metadata.xml: + Version bump. Return to traditional versioning + diff --git a/sci-libs/blas-reference/blas-reference-3.3.1-r1.ebuild b/sci= -libs/blas-reference/blas-reference-3.3.1-r1.ebuild new file mode 100644 index 0000000..473701b --- /dev/null +++ b/sci-libs/blas-reference/blas-reference-3.3.1-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2011 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 BLAS and 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" + +RDEPEND=3D"virtual/fortran" +DEPEND=3D"${RDEPEND} + dev-util/pkgconfig" + +DOCS=3D( README ) + +S=3D"${WORKDIR}/${MYP}" + +src_prepare() { + # avoid collision with other blas + sed -i \ + -e 's:blas:refblas:g' \ + CMakeLists.txt BLAS/blas.pc.in BLAS/{SRC,TESTING}/CMakeLists.txt || di= e + sed -i \ + -e 's:BINARY_DIR}/blas:BINARY_DIR}/refblas:' \ + BLAS/CMakeLists.txt || die + export FC=3D$(tc-getFC) F77=3D$(tc-getF77) + use static-libs && mkdir "${WORKDIR}/${PN}_static" +} + +lapack_configure() { + mycmakeargs+=3D( + -DUSE_OPTIMIZED_BLAS=3DOFF + $(cmake-utils_use_build test TESTING) + ) + 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 -C BLAS + if use static-libs; then + CMAKE_BUILD_DIR=3D"${WORKDIR}/${PN}_static" \ + cmake-utils_src_compile -C BLAS + fi +} + +src_test() { + pushd "${CMAKE_BUILD_DIR}/BLAS" > /dev/null + local ctestargs + [[ -n ${TEST_VERBOSE} ]] && ctestargs=3D"--extra-verbose --output-on-fa= ilure" + ctest ${ctestargs} || die + popd > /dev/null +} + +src_install() { + cmake-utils_src_install -C BLAS + if use static-libs; then + CMAKE_BUILD_DIR=3D"${WORKDIR}/${PN}_static" \ + cmake-utils_src_install -C BLAS + fi + alternatives_for blas reference 0 \ + "/usr/$(get_libdir)/pkgconfig/blas.pc" "refblas.pc" +} diff --git a/sci-libs/blas-reference/metadata.xml b/sci-libs/blas-referen= ce/metadata.xml new file mode 100644 index 0000000..43c339b --- /dev/null +++ b/sci-libs/blas-reference/metadata.xml @@ -0,0 +1,14 @@ + + + +sci + + The BLAS (Basic Linear Algebra Subprograms) are high quality "building + block" routines for performing basic vector and matrix operations. Lev= el 1 + BLAS do vector-vector operations, Level 2 BLAS do matrix-vector operat= ions, + and Level 3 BLAS do matrix-matrix operations. Because the BLAS are + efficient, portable, and widely available, they're commonly used in th= e + development of high quality linear algebra software, LAPACK for + example. This packages implements the reference FORTRAN 77 library. + +