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 7422A1381F3 for ; Thu, 29 Nov 2012 00:09:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6BD8D21C004; Thu, 29 Nov 2012 00:09:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CF65621C004 for ; Thu, 29 Nov 2012 00:09:36 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A199533D968 for ; Thu, 29 Nov 2012 00:09:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 1DAB1E5436 for ; Thu, 29 Nov 2012 00:09:34 +0000 (UTC) From: "Sebastien Fabbro" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastien Fabbro" Message-ID: <1354147748.74f60e1643bc61885d9639eb8c4c8a104dc394bc.bicatali@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/tmglib/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/tmglib/ChangeLog sci-libs/tmglib/metadata.xml sci-libs/tmglib/tmglib-3.4.2.ebuild X-VCS-Directories: sci-libs/tmglib/ X-VCS-Committer: bicatali X-VCS-Committer-Name: Sebastien Fabbro X-VCS-Revision: 74f60e1643bc61885d9639eb8c4c8a104dc394bc X-VCS-Branch: master Date: Thu, 29 Nov 2012 00:09:34 +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: a8e8623a-f2af-4cb3-a257-b843daadde81 X-Archives-Hash: 35f15b2946a6cafbd2560cb218f4ba21 commit: 74f60e1643bc61885d9639eb8c4c8a104dc394bc Author: Sébastien Fabbro gentoo org> AuthorDate: Thu Nov 29 00:09:08 2012 +0000 Commit: Sebastien Fabbro gentoo org> CommitDate: Thu Nov 29 00:09:08 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=74f60e16 sci-libs/tmglib: Initial import Package-Manager: portage-2.2.01.21313-prefix --- sci-libs/tmglib/ChangeLog | 9 +++++ sci-libs/tmglib/metadata.xml | 9 +++++ sci-libs/tmglib/tmglib-3.4.2.ebuild | 59 +++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 0 deletions(-) diff --git a/sci-libs/tmglib/ChangeLog b/sci-libs/tmglib/ChangeLog new file mode 100644 index 0000000..2bfcf4a --- /dev/null +++ b/sci-libs/tmglib/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sci-libs/tmglib +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*tmglib-3.4.2 (29 Nov 2012) + + 29 Nov 2012; Sébastien Fabbro +metadata.xml, + +tmglib-3.4.2.ebuild: + sci-libs/tmglib: Initial import diff --git a/sci-libs/tmglib/metadata.xml b/sci-libs/tmglib/metadata.xml new file mode 100644 index 0000000..ea03b28 --- /dev/null +++ b/sci-libs/tmglib/metadata.xml @@ -0,0 +1,9 @@ + + + +sci + + This is a library to generate matrices to test LAPACK + implementations. + + diff --git a/sci-libs/tmglib/tmglib-3.4.2.ebuild b/sci-libs/tmglib/tmglib-3.4.2.ebuild new file mode 100644 index 0000000..62dda7a --- /dev/null +++ b/sci-libs/tmglib/tmglib-3.4.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit cmake-utils fortran-2 + +MYP=lapack-3.4.2 + +DESCRIPTION="Test Matrix Generator library for LAPACK" +HOMEPAGE="http://www.netlib.org/lapack/" +SRC_URI="http://www.netlib.org/lapack/${MYP}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs" + +RDEPEND="virtual/lapack" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${MYP}" + +src_prepare() { + use static-libs && mkdir "${WORKDIR}/${PN}_static" +} + +src_configure() { + tmg_configure() { + local mycmakeargs=( + -DUSE_OPTIMIZED_BLAS=ON + -DUSE_OPTIMIZED_LAPACK=ON + -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" + -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" + -DTESTING=ON + $@ + ) + cmake-utils_src_configure + } + + tmg_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF + use static-libs && \ + CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" tmg_configure \ + -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON +} + +src_compile() { + cmake-utils_src_compile -C TESTING/MATGEN + use static-libs && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" \ + cmake-utils_src_compile -C TESTING/MATGEN +} + +src_install() { + cmake-utils_src_install -C TESTING/MATGEN + use static-libs && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" \ + cmake-utils_src_install -C TESTING/MATGEN +}