diff options
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/lapack-reference/lapack-reference-3.7.0.ebuild | 7 |
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} |