summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2019-06-26 13:07:52 +0800
committerBenda Xu <heroxbd@gentoo.org>2019-06-26 14:06:09 +0800
commit251f5c99d0ef0a397afc1d01999106577450e534 (patch)
tree28e400ec85cc5bbe4bae64e3be97ae6eac87409f /sci-libs/lapack
parentvirtual/{blas,cblas,lapack,lapacke}: add/update virtual packages. (diff)
downloadgentoo-251f5c99d0ef0a397afc1d01999106577450e534.tar.gz
gentoo-251f5c99d0ef0a397afc1d01999106577450e534.tar.bz2
gentoo-251f5c99d0ef0a397afc1d01999106577450e534.zip
sci-libs/lapack: add eselect-ldso USE flag.
profiles: mask eselect-ldso USE flags on fbsd and rpath ARCH. eselect-ldso USE depends on ld.so to do runtime library switching. Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'sci-libs/lapack')
-rw-r--r--sci-libs/lapack/lapack-3.8.0.ebuild20
-rw-r--r--sci-libs/lapack/metadata.xml2
2 files changed, 14 insertions, 8 deletions
diff --git a/sci-libs/lapack/lapack-3.8.0.ebuild b/sci-libs/lapack/lapack-3.8.0.ebuild
index df848e027d54..3fb7fa9984db 100644
--- a/sci-libs/lapack/lapack-3.8.0.ebuild
+++ b/sci-libs/lapack/lapack-3.8.0.ebuild
@@ -11,22 +11,22 @@ SRC_URI="http://www.netlib.org/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
-IUSE="lapacke doc"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="lapacke doc eselect-ldso"
# TODO: static-libs 64bit-index
RDEPEND="
- >=app-eselect/eselect-blas-0.2
- >=app-eselect/eselect-lapack-0.2
+ eselect-ldso? ( >=app-eselect/eselect-blas-0.2
+ >=app-eselect/eselect-lapack-0.2 )
!app-eselect/eselect-cblas
!sci-libs/blas-reference
!sci-libs/cblas-reference
!sci-libs/lapack-reference
!sci-libs/lapacke-reference
- doc? ( app-doc/blas-docs )
- virtual/pkgconfig"
+ virtual/fortran
+ doc? ( app-doc/blas-docs )"
DEPEND="${RDEPEND}
- virtual/fortran"
+ virtual/pkgconfig"
src_configure() {
local mycmakeargs=(
@@ -41,6 +41,7 @@ src_configure() {
src_install () {
cmake-utils_src_install
+ use eselect-ldso || return
# Create private lib directory for eselect::blas (ld.so.conf)
dodir /usr/$(get_libdir)/blas/reference
dosym ../../libblas.so usr/$(get_libdir)/blas/reference/libblas.so
@@ -55,8 +56,9 @@ src_install () {
}
pkg_postinst () {
- local me=reference libdir=$(get_libdir)
+ use eselect-ldso || return
+ local me=reference libdir=$(get_libdir)
# check eselect-blas
eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me}
local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
@@ -83,6 +85,8 @@ pkg_postinst () {
}
pkg_postrm () {
+ use eselect-ldso || return
+
eselect blas validate
eselect lapack validate
}
diff --git a/sci-libs/lapack/metadata.xml b/sci-libs/lapack/metadata.xml
index 7b291ef6bfd9..adc276993c4f 100644
--- a/sci-libs/lapack/metadata.xml
+++ b/sci-libs/lapack/metadata.xml
@@ -24,5 +24,7 @@ This package installs the reference FORTRAN 77 implementation from Netlib.
</longdescription>
<use>
<flag name="lapacke">Build LAPACKE</flag>
+ <flag name="eselect-ldso">Enable runtime library switching by
+ eselect and ld.so.</flag>
</use>
</pkgmetadata>