From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/lapack-reference/
Date: Mon, 6 Oct 2014 05:56:38 +0000 (UTC) [thread overview]
Message-ID: <1411816323.2d1a9cc85292ef5eabe106a9f00625092ba007b9.jlec@gentoo> (raw)
commit: 2d1a9cc85292ef5eabe106a9f00625092ba007b9
Author: gienah <gienah <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 27 11:12:03 2014 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Sep 27 11:12:03 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2d1a9cc8
Fix rebase lapack-multibuild to master conflict 2 on sci-libs/lapack-reference
---
sci-libs/lapack-reference/ChangeLog | 4 +++
.../lapack-reference/lapack-reference-9999.ebuild | 30 ++++++++++++++++++----
2 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/sci-libs/lapack-reference/ChangeLog b/sci-libs/lapack-reference/ChangeLog
index 4df9585..6fbd2ea 100644
--- a/sci-libs/lapack-reference/ChangeLog
+++ b/sci-libs/lapack-reference/ChangeLog
@@ -11,6 +11,10 @@
lapack-reference-9999.ebuild:
Add xblas to the .pc file when it is in use see bug#523388
+ 26 Apr 2014; Mark Wright <gienah@gentoo.org> lapack-reference-9999.ebuild:
+ Add >=virtual/blas-2.1-r2[int64?] and >=virtual/lapack-3.5-r2[int64?] to
+ RDEPEND. Use separate eselect modules for lapack and lapack-int64.
+
18 Feb 2014; Mark Wright <gienah@gentoo.org> lapack-reference-9999.ebuild,
metadata.xml:
multibuild lapack-reference when USE=int64 and/or USE=static is specified.
diff --git a/sci-libs/lapack-reference/lapack-reference-9999.ebuild b/sci-libs/lapack-reference/lapack-reference-9999.ebuild
index 57d64e5..17f3a04 100644
--- a/sci-libs/lapack-reference/lapack-reference-9999.ebuild
+++ b/sci-libs/lapack-reference/lapack-reference-9999.ebuild
@@ -31,8 +31,10 @@ SLOT="0"
IUSE="int64 static-libs test xblas"
RDEPEND="
- virtual/blas
+ >=virtual/blas-2.1-r1[int64?]
+ >=virtual/lapack-3.5-r2[int64?]
xblas? ( sci-libs/xblas[fortran] )"
+
DEPEND="${RDEPEND}
virtual/pkgconfig"
@@ -56,10 +58,18 @@ get_variant_suffix() {
echo "${variant_suffix}"
}
+get_blas_module() {
+ local module_name="blas"
+ if [[ "${MULTIBUILD_ID}" =~ "_${INT64_SUFFIX}" ]]; then
+ module_name+="-${INT64_SUFFIX}"
+ fi
+ echo "${module_name}"
+}
+
get_blas_profname() {
local profname="${1:-$(get_profname)}"
local variant_suffix=$(get_variant_suffix "${profname}")
- local blas_profile=$(eselect blas show)
+ local blas_profile=$(eselect $(get_blas_module) show)
local selected_blas_profile="${blas_profile}"
local blas_no_int64="${selected_blas_profile/-int64/}"
local blas_base="${blas_no_int64%-*}"
@@ -67,9 +77,18 @@ get_blas_profname() {
echo "${blas_name}"
}
+get_lapack_module() {
+ local module_name="lapack"
+ if [[ "${MULTIBUILD_ID}" =~ "_${INT64_SUFFIX}" ]]; then
+ module_name+="-${INT64_SUFFIX}"
+ fi
+ echo "${module_name}"
+}
+
int64_multilib_get_enabled_abis() {
local MULTILIB_VARIANTS=( $(multilib_get_enabled_abis) )
local MULTILIB_INT64_VARIANTS=()
+ local i
for i in "${MULTILIB_VARIANTS[@]}"; do
if use int64 && [[ "${i}" =~ 64$ ]]; then
MULTILIB_INT64_VARIANTS+=( "${i}_${INT64_SUFFIX}" )
@@ -77,6 +96,7 @@ int64_multilib_get_enabled_abis() {
MULTILIB_INT64_VARIANTS+=( "${i}" )
done
local MULTIBUILD_VARIANTS=()
+ local j
for j in "${MULTILIB_INT64_VARIANTS[@]}"; do
use static-libs && MULTIBUILD_VARIANTS+=( "${j}_${STATIC_SUFFIX}" )
MULTIBUILD_VARIANTS+=( "${j}" )
@@ -103,7 +123,7 @@ src_prepare() {
local MULTIBUILD_VARIANTS=( $(int64_multilib_get_enabled_abis) )
if use int64; then
local blas_int64_profname=$(get_blas_profname "${BASE_PROFNAME}-${INT64_SUFFIX}")
- pkg-config --exists "${blas_int64_profname}" || die "Use int64 requires ${blas_int64_profname}"
+ $(tc-getPKG_CONFIG) --exists "${blas_int64_profname}" || die "Use int64 requires ${blas_int64_profname}"
fi
# rename library to avoid collision with other lapack implementations
@@ -200,8 +220,8 @@ src_install() {
cmake-utils_src_install
if [[ ! "${MULTIBUILD_ID}" =~ "_${STATIC_SUFFIX}" ]]; then
local profname=$(get_profname)
- alternatives_for lapack $(get_profname "reference") 0 \
- /usr/$(get_libdir)/pkgconfig/lapack.pc ${profname}.pc
+ alternatives_for $(get_lapack_module) $(get_profname "reference") 0 \
+ /usr/$(get_libdir)/pkgconfig/$(get_lapack_module).pc ${profname}.pc
fi
}
multibuild_foreach_variant _int64_multilib_multibuild_wrapper my_src_install
next reply other threads:[~2014-10-06 5:56 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-06 5:56 Justin Lecher [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/lapack-reference/ Justin Lecher
2018-06-21 18:43 Justin Lecher
2018-06-21 18:43 Justin Lecher
2018-06-21 18:43 Justin Lecher
2016-10-12 6:30 Marius Brehler
2015-12-03 9:55 Justin Lecher
2015-12-03 9:54 Justin Lecher
2015-12-01 6:52 Justin Lecher
2015-11-30 18:33 Justin Lecher
2015-11-30 18:33 Justin Lecher
2014-10-13 9:19 Francois Bissey
2014-10-08 14:16 Honza Macháček
2014-10-06 6:53 Justin Lecher
2014-10-06 5:56 Justin Lecher
2014-10-06 5:56 Justin Lecher
2014-10-06 5:56 Justin Lecher
2014-09-25 21:21 Francois Bissey
2014-09-25 10:45 Francois Bissey
2014-01-28 19:01 Sebastien Fabbro
2013-05-23 5:13 Sebastien Fabbro
2013-03-03 17:52 Justin Lecher
2012-11-29 0:06 Sebastien Fabbro
2012-11-29 0:06 Sebastien Fabbro
2012-11-29 0:06 Sebastien Fabbro
2012-10-26 16:53 Sebastien Fabbro
2012-04-25 15:10 Justin Lecher
2012-04-25 6:47 Justin Lecher
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
2011-08-19 15:26 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=1411816323.2d1a9cc85292ef5eabe106a9f00625092ba007b9.jlec@gentoo \
--to=jlec@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