From: "Andrea Arteaga" <andyspiros@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/blas-reference/
Date: Fri, 19 Aug 2011 14:20:51 +0000 (UTC) [thread overview]
Message-ID: <fb7a0d09f0545b6b85c3aa2dba8f0bd40414b601.spiros@gentoo> (raw)
commit: fb7a0d09f0545b6b85c3aa2dba8f0bd40414b601
Author: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Fri Aug 19 14:20:00 2011 +0000
Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Fri Aug 19 14:20:00 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=fb7a0d09
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 <andyspiros@gmail.com> +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ébastien Fabbro <bicatali@gentoo.org>
+ -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ébastien Fabbro <bicatali@gentoo.org>
+ -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ébastien Fabbro <bicatali@gentoo.org>
+ blas-reference-3.3.0.ebuild:
+ Switched to alternatives-2 framework
+
+*blas-reference-3.3.0 (13 Dec 2010)
+
+ 13 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ +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=4
+inherit eutils toolchain-funcs cmake-utils alternatives-2
+
+MYP=lapack-${PV}
+
+DESCRIPTION="Reference implementation of BLAS and LAPACK"
+HOMEPAGE="http://www.netlib.org/lapack/"
+SRC_URI="http://www.netlib.org/lapack/${MYP}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs test"
+
+RDEPEND="virtual/fortran"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+DOCS=( README )
+
+S="${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 || die
+ sed -i \
+ -e 's:BINARY_DIR}/blas:BINARY_DIR}/refblas:' \
+ BLAS/CMakeLists.txt || die
+ export FC=$(tc-getFC) F77=$(tc-getF77)
+ use static-libs && mkdir "${WORKDIR}/${PN}_static"
+}
+
+lapack_configure() {
+ mycmakeargs+=(
+ -DUSE_OPTIMIZED_BLAS=OFF
+ $(cmake-utils_use_build test TESTING)
+ )
+ cmake-utils_src_configure
+}
+
+src_configure() {
+ mycmakeargs=( -DBUILD_SHARED_LIBS=ON )
+ lapack_configure
+ if use static-libs; then
+ mycmakeargs=( -DBUILD_SHARED_LIBS=OFF )
+ CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" lapack_configure
+ fi
+}
+
+src_compile() {
+ cmake-utils_src_compile -C BLAS
+ if use static-libs; then
+ CMAKE_BUILD_DIR="${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="--extra-verbose --output-on-failure"
+ ctest ${ctestargs} || die
+ popd > /dev/null
+}
+
+src_install() {
+ cmake-utils_src_install -C BLAS
+ if use static-libs; then
+ CMAKE_BUILD_DIR="${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-reference/metadata.xml
new file mode 100644
index 0000000..43c339b
--- /dev/null
+++ b/sci-libs/blas-reference/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ The BLAS (Basic Linear Algebra Subprograms) are high quality "building
+ block" routines for performing basic vector and matrix operations. Level 1
+ BLAS do vector-vector operations, Level 2 BLAS do matrix-vector operations,
+ and Level 3 BLAS do matrix-matrix operations. Because the BLAS are
+ efficient, portable, and widely available, they're commonly used in the
+ development of high quality linear algebra software, LAPACK for
+ example. This packages implements the reference FORTRAN 77 library.
+</longdescription>
+</pkgmetadata>
next reply other threads:[~2011-08-19 15:07 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-19 14:20 Andrea Arteaga [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-01-03 21:17 [gentoo-commits] proj/sci:master commit in: sci-libs/blas-reference/ Sebastien Fabbro
2012-01-26 17:41 Sebastien Fabbro
2012-02-16 0:38 Sebastien Fabbro
2012-02-17 16:26 Sebastien Fabbro
2012-02-23 9:18 Justin Lecher
2012-04-23 18:43 Sebastien Fabbro
2012-04-25 6:47 Justin Lecher
2012-04-25 15:10 Justin Lecher
2012-05-22 19:43 Justin Lecher
2012-10-26 16:53 Sebastien Fabbro
2012-12-13 0:10 Sebastien Fabbro
2012-12-13 0:10 Sebastien Fabbro
2013-05-25 4:40 Sebastien Fabbro
2013-05-27 16:51 Sebastien Fabbro
2015-11-30 18:33 Justin Lecher
2015-11-30 18:33 Justin Lecher
2015-12-03 9:54 Justin Lecher
2015-12-03 9:55 Justin Lecher
2016-10-12 6:30 Marius Brehler
2018-06-21 19:47 Justin Lecher
2018-06-21 19:47 Justin Lecher
2018-06-21 19:47 Justin Lecher
2018-06-21 19:47 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fb7a0d09f0545b6b85c3aa2dba8f0bd40414b601.spiros@gentoo \
--to=andyspiros@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox