diff options
author | Fabian Groffen <grobian@gentoo.org> | 2017-02-04 21:27:35 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2017-02-04 21:27:46 +0100 |
commit | 4b8e4e140898f3c8aa43f87ae2eb3ef4f90457ac (patch) | |
tree | d89e87058458f0d443c137a46c5a32f690d75241 /sci-libs | |
parent | dev-libs/libgcrypt: fix pdf installation (diff) | |
download | gentoo-4b8e4e140898f3c8aa43f87ae2eb3ef4f90457ac.tar.gz gentoo-4b8e4e140898f3c8aa43f87ae2eb3ef4f90457ac.tar.bz2 gentoo-4b8e4e140898f3c8aa43f87ae2eb3ef4f90457ac.zip |
sci-libs/blas-reference: fix install_names on Darwin, bug #605214
Package-Manager: portage-2.3.3
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/blas-reference/blas-reference-20161223.ebuild | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sci-libs/blas-reference/blas-reference-20161223.ebuild b/sci-libs/blas-reference/blas-reference-20161223.ebuild index 8bd6afdfe2ac..61c7575a9584 100644 --- a/sci-libs/blas-reference/blas-reference-20161223.ebuild +++ b/sci-libs/blas-reference/blas-reference-20161223.ebuild @@ -63,6 +63,13 @@ src_install() { mkdir -p "${ED}/usr/$(get_libdir)/blas/reference" || die mv "${ED}/usr/$(get_libdir)"/lib* "${ED}/usr/$(get_libdir)/pkgconfig"/* \ "${ED}/usr/$(get_libdir)/blas/reference" || die + if [[ ${CHOST} == *-darwin* ]] ; then + # modify install_names accordingly, bug #605214 + local lib + for lib in "${ED}"/usr/$(get_libdir)/blas/reference/*.dylib ; do + install_name_tool -id "${lib#${D%/}}" "${lib}" + done + fi rmdir "${ED}/usr/$(get_libdir)/pkgconfig" || die eselect blas add $(get_libdir) "${T}"/eselect.blas.reference ${ESELECT_PROF} |