summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-02-06 20:21:48 +0100
committerFabian Groffen <grobian@gentoo.org>2017-02-06 20:21:48 +0100
commit91bd82d2f67285e00829f7b5463bcbcef80e1b29 (patch)
tree12ab2b9daee6ee69bea6afcd5b6bab0cb4b08f2c /sci-libs
parentapp-admin/tmpreaper: Update to EAPI6 (diff)
downloadgentoo-91bd82d2f67285e00829f7b5463bcbcef80e1b29.tar.gz
gentoo-91bd82d2f67285e00829f7b5463bcbcef80e1b29.tar.bz2
gentoo-91bd82d2f67285e00829f7b5463bcbcef80e1b29.zip
sci-libs/lapack-reference: fix installation on Prefix, bug #608266
Package-Manager: portage-2.3.3
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/lapack-reference/lapack-reference-3.7.0.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/sci-libs/lapack-reference/lapack-reference-3.7.0.ebuild b/sci-libs/lapack-reference/lapack-reference-3.7.0.ebuild
index f03d2b35a690..a96e8810a4c9 100644
--- a/sci-libs/lapack-reference/lapack-reference-3.7.0.ebuild
+++ b/sci-libs/lapack-reference/lapack-reference-3.7.0.ebuild
@@ -71,6 +71,13 @@ src_install() {
mkdir -p "${ED}/usr/$(get_libdir)/lapack/reference" || die
mv "${ED}/usr/$(get_libdir)"/lib* "${ED}/usr/$(get_libdir)/pkgconfig"/* \
"${ED}/usr/$(get_libdir)/lapack/reference" || die
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ # modify install_names accordingly, bug #608266
+ local lib
+ for lib in "${ED}"/usr/$(get_libdir)/lapack/reference/*.dylib ; do
+ install_name_tool -id "${lib#${D%/}}" "${lib}"
+ done
+ fi
rmdir "${ED}/usr/$(get_libdir)/pkgconfig" || die
eselect lapack add $(get_libdir) "${T}"/eselect.lapack.reference ${ESELECT_PROF}