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 1QuQyG-0000DE-EH for garchives@archives.gentoo.org; Fri, 19 Aug 2011 15:26:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4D99A21C35E; Fri, 19 Aug 2011 15:26:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0362A21C35E for ; Fri, 19 Aug 2011 15:26:48 +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 4A5FF1B4082 for ; Fri, 19 Aug 2011 15:26:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 56E2D80040 for ; Fri, 19 Aug 2011 15:26:47 +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: <469b48527f1e0e0293b0450f111efb4c2d8f1860.spiros@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-9999.ebuild X-VCS-Directories: sci-libs/lapack-reference/ X-VCS-Committer: spiros X-VCS-Committer-Name: Andrea Arteaga X-VCS-Revision: 469b48527f1e0e0293b0450f111efb4c2d8f1860 Date: Fri, 19 Aug 2011 15:26:47 +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: 2688541fc024c2352b8dea597370a01c commit: 469b48527f1e0e0293b0450f111efb4c2d8f1860 Author: Andrea Arteaga gmail com> AuthorDate: Fri Aug 19 15:26:20 2011 +0000 Commit: Andrea Arteaga gmail com> CommitDate: Fri Aug 19 15:26:20 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D469b4852 Added svn version for lapack-reference. --- sci-libs/lapack-reference/ChangeLog | 5 + .../lapack-reference/lapack-reference-9999.ebuild | 86 ++++++++++++++= ++++++ 2 files changed, 91 insertions(+), 0 deletions(-) diff --git a/sci-libs/lapack-reference/ChangeLog b/sci-libs/lapack-refere= nce/ChangeLog index 2c9db2e..e39d124 100644 --- a/sci-libs/lapack-reference/ChangeLog +++ b/sci-libs/lapack-reference/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2011 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.3.1 (19 Aug 2011) + + 19 Aug 2011; Andrea Arteaga +lapack-reference-9= 999.ebuild + Added svn 9999 version. + 19 Aug 2011 Andrea Arteaga +lapack-reference-3.= 3.1-r1.ebuild +files/3.3.1-blas-libs.patch +files/3.3.1-xblas-libs.patch +Manifest += metadata.xml Imported from bicatali overlay. diff --git a/sci-libs/lapack-reference/lapack-reference-9999.ebuild b/sci= -libs/lapack-reference/lapack-reference-9999.ebuild new file mode 100644 index 0000000..fe1fc49 --- /dev/null +++ b/sci-libs/lapack-reference/lapack-reference-9999.ebuild @@ -0,0 +1,86 @@ +# 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 subversion + +MYP=3Dlapack-${PV} + +DESCRIPTION=3D"Reference implementation of LAPACK" +HOMEPAGE=3D"http://www.netlib.org/lapack/" +ESVN_REPO_URI=3D"https://icl.cs.utk.edu/svn/lapack-dev/lapack/trunk" + +LICENSE=3D"BSD" +SLOT=3D"0" +KEYWORDS=3D"" +IUSE=3D"static-libs test xblas" + +RDEPEND=3D"virtual/blas + virtual/fortran + xblas? ( sci-libs/xblas )" +DEPEND=3D"${RDEPEND} + dev-util/pkgconfig" + +DOCS=3D( README ) + +S=3D"${WORKDIR}/${MYP}" + +src_prepare() { + # not longer needed + #epatch \ + # "${FILESDIR}"/${PV}-blas-libs.patch \ + # "${FILESDIR}"/${PV}-xblas-libs.patch +=09 + # 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" +}