public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sebastien Fabbro" <bicatali@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/blas-reference/
Date: Fri, 26 Oct 2012 16:53:34 +0000 (UTC)	[thread overview]
Message-ID: <1350827231.a8d9cb3d0246c502ca6ddf4c084cb07eaf24bd0e.bicatali@gentoo> (raw)

commit:     a8d9cb3d0246c502ca6ddf4c084cb07eaf24bd0e
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 21 13:47:11 2012 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Sun Oct 21 13:47:11 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=a8d9cb3d

sci-libs/blas-reference: Version bump, revert to change soname to refblas

(Portage version: 2.2.0_alpha135/git/Linux x86_64, unsigned Manifest commit)

---
 sci-libs/blas-reference/ChangeLog                  |    7 ++-
 .../blas-reference/blas-reference-20120925.ebuild  |   73 ++++++++++++++++++++
 2 files changed, 79 insertions(+), 1 deletions(-)

diff --git a/sci-libs/blas-reference/ChangeLog b/sci-libs/blas-reference/ChangeLog
index 3f65032..1a158e6 100644
--- a/sci-libs/blas-reference/ChangeLog
+++ b/sci-libs/blas-reference/ChangeLog
@@ -2,6 +2,12 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*blas-reference-20120925 (21 Oct 2012)
+
+  21 Oct 2012; Sébastien Fabbro <bicatali@gentoo.org>
+  +blas-reference-20120925.ebuild:
+  sci-libs/blas-reference: Version bump, revert to change soname to refblas
+
   22 May 2012; Justin Lecher <jlec@gentoo.org> blas-reference-20120423.ebuild:
   Add missing eutils.eclass
 
@@ -85,4 +91,3 @@
   +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-20120925.ebuild b/sci-libs/blas-reference/blas-reference-20120925.ebuild
new file mode 100644
index 0000000..75c62a5
--- /dev/null
+++ b/sci-libs/blas-reference/blas-reference-20120925.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit alternatives-2 eutils cmake-utils fortran-2
+
+MYP=lapack-3.4.2
+
+DESCRIPTION="Reference implementation of BLAS"
+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 test"
+
+RDEPEND="virtual/fortran"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig"
+
+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
+	use static-libs && mkdir "${WORKDIR}/${PN}_static"
+}
+
+src_configure() {
+	blas_configure() {
+		local mycmakeargs=(
+			-DUSE_OPTIMIZED_BLAS=OFF
+			$(cmake-utils_use_build test TESTING)
+			$@
+		)
+		cmake-utils_src_configure
+	}
+
+	blas_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF
+	use static-libs && \
+		CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" blas_configure \
+		-DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON
+}
+
+src_compile() {
+	cmake-utils_src_compile -C BLAS
+	use static-libs && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" \
+		cmake-utils_src_compile -C BLAS
+}
+
+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
+	use static-libs && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" \
+			cmake-utils_src_install -C BLAS
+	alternatives_for blas reference 0 \
+		/usr/$(get_libdir)/pkgconfig/blas.pc refblas.pc
+}


             reply	other threads:[~2012-10-26 16:53 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-26 16:53 Sebastien Fabbro [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-06-21 19:47 [gentoo-commits] proj/sci:master commit in: sci-libs/blas-reference/ Justin Lecher
2018-06-21 19:47 Justin Lecher
2018-06-21 19:47 Justin Lecher
2018-06-21 19:47 Justin Lecher
2016-10-12  6:30 Marius Brehler
2015-12-03  9:55 Justin Lecher
2015-12-03  9:54 Justin Lecher
2015-11-30 18:33 Justin Lecher
2015-11-30 18:33 Justin Lecher
2013-05-27 16:51 Sebastien Fabbro
2013-05-25  4:40 Sebastien Fabbro
2012-12-13  0:10 Sebastien Fabbro
2012-12-13  0:10 Sebastien Fabbro
2012-05-22 19:43 Justin Lecher
2012-04-25 15:10 Justin Lecher
2012-04-25  6:47 Justin Lecher
2012-04-23 18:43 Sebastien Fabbro
2012-02-23  9:18 Justin Lecher
2012-02-17 16:26 Sebastien Fabbro
2012-02-16  0:38 Sebastien Fabbro
2012-01-26 17:41 Sebastien Fabbro
2012-01-03 21:17 Sebastien Fabbro
2011-08-19 14:20 Andrea Arteaga

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=1350827231.a8d9cb3d0246c502ca6ddf4c084cb07eaf24bd0e.bicatali@gentoo \
    --to=bicatali@gentoo.org \
    --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