From: Benda Xu Date: Wed, 26 Jun 2019 05:43:34 +0000 (+0800) Subject: virtual/{c,}blas: add sci-libs/blis as a candidate. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a56935f3b33cc88e50909dfea016deb08988cade;p=gentoo.git virtual/{c,}blas: add sci-libs/blis as a candidate. On ld.so-based systems, runtime library switching is possible. We use 'eselect-ldso' to flag this possibility. In this case, blis can used as a drop-in replacement via an `eselect` call. Otherwise If USE eselect-ldso is not set, only reference implementation will be pulled in. Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Benda Xu --- diff --git a/virtual/blas/blas-3.8.ebuild b/virtual/blas/blas-3.8.ebuild index e3807aaa8c4a..45bf1cc03013 100644 --- a/virtual/blas/blas-3.8.ebuild +++ b/virtual/blas/blas-3.8.ebuild @@ -9,6 +9,9 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~ IUSE="eselect-ldso" RDEPEND=" - >=sci-libs/lapack-3.8.0[eselect-ldso?] + !eselect-ldso? ( >=sci-libs/lapack-3.8.0[-eselect-ldso] ) + eselect-ldso? ( || ( + >=sci-libs/lapack-3.8.0[eselect-ldso] + sci-libs/blis[eselect-ldso] ) ) " DEPEND="${RDEPEND}" diff --git a/virtual/cblas/cblas-3.8.ebuild b/virtual/cblas/cblas-3.8.ebuild index 0b295963f8de..440e9fc4a540 100644 --- a/virtual/cblas/cblas-3.8.ebuild +++ b/virtual/cblas/cblas-3.8.ebuild @@ -9,6 +9,9 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~a IUSE="eselect-ldso" RDEPEND=" - >=sci-libs/lapack-3.8.0[eselect-ldso?] + !eselect-ldso? ( >=sci-libs/lapack-3.8.0[-eselect-ldso] ) + eselect-ldso? ( || ( + >=sci-libs/lapack-3.8.0[eselect-ldso] + sci-libs/blis[eselect-ldso] ) ) " DEPEND="${RDEPEND}"